Add jenkins file

This commit is contained in:
Tom Raithel
2017-03-09 10:09:03 +01:00
parent 64705b5df8
commit 1c84624e3d
2 changed files with 30 additions and 2 deletions

29
Jenkinsfile.gradle Normal file
View File

@@ -0,0 +1,29 @@
#!/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 "npm prune"
sh "npm install"
sh "npm run build"
}
}
}
},
)
}