Changeset View
Changeset View
Standalone View
Standalone View
jobs/templates/debian/automatic-backport.groovy
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | stage('Update changelog for backport') {{ | ||||
dch -l ~bpo${{release}}+ -D ${{params.DESTINATION}} --force-distribution 'Rebuild for ${{params.DESTINATION}}' | dch -l ~bpo${{release}}+ -D ${{params.DESTINATION}} --force-distribution 'Rebuild for ${{params.DESTINATION}}' | ||||
git add debian/changelog | git add debian/changelog | ||||
git commit --no-verify -m "Updated backport on ${{params.DESTINATION}} from ${{params.GIT_TAG}} (${{params.SOURCE}})" | git commit --no-verify -m "Updated backport on ${{params.DESTINATION}} from ${{params.GIT_TAG}} (${{params.SOURCE}})" | ||||
git show | git show | ||||
""" | """ | ||||
}} | }} | ||||
}} | }} | ||||
}} | }} | ||||
stage('Tag package') {{ | |||||
when {{ | |||||
beforeAgent true | |||||
expression {{ backport_ok }} | |||||
}} | |||||
steps {{ | |||||
withEnv(environment) {{ | |||||
sh 'gbp buildpackage --git-tag-only' | |||||
}} | |||||
}} | |||||
}} | |||||
stage('Upload changes') {{ | stage('Upload changes') {{ | ||||
when {{ | when {{ | ||||
beforeAgent true | beforeAgent true | ||||
expression {{ backport_ok }} | expression {{ backport_ok }} | ||||
}} | }} | ||||
steps {{ | steps {{ | ||||
sshagent (credentials: ['jenkins-public-ci-ssh']) {{ | sshagent (credentials: ['jenkins-public-ci-ssh']) {{ | ||||
script {{ | script {{ | ||||
Show All 12 Lines |