29 lines
567 B
Groovy
29 lines
567 B
Groovy
#!/usr/bin/env groovy
|
|
|
|
properties([
|
|
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10')),
|
|
pipelineTriggers([
|
|
pollSCM('H/15 * * * *')
|
|
])
|
|
])
|
|
|
|
node {
|
|
stage('Preparations') {
|
|
echo "Current branch: $env.BRANCH_NAME"
|
|
checkout scm
|
|
}
|
|
|
|
parallel(
|
|
frontend: {
|
|
stage('Build Frontend Assets') {
|
|
docker.image('aoepeople/fe-build-env:1.1.0').inside() {
|
|
ansiColor('xterm') {
|
|
sh "BABEL_CACHE_PATH=/tmp/.babel yarn install"
|
|
sh "yarn run build"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
)
|
|
}
|