]> git.ipfire.org Git - thirdparty/pdns.git/blame - build-scripts/jenkins-driver
Be explicit about versions (v2)
[thirdparty/pdns.git] / build-scripts / jenkins-driver
CommitLineData
2acb912d
CH
1#!/usr/bin/env bash
2
3if [ "${PDNS_TAG}" != 'HEAD' ]
4then
2160af71
PD
5 git checkout $PDNS_TAG
6 export GIT_BRANCH=unknown
7 export GIT_COMMIT=$(git rev-parse $PDNS_TAG)
2acb912d
CH
8fi
9
10eval $(build-scripts/make-jenkins-version)
11
12build-scripts/set-version-auth $SOURCE_VERSION $DEB_VERSION $RPM_VERSION
13build-scripts/set-version-recursor $SOURCE_VERSION $DEB_VERSION $RPM_VERSION
2160af71 14
5f075f3b
PD
15if [ "${JENKINS_URL}" = "https://autotest.powerdns.com/" ]
16then
17 JENKINS_URL=http://localhost:8080/
18fi
19
2160af71
PD
20if [ -n "${JENKINS_URL}" ]
21then
22 DESC="#${BUILD_NUMBER} [${GIT_BRANCH#origin/} $(git rev-parse --short $GIT_COMMIT)]"
23 if [ "${PDNS_TAG}" != 'HEAD' ]
24 then
25 DESC="${DESC} (${PDNS_TAG})"
26 fi
27 java -jar /shared/jenkins-cli.jar set-build-display-name ${JOB_NAME} ${BUILD_NUMBER} "${DESC}"
ba1a571d 28fi