autoproj-jenkins 0.3.1 → 0.3.2

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: b76925129ddd7a23a712d931c92b8cd1632874e7
4
- data.tar.gz: f92d1d6d73dd1f4fa1f1f5b828ac5fbc8764b46c
3
+ metadata.gz: c16584cd015cf6cda734340b1421dd940c0652b2
4
+ data.tar.gz: d7b82f5f9d3398b166babf3ae7fd97a48591787d
5
5
  SHA512:
6
- metadata.gz: 983d0a01ad5d473f377a00c35f28b23f66e3a10346933d87ecf0e57acdfa2e6bdf3378caf0c8d0f81cac07689f6341d88f1a1e7767d1d4fee48d3845f913a1c1
7
- data.tar.gz: e009d2b0f3c01cfac30a43fa17e037e56716c1c3e829509d6aef86e61166fc08eb85a35ce57ab7ac32b4fb1a62ce8406419c63d4c16216752498d07b8821409e
6
+ metadata.gz: 89b551757ed8cd0d5af08e790d62b1d4d272d93287fbcffec8cbad01c44b4b6fc00ba7eae0f4332acf1878d91de3b3372bf2c021e02b945e4c1a0d639c9551fc
7
+ data.tar.gz: cd7b67e167176d41508fd690bad3c861f440e8d46b2b827d5db3b08bc43c0a934e2c5bf285170aae8d19cd490a6cdc444f09c9d0e830766170de4a96ea7536eb
@@ -11,6 +11,7 @@ writeFile file: 'seed.yml', text: config
11
11
  dir('dev') {
12
12
  sh "ruby ../autoproj_install --skip-stage2 --seed-config=../seed.yml --gems-path=${env.JENKINS_HOME}/cache/gems --gemfile=../Gemfile"
13
13
  <%= render_template("import-#{vcs.type}.pipeline",
14
+ poll: poll,
14
15
  patch: false,
15
16
  allow_unused: true,
16
17
  package_dir: 'autoproj',
@@ -5,7 +5,7 @@ node(label: 'autoproj-jenkins') {
5
5
  def autoproj = "${fullWorkspaceDir}/dev/.autoproj/bin/autoproj"
6
6
 
7
7
  stage('bootstrap') {
8
- <%= render_template('bootstrap.pipeline', vcs: vcs, gemfile: gemfile, autoproj_install_path: autoproj_install_path, vcs_credentials: vcs_credentials, indent: 4) %>
8
+ <%= render_template('bootstrap.pipeline', poll: true, vcs: vcs, gemfile: gemfile, autoproj_install_path: autoproj_install_path, vcs_credentials: vcs_credentials, indent: 4) %>
9
9
  }
10
10
 
11
11
  dir('dev') {
@@ -8,7 +8,7 @@ dir('<%= package_dir %>') {
8
8
  <% if credentials
9
9
  arg_credentials = "credentialsId: '#{credentials.jenkins_id}', "
10
10
  end %>
11
- <%= vcs.type %> <%= arg_credentials %> <%= Hash[url: vcs.url].merge(vcs.options).map { |k, v| "#{k}: '#{v}'" }.join(", ") %>
11
+ <%= vcs.type %> poll: poll, <%= arg_credentials %> <%= Hash[url: vcs.url].merge(vcs.options).map { |k, v| "#{k}: '#{v}'" }.join(", ") %>
12
12
  <% if patch %>
13
13
  sh "${autoproj} patch ."
14
14
  <% end %>
@@ -5,7 +5,7 @@ dir('<%= package_dir %>') {
5
5
  sh "${autoproj} unpatch ."
6
6
  }
7
7
  <% end %>
8
- svn url: '<%= vcs.url %>'
8
+ svn url: '<%= vcs.url %>', poll: poll
9
9
  <% if patch %>
10
10
  sh "${autoproj} patch ."
11
11
  <% end %>
@@ -9,10 +9,13 @@ def triggeredByUpstream = false
9
9
  def upstreamBuilds = []
10
10
 
11
11
  stage('waiting for upstream jobs to finish') {
12
- triggeredByUpstream = (currentBuild.rawBuild.getCause(hudson.model.Cause$UpstreamCause) != null)
13
12
  def triggerBuild = getTriggerBuild(currentBuild)
14
- if (!triggerBuild) {
15
- triggerBuild = [null, null]
13
+ if (triggerBuild) {
14
+ triggeredByUpstream = true;
15
+ }
16
+ else {
17
+ triggeredByUpstream = false;
18
+ triggerBuild = [null, null];
16
19
  }
17
20
  upstreamBuilds = getUpstreamBuilds(upstreamJobNames, triggerBuild[0], triggerBuild[1])
18
21
 
@@ -30,7 +33,7 @@ node(label: 'autoproj-jenkins') {
30
33
  def upstreamPackagePrefixes = null
31
34
 
32
35
  stage('bootstrap') {
33
- <%= render_template('bootstrap.pipeline', vcs: buildconf_vcs, gemfile: gemfile, autoproj_install_path: autoproj_install_path, vcs_credentials: vcs_credentials, indent: 4) %>
36
+ <%= render_template('bootstrap.pipeline', poll: false, vcs: buildconf_vcs, gemfile: gemfile, autoproj_install_path: autoproj_install_path, vcs_credentials: vcs_credentials, indent: 4) %>
34
37
 
35
38
  def jenkins_dependency_overrides = "<%= render_template 'jenkins_dependency_overrides.rb', escape: true, package_name: package_name, upstream_jobs: upstream_jobs %>"
36
39
  writeFile file: 'dev/autoproj/overrides.d/99_jenkins_dependency_overrides.rb',
@@ -52,6 +55,7 @@ node(label: 'autoproj-jenkins') {
52
55
  dir('dev') {
53
56
  stage('prepare build') {
54
57
  <%= render_template("import-#{vcs.type}.pipeline",
58
+ poll: true,
55
59
  patch: true,
56
60
  allow_unused: true,
57
61
  package_dir: package_dir,
@@ -1,5 +1,5 @@
1
1
  module Autoproj
2
2
  module Jenkins
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoproj-jenkins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux