mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
changed jenkins tasks
This commit is contained in:
parent
cb518f0528
commit
d260325592
1 changed files with 2 additions and 7 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -28,17 +28,12 @@ pipeline {
|
||||||
stage('build') {
|
stage('build') {
|
||||||
steps {
|
steps {
|
||||||
sh 'yarn'
|
sh 'yarn'
|
||||||
|
sh "mkdir -p ${WORKSPACE}/src/stats"
|
||||||
|
sh "git log -n 50 --pretty=format:\' { \"commit\": \"%H\", \"subject\": \"%s\", \"timestamp\": \"%at\" }\' | awk \'BEGIN { print(\"[\") } { print(\$0\",\") } END { print(\" {}\\n]\") }\' > ${WORKSPACE}/src/stats/git.json"
|
||||||
sh 'yarn build'
|
sh 'yarn build'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('stats') {
|
|
||||||
steps {
|
|
||||||
sh "mkdir -p ${WORKSPACE}/dist/stats"
|
|
||||||
sh "git log -n 50 --pretty=format:\' { \"commit\": \"%H\", \"subject\": \"%s\", \"timestamp\": \"%at\" }\' | awk \'BEGIN { print(\"[\") } { print(\$0\",\") } END { print(\" {}\\n]\") }\' > ${WORKSPACE}/dist/stats/git.json"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('deploy') {
|
stage('deploy') {
|
||||||
when {
|
when {
|
||||||
anyOf { branch 'master'; branch 'develop' }
|
anyOf { branch 'master'; branch 'develop' }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue