Skip to content

Commit

Permalink
stage copy artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMontag committed Feb 24, 2022
1 parent 5368c1c commit 4ca2f52
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -385,17 +385,25 @@ pipeline {
}
}
}
stage('Deploy to GitHub') {
stage('Copy Artifacts') {
agent { label 'master' }
when {
expression { return currentBuild.currentResult == "SUCCESS" && params.CREATE_GITHUB_RELEASE }
tag pattern: "v\\d+\\.\\d+\\.\\d+.*", comparator: "REGEXP"
expression { return !isDevelopmentArtifact() }
}
steps {
sh '''
mkdir -p artifacts
'''
copyArtifacts filter: '*.AppImage, *.dmg, *.zip', fingerprintArtifacts: true, projectName: '${JOB_NAME}', selector: specific('${BUILD_NUMBER}'), target: 'artifacts'
}
}
stage('Deploy to GitHub') {
agent { label 'master' }
when {
expression { return currentBuild.currentResult == "SUCCESS" && params.CREATE_GITHUB_RELEASE }
tag pattern: "v\\d+\\.\\d+\\.\\d+.*", comparator: "REGEXP"
}
steps {
withCredentials([string(credentialsId: '18e8f0e0-f27a-4358-b70f-04acec1e9617', variable: 'GITHUB_TOKEN')]) {
sh '''#!/bin/bash -xe
## get version information for artifact, tag name and description
Expand Down

0 comments on commit 4ca2f52

Please sign in to comment.