Changeset View
Changeset View
Standalone View
Standalone View
jobs/templates/debian/update-for-release.groovy
def upstream_tag = params.GIT_TAG | def upstream_tag = params.GIT_TAG | ||||
def version = upstream_tag.substring(1) | def version = upstream_tag.substring(1) | ||||
def repo_name = '{display-name}' | def repo_name = '{display-name}' | ||||
def python_module = repo_name.replace('-', '.') | def python_module = repo_name.replace('-', '.') | ||||
def full_environ | def full_environ | ||||
def debian_upstream_tag_exists = false | def debian_upstream_tag_exists = false | ||||
def download_artifact_from_pypi = params.DOWNLOAD_ARTIFACT_FROM_PYPI | |||||
pipeline {{ | pipeline {{ | ||||
agent {{ label 'debian' }} | agent {{ label 'debian' }} | ||||
stages {{ | stages {{ | ||||
stage('Checkout') {{ | stage('Checkout') {{ | ||||
steps {{ | steps {{ | ||||
cleanWs() | cleanWs() | ||||
checkout([ | checkout([ | ||||
▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | stage('Get author information from tag') {{ | ||||
]; | ]; | ||||
}} | }} | ||||
}} | }} | ||||
}} | }} | ||||
}} | }} | ||||
stage('gbp import-orig') {{ | stage('gbp import-orig') {{ | ||||
when {{ | when {{ | ||||
beforeAgent true | beforeAgent true | ||||
expression {{ !debian_upstream_tag_exists }} | expression {{ !debian_upstream_tag_exists && download_artifact_from_pypi }} | ||||
}} | }} | ||||
steps {{ | steps {{ | ||||
copyArtifacts( | copyArtifacts( | ||||
projectName: '/{name}/pypi-upload', | projectName: '/{name}/pypi-upload', | ||||
parameters: 'GIT_TAG=' + params.GIT_TAG, | parameters: 'GIT_TAG=' + params.GIT_TAG, | ||||
) | ) | ||||
withEnv(full_environ) {{ | withEnv(full_environ) {{ | ||||
dir (repo_name) {{ | dir (repo_name) {{ | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |