Skip to content

Commit

Permalink
[JENKINS-44556] introduce a mechanism to set the debian packaging ver…
Browse files Browse the repository at this point in the history
…rsion

This allows us to regenerate a new debian package without causing
downstream pains.
  • Loading branch information
kohsuke committed Jun 27, 2017
1 parent 724f231 commit 141ca57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deb/build/build.sh
Expand Up @@ -23,7 +23,7 @@ sed -i.bak -e 's/^\s*$/./' -e 's/^/ /' $DESCRIPTION_FILE
mv "$DESCRIPTION_FILE.bak" "$DESCRIPTION_FILE"

cat > $D/debian/changelog << EOF
${ARTIFACTNAME} ($VERSION) unstable; urgency=low
${ARTIFACTNAME} ($VERSION${DEB_REVISION}) unstable; urgency=low
* Packaged ${VERSION}
Expand All @@ -45,6 +45,6 @@ pushd $D
popd

mkdir -p "$(dirname "${DEB}")" || true
mv $D/../${ARTIFACTNAME}_${VERSION}_all.deb ${DEB}
mv $D/../${ARTIFACTNAME}_${VERSION}${DEB_REVISION}_all.deb ${DEB}

rm -rf $D
2 changes: 1 addition & 1 deletion deb/publish/publish.sh
Expand Up @@ -25,7 +25,7 @@ popd

# merge the result
pushd $D/binary
mvn org.kohsuke:apt-ftparchive-merge:1.4:merge -Durl="$DEB_URL/binary/" -Dout=../merged
mvn org.kohsuke:apt-ftparchive-merge:1.6:merge -Durl="$DEB_URL/binary/" -Dout=../merged
popd

cat $D/merged/Packages > $D/binary/Packages
Expand Down
2 changes: 1 addition & 1 deletion setup.mk
Expand Up @@ -20,7 +20,7 @@ export OSX=${TARGET}/osx/${ARTIFACTNAME}-${VERSION}.pkg
export OSX_SHASUM=${OSX}.sha256

# where to generate Debian/Ubuntu DEB file?
export DEB=${TARGET}/debian/${ARTIFACTNAME}_${VERSION}_all.deb
export DEB=${TARGET}/debian/${ARTIFACTNAME}_${VERSION}${DEB_REVISION}_all.deb

# where to generate RHEL/CentOS RPM file?
export RPM=${TARGET}/rpm/${ARTIFACTNAME}-${VERSION}-1.1.noarch.rpm
Expand Down

0 comments on commit 141ca57

Please sign in to comment.