mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-27 17:55:04 +00:00
add dir instruction to get inside the app dir when creating version json file
This commit is contained in:
parent
c2a2b5e832
commit
dfcd46f6f6
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -49,12 +49,14 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Prep') {
|
stage('Prep') {
|
||||||
steps { script {
|
steps { script {
|
||||||
|
dir("spiffworkflow-${params.COMPONENT}") {
|
||||||
def jobMetaJson = new JsonBuilder([
|
def jobMetaJson = new JsonBuilder([
|
||||||
git_commit: env.GIT_COMMIT.take(7),
|
git_commit: env.GIT_COMMIT.take(7),
|
||||||
git_branch: env.GIT_BRANCH,
|
git_branch: env.GIT_BRANCH,
|
||||||
build_id: env.BUILD_ID,
|
build_id: env.BUILD_ID,
|
||||||
]).toPrettyString()
|
]).toPrettyString()
|
||||||
sh "echo '${jobMetaJson}' > version_info.json"
|
sh "echo '${jobMetaJson}' > version_info.json"
|
||||||
|
}
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user