summaryrefslogtreecommitdiffstats
path: root/jobs
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2019-05-23 08:17:04 +0200
committerOliver Smith <osmith@sysmocom.de>2019-05-23 13:08:19 +0200
commit85163cd7f472be51e713b13227f7f08bc5270b68 (patch)
tree096e1002e8e024300693b46eac37d5a9328f288f /jobs
parent02ebc242b8f82a7239d4cde3d747fe319d260bab (diff)
jobs/osmocom-obs.yml: set default git branch
I was quite surprised, that the job used "osmith/pdfs-in-doc-subpackage" instead of "master" today [1]. Fix this randomness by adding a branch parameter that defaults to "master". Interestingly, we have to set the default branch to "refs/remotes/origin/master". When using "*/master" (like we do in other jobs), Jenkins would still chose my branch over "origin/master", even though mine does not have "master" in the name. I have also tried "chosing-strategy: 'default'", in case it was using the gerrit strategy for some reason (like in [2]), and setting 'refspec:', but both did not have any effect. [1] https://jenkins.osmocom.org/jenkins/job/Osmocom_OBS_nightly/98/ [2] https://issues.jenkins-ci.org/browse/JENKINS-26981 Change-Id: I6d1f0e70d5c82ffd551d00ffdf2712cbfaec16cf
Diffstat (limited to 'jobs')
-rw-r--r--jobs/osmocom-obs.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/jobs/osmocom-obs.yml b/jobs/osmocom-obs.yml
index 84a4710..023ab0c 100644
--- a/jobs/osmocom-obs.yml
+++ b/jobs/osmocom-obs.yml
@@ -19,11 +19,18 @@
</ul>
(Generated by job-builder)
node: obs
+ parameters:
+ - string:
+ name: BRANCH
+ description: osmo-ci.git branch
+ default: 'refs/remotes/origin/master'
builders:
- shell:
./scripts/osmocom-{type}-packages.sh
scm:
- git:
+ branches:
+ - '$BRANCH'
url: git://git.osmocom.org/osmo-ci
git-config-name: 'Jenkins Builder'
git-config-email: 'jenkins@osmocom.org'