Skip to content

Commit

Permalink
Merge pull request #100 from jenkinsci/JENKINS-44556
Browse files Browse the repository at this point in the history
[JENKINS-44556] introduce a mechanism to set the debian packaging version
  • Loading branch information
kohsuke committed Jun 29, 2017
2 parents b3198e4 + 141ca57 commit 3835c07
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
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ sed -i.bak -e 's/^\s*$/./' -e 's/^/ /' $DESCRIPTION_FILE
mv "$DESCRIPTION_FILE.bak" "$DESCRIPTION_FILE" mv "$DESCRIPTION_FILE.bak" "$DESCRIPTION_FILE"


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


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


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


# merge the result # merge the result
pushd $D/binary 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 popd


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


# where to generate Debian/Ubuntu DEB file? # 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? # where to generate RHEL/CentOS RPM file?
export RPM=${TARGET}/rpm/${ARTIFACTNAME}-${VERSION}-1.1.noarch.rpm export RPM=${TARGET}/rpm/${ARTIFACTNAME}-${VERSION}-1.1.noarch.rpm
Expand Down

0 comments on commit 3835c07

Please sign in to comment.