Files
TechRadarAJR/Jenkinsfile.gradle
2017-03-09 10:39:17 +01:00

29 lines
596 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 "BABEL_CACHE_PATH=/tmp/.babel yarn run build"
}
}
}
},
)
}