diff --git a/Jenkinsfile b/Jenkinsfile index 4ddc831f..138982df 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,7 +15,7 @@ pipeline { } stage('Setup and build') { - agent { label 'ubuntu && 16.04 && php7.4' } + agent { label 'ubuntu && 20.04 && php7.4' } environment { GIT_SHORT_COMMIT = build.shortCommitRef() ARTIFACT_VERSION = "${env.PIPELINE_VERSION}" + '+sha.' + "${env.GIT_SHORT_COMMIT}" @@ -67,7 +67,7 @@ pipeline { APPLICATION_ENVIRONMENT = 'development' } steps { - publishAptlySnapshot snapshotName: "${env.REPOSITORY_NAME}-${env.PIPELINE_VERSION}", publishTarget: "${env.REPOSITORY_NAME}-${env.APPLICATION_ENVIRONMENT}", distributions: 'xenial' + publishAptlySnapshot snapshotName: "${env.REPOSITORY_NAME}-${env.PIPELINE_VERSION}", publishTarget: "${env.REPOSITORY_NAME}-${env.APPLICATION_ENVIRONMENT}", distributions: 'focal' } } @@ -78,7 +78,7 @@ pipeline { APPLICATION_ENVIRONMENT = 'acceptance' } steps { - publishAptlySnapshot snapshotName: "${env.REPOSITORY_NAME}-${env.PIPELINE_VERSION}", publishTarget: "${env.REPOSITORY_NAME}-${env.APPLICATION_ENVIRONMENT}", distributions: 'xenial' + publishAptlySnapshot snapshotName: "${env.REPOSITORY_NAME}-${env.PIPELINE_VERSION}", publishTarget: "${env.REPOSITORY_NAME}-${env.APPLICATION_ENVIRONMENT}", distributions: 'focal' triggerDeployment nodeName: 'udb3-search-acc02' } post { @@ -99,7 +99,7 @@ pipeline { stages { stage('Publish snapshot') { steps { - publishAptlySnapshot snapshotName: "${env.JOB_NAME}-${env.PIPELINE_VERSION}", publishTarget: "${env.JOB_NAME}-${env.APPLICATION_ENVIRONMENT}", distributions: 'xenial' + publishAptlySnapshot snapshotName: "${env.JOB_NAME}-${env.PIPELINE_VERSION}", publishTarget: "${env.JOB_NAME}-${env.APPLICATION_ENVIRONMENT}", distributions: 'focal' } } stage('Deploy') { @@ -135,7 +135,7 @@ pipeline { stages { stage('Publish snapshot') { steps { - publishAptlySnapshot snapshotName: "${env.JOB_NAME}-${env.PIPELINE_VERSION}", publishTarget: "${env.JOB_NAME}-${env.APPLICATION_ENVIRONMENT}", distributions: 'xenial' + publishAptlySnapshot snapshotName: "${env.JOB_NAME}-${env.PIPELINE_VERSION}", publishTarget: "${env.JOB_NAME}-${env.APPLICATION_ENVIRONMENT}", distributions: 'focal' } } stage('Deploy') { @@ -164,7 +164,7 @@ pipeline { } stage('Tag release') { - agent { label 'ubuntu && 16.04' } + agent any steps { copyArtifacts filter: 'pkg/*.deb', projectName: env.JOB_NAME, flatten: true, selector: specific(env.BUILD_NUMBER) tagRelease commitHash: artifact.metadata(artifactFilter: '*.deb', field: 'git-ref')