March 2018
Intermediate to advanced
380 pages
9h 23m
English
Let's take a look at the generated Jenkinsfile, which has our pipeline definitions using the Groovy DSL:
#!/usr/bin/env groovynode { stage('checkout') { checkout scm } stage('check java') { sh "java -version" } stage('clean') { sh "chmod +x gradlew" sh "./gradlew clean --no-daemon" } stage('install tools') { sh "./gradlew yarn_install -PnodeInstall --no-daemon" } stage('backend tests') { try { sh "./gradlew test -PnodeInstall --no-daemon" } catch(err) { throw err } finally { junit '**/build/**/TEST-*.xml' } } stage('frontend tests') { try { sh "./gradlew yarn_test -PnodeInstall --no-daemon" } catch(err) { throw err } finally { junit '**/build/test-results/karma/TESTS-*.xml' } } stage('packaging') { sh "./gradlew ...