Skip to content

Commit

Permalink
Update Jenkinsfile to fix build issue on master branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
microstrain-sam authored May 22, 2024
1 parent a8b8807 commit a4fec3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ pipeline {
node("linux-amd64") {
dir("/tmp/mip_sdk_${env.BRANCH_NAME}_${currentBuild.number}") {
copyArtifacts(projectName: "${env.JOB_NAME}", selector: specific("${currentBuild.number}"));
withCredentials([string(credentialsId: 'MICROSTRAIN_BUILD_GH_TOKEN', variable: 'GH_TOKEN')]) {
withCredentials([string(credentialsId: 'Github_Token', variable: 'GH_TOKEN')]) {
sh '''
# Release to the latest version if the master commit matches up with the commit of that version
if (cd "${WORKSPACE}" && git describe --exact-match --tags HEAD &> /dev/null); then
Expand All @@ -151,4 +151,4 @@ pipeline {
}
}
}
}
}

0 comments on commit a4fec3e

Please sign in to comment.