[Qa-jenkins-scm] [jenkins.debian.net] 03/03: reproducible: remote_scheduler: rename -d/--noisy to --notify-on-start
Mattia Rizzolo
mattia at debian.org
Fri Dec 29 15:25:57 UTC 2017
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository jenkins.debian.net.
commit ecbde85979eebcd595e680329426647092df271b
Author: Mattia Rizzolo <mattia at debian.org>
Date: Fri Dec 29 16:25:07 2017 +0100
reproducible: remote_scheduler: rename -d/--noisy to --notify-on-start
more pragmatic name and avoid clashes with common.py's -d/--debug
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
bin/reproducible_remote_scheduler.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/bin/reproducible_remote_scheduler.py b/bin/reproducible_remote_scheduler.py
index e1183b6..0835359 100755
--- a/bin/reproducible_remote_scheduler.py
+++ b/bin/reproducible_remote_scheduler.py
@@ -73,8 +73,8 @@ def parse_args():
help='Save artifacts (for further offline study).')
parser.add_argument('-n', '--notify', action='store_true',
help='Notify the channel when the build finishes.')
- parser.add_argument('-d', '--noisy', action='store_true', help='Also notify when ' +
- 'the build starts, linking to the build url.')
+ parser.add_argument('--notify-on-start', action='store_true', help='Also '
+ 'notify when the build starts, linking to the build url.')
parser.add_argument('-m', '--message', default='',
help='A text to be sent to the IRC channel when notifying' +
' about the scheduling.')
@@ -100,7 +100,7 @@ def parse_args():
if scheduling_args.null:
scheduling_args = parser.parse_known_args(sys.stdin.read().split('\0'))[0]
scheduling_args.packages = [x for x in scheduling_args.packages if x]
- if scheduling_args.noisy:
+ if scheduling_args.notify_on_start:
scheduling_args.notify = True
# this variable is expected to come from the remote host
@@ -131,7 +131,7 @@ def parse_args():
packages = scheduling_args.packages
artifacts = scheduling_args.keep_artifacts
notify = scheduling_args.notify
- notify_on_start = scheduling_args.noisy
+ notify_on_start = scheduling_args.notify_on_start
dry_run = scheduling_args.dry_run
log.debug('Requester: ' + requester)
@@ -208,7 +208,7 @@ def rest(scheduling_args, requester, local, suite, arch):
packages = scheduling_args.packages
artifacts = scheduling_args.keep_artifacts
notify = scheduling_args.notify
- notify_on_start = scheduling_args.noisy
+ notify_on_start = scheduling_args.notify_on_start
dry_run = scheduling_args.dry_run
log.info("Scheduling packages in %s/%s", arch, suite)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list