diff options
author | Dirk Thomas <dthomas@osrfoundation.org> | 2014-12-31 17:14:32 -0800 |
---|---|---|
committer | Dirk Thomas <dthomas@osrfoundation.org> | 2014-12-31 17:14:32 -0800 |
commit | 6fd0d7cd1fbcd6555e999db53f153f6c3ca0246d (patch) | |
tree | a651b5624645fe45b68e33c638ae623e8eca050e | |
parent | d0ed211b8415ccf38628c81b3ca0a429bc7da90d (diff) | |
download | python-jenkinsapi-6fd0d7cd1fbcd6555e999db53f153f6c3ca0246d.tar.gz python-jenkinsapi-6fd0d7cd1fbcd6555e999db53f153f6c3ca0246d.tar.bz2 python-jenkinsapi-6fd0d7cd1fbcd6555e999db53f153f6c3ca0246d.zip |
fix invoke(skip_if_running=True)
-rw-r--r-- | jenkinsapi/job.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/jenkinsapi/job.py b/jenkinsapi/job.py index b0ceb48..af9a036 100644 --- a/jenkinsapi/job.py +++ b/jenkinsapi/job.py @@ -185,8 +185,7 @@ class Job(JenkinsBase, MutableJenkinsThing): elif self.is_running(): if skip_if_running: - log.warn( - "Will not request new build because %s is already running", self.name) + raise WillNotBuild('%s is already running' % repr(self)) else: log.warn( "Will re-schedule %s even though it is already running", self.name) |