mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-02-05 14:44:12 +00:00
add dir instruction to get inside the app dir when creating version json file
This commit is contained in:
parent
2c9b3bf415
commit
0b29879eeb
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -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"
|
||||||
|
}
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user