add dir instruction to get inside the app dir when creating version json file

This commit is contained in:
burnettk 2023-05-15 11:40:11 -04:00
parent 2c9b3bf415
commit 0b29879eeb
No known key found for this signature in database

14
Jenkinsfile vendored
View File

@ -49,12 +49,14 @@ pipeline {
stages { stages {
stage('Prep') { stage('Prep') {
steps { script { steps { script {
def jobMetaJson = new JsonBuilder([ dir("spiffworkflow-${params.COMPONENT}") {
git_commit: env.GIT_COMMIT.take(7), def jobMetaJson = new JsonBuilder([
git_branch: env.GIT_BRANCH, git_commit: env.GIT_COMMIT.take(7),
build_id: env.BUILD_ID, git_branch: env.GIT_BRANCH,
]).toPrettyString() build_id: env.BUILD_ID,
sh "echo '${jobMetaJson}' > version_info.json" ]).toPrettyString()
sh "echo '${jobMetaJson}' > version_info.json"
}
} } } }
} }