Changeset View
Changeset View
Standalone View
Standalone View
jobs/templates/debian/update-for-release.groovy
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | stage('unstable-swh changelog') {{ | ||||
dir(repo_name) {{ | dir(repo_name) {{ | ||||
sh ''' | sh ''' | ||||
dch -v ${{UPSTREAM_VERSION}}-1~swh1 "New upstream release ${{UPSTREAM_VERSION}}\n - (tagged by ${{UPSTREAM_TAGGER_NAME}} <${{UPSTREAM_TAGGER_EMAIL}}> on ${{UPSTREAM_TAGGER_DATE}})" | dch -v ${{UPSTREAM_VERSION}}-1~swh1 "New upstream release ${{UPSTREAM_VERSION}}\n - (tagged by ${{UPSTREAM_TAGGER_NAME}} <${{UPSTREAM_TAGGER_EMAIL}}> on ${{UPSTREAM_TAGGER_DATE}})" | ||||
dch "Upstream changes:\n$(git tag -l --format='%(contents:subject)%0a%(contents:body)' ${{UPSTREAM_TAG}} | sed -E -e '/^$/d' -e 's/^ *(- *)?//' -e 's/^/ - /')" | dch "Upstream changes:\n$(git tag -l --format='%(contents:subject)%0a%(contents:body)' ${{UPSTREAM_TAG}} | sed -E -e '/^$/d' -e 's/^ *(- *)?//' -e 's/^/ - /')" | ||||
dch -D unstable-swh --force-distribution '' | dch -D unstable-swh --force-distribution '' | ||||
git add debian/changelog | git add debian/changelog | ||||
git commit --no-verify -m "Updated debian changelog for version ${{UPSTREAM_VERSION}}" | git commit --no-verify -m "Updated debian changelog for version ${{UPSTREAM_VERSION}}" | ||||
git show | git show | ||||
gbp buildpackage --git-tag-only | |||||
''' | ''' | ||||
}} | }} | ||||
}} | }} | ||||
}} | }} | ||||
}} | }} | ||||
stage('Upload changes') {{ | stage('Upload changes') {{ | ||||
when {{ | when {{ | ||||
beforeAgent true | beforeAgent true | ||||
Show All 19 Lines |