autoproj-jenkins 0.3.10 → 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13427e987c3febc7e624223036980f880e26ff88
4
- data.tar.gz: bf1a748ad8934c0c9241c9bcdf090e6e727e8164
3
+ metadata.gz: 0132b94c0223a1db8bcaab4146282050916ddae3
4
+ data.tar.gz: cd04e661a532ac47e2fc59f1e9b64bd40dde2fe8
5
5
  SHA512:
6
- metadata.gz: 7c157abf2efb15131f8d7d0f42a04f9f76eb98c66ee52ee5119c9dbc3968c2fa472f38735e3b050b9189eeb9ef9ad53d96226e22a66e76bb93b64e65d0e1fa2d
7
- data.tar.gz: 88270bb3df102fe38b1ce637782492d1221afd31f9608db2ef504f5456b1cecf28770ec0ff58a4224b131f8837470c86310d5f4b14b1e77a933e7313704b8cd3
6
+ metadata.gz: c1581f62df24d74ef13051068edc893ee9e234e15ce2f2323028e338399082781c4fe732e505973dd6bcabd1666d155d3a50286c4c1ef6488a2f48ec6d240b18
7
+ data.tar.gz: af067ebd48a27f8dd322f40a020cfb619517e37d2964d77f7d3092ba07e06301b1f169af24c594400e9fe629958fcd47d28ac0d808080fc2c7c7aecb1f524f7b
@@ -106,16 +106,20 @@ def getUpstreamBuilds(upstreamJobNames, triggerJob, triggerBuild)
106
106
 
107
107
  def waitForUpstreamBuilds(upstreamBuilds)
108
108
  {
109
- while(true)
109
+ // Iterate list -- NOTE: we cannot use groovy style or even modern java style iteration
110
+ for (upstreamBuildIndex = 0; upstreamBuildIndex < upstreamBuilds.size(); ++upstreamBuildIndex)
110
111
  {
111
- // Iterate list -- NOTE: we cannot use groovy style or even modern java style iteration
112
- for (upstreamBuildIndex = 0; upstreamBuildIndex < upstreamBuilds.size(); ++upstreamBuildIndex)
112
+ def entry = upstreamBuilds[upstreamBuildIndex]
113
+ def upstreamJobName = entry[0]
114
+ def upstreamBuildId = entry[1]
115
+ while (true)
113
116
  {
114
- def entry = upstreamBuilds[upstreamBuildIndex]
115
- def upstreamJobName = entry[0]
116
- def upstreamBuildId = entry[1]
117
117
  def status = isUpstreamOK(upstreamJobName, upstreamBuildId)
118
- if (status == 'IN_PROGRESS')
118
+ if (status == 'OK')
119
+ {
120
+ break
121
+ }
122
+ else if (status == 'IN_PROGRESS')
119
123
  {
120
124
  echo "waiting for job ${upstreamJobName}#${upstreamBuildId} to finish"
121
125
  sleep 10
@@ -126,8 +130,8 @@ def waitForUpstreamBuilds(upstreamBuilds)
126
130
  return false
127
131
  }
128
132
  }
129
- return true
130
133
  }
134
+ return true
131
135
  }
132
136
 
133
137
  def makeUpstreamArtifactImporters(autoproj, fullWorkspaceDir, upstreamDir,
@@ -1,5 +1,5 @@
1
1
  module Autoproj
2
2
  module Jenkins
3
- VERSION = "0.3.10"
3
+ VERSION = "0.3.11"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoproj-jenkins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-19 00:00:00.000000000 Z
11
+ date: 2016-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jenkins_api_client