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 +4 -4
- data/lib/autoproj/jenkins/templates/bootstrap.pipeline.erb +1 -0
- data/lib/autoproj/jenkins/templates/buildconf.pipeline.erb +1 -1
- data/lib/autoproj/jenkins/templates/import-git.pipeline.erb +1 -1
- data/lib/autoproj/jenkins/templates/import-svn.pipeline.erb +1 -1
- data/lib/autoproj/jenkins/templates/package.pipeline.erb +8 -4
- data/lib/autoproj/jenkins/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c16584cd015cf6cda734340b1421dd940c0652b2
|
4
|
+
data.tar.gz: d7b82f5f9d3398b166babf3ae7fd97a48591787d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 %>
|
@@ -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 (
|
15
|
-
|
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,
|