Changeset View
Changeset View
Standalone View
Standalone View
jobs/templates/debian/gbp-buildpackage.groovy
Show First 20 Lines • Show All 234 Lines • ▼ Show 20 Lines | stage('Upload package') {{ | ||||
sshagent (credentials: ['jenkins-debian-repo-ssh']) {{ | sshagent (credentials: ['jenkins-debian-repo-ssh']) {{ | ||||
sh """ | sh """ | ||||
dcmd rsync -v *.changes ${{repo_user}}@${{repo_host}}:${{upload_target}} | dcmd rsync -v *.changes ${{repo_user}}@${{repo_host}}:${{upload_target}} | ||||
ssh ${{repo_user}}@${{repo_host}} '${{repo_command}}' | ssh ${{repo_user}}@${{repo_host}} '${{repo_command}}' | ||||
""" | """ | ||||
}} | }} | ||||
}} | }} | ||||
}} | }} | ||||
stage('Tag package') {{ | |||||
when {{ | |||||
beforeAgent true | |||||
expression {{ changelog_distribution != 'UNRELEASED' }} | |||||
expression {{ params.DO_TAG }} | |||||
}} | |||||
steps {{ | |||||
dir (repo_name) {{ | |||||
sh 'gbp buildpackage --git-tag-only' | |||||
sshagent (credentials: ['jenkins-public-ci-ssh']) {{ | |||||
sh 'git push --tags' | |||||
}} | |||||
}} | |||||
}} | |||||
}} | |||||
}} | }} | ||||
post {{ | post {{ | ||||
always {{ | always {{ | ||||
node('swh-tox') {{ | node('swh-tox') {{ | ||||
withCredentials([ | withCredentials([ | ||||
string(credentialsId: 'swh-public-ci', | string(credentialsId: 'swh-public-ci', | ||||
variable: 'PHAB_CONDUIT_TOKEN')]) {{ | variable: 'PHAB_CONDUIT_TOKEN')]) {{ | ||||
withEnv(["JOBSTATUS=${{currentBuild.currentResult}}"]) {{ | withEnv(["JOBSTATUS=${{currentBuild.currentResult}}"]) {{ | ||||
Show All 17 Lines |