Skip to content

Commit

Permalink
Remove test curl and correct version bump command
Browse files Browse the repository at this point in the history
  • Loading branch information
dtwaddle2-r7 committed Nov 17, 2023
1 parent 6b3671a commit 0b9ab3e
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@ pipeline {
}
}

stage('debug: Test github curl') {
steps {
withCredentials([usernamePassword(credentialsId: 'github-app-key', usernameVariable: 'GH_APP', passwordVariable: 'GH_TOKEN')]) {
sh """
curl --silent --show-error \
-H "Content-Type: application/json" \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token \${GH_TOKEN}" \
https://api.github.com/user/emails
"""
}
}
}

stage('Run tests') {
steps {
sh 'bundle exec rake tests'
Expand All @@ -43,8 +29,10 @@ curl --silent --show-error \
stage('Bump version') {
steps {
script {
echo 'Current version: \$(git describe --abbrev=0 | cut -c 2-)'
String newVersion = sh(script: "./semver bump ${params.VERSION_BUMP}", returnStdout: true).trim()
String currentVersion = sh(script: 'git describe --abbrev=0 | cut -c 2-', returnStdout: true).trim()
echo "${currentVersion}"

String newVersion = sh(script: "./semver bump ${params.VERSION_BUMP} ${currentVersion}", returnStdout: true).trim()
echo "${newVersion}"
}
}
Expand Down

0 comments on commit 0b9ab3e

Please sign in to comment.