forked from serenity-bdd/the-serenity-book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
46 lines (46 loc) · 1.09 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
pipeline {
agent any
stages {
stage('compile book') {
steps {
sh '''rm -Rf build
mkdir -p build
cp -Rf modules/ROOT/assets build'''
sh 'asciidoctor modules/ROOT/pages/*.adoc -D build -a imagesdir=assets/images'
}
}
stage('Frequent Flyer') {
parallel {
stage('Maven') {
steps {
sh '(cd modules/ROOT/examples/frequent-flyer && mvn clean verify)'
}
}
stage('Gradle') {
steps {
sh '(cd modules/ROOT/examples/frequent-flyer && ./gradlew clean test)'
}
}
}
}
stage('REST with Screenplay') {
parallel {
stage('Maven') {
steps {
sh '(cd modules/ROOT/examples/serenity-screenplay-rest && mvn clean verify -Pprod)'
}
}
stage('Gradle') {
steps {
sh '(cd modules/ROOT/examples/serenity-screenplay-rest && ./gradlew clean test)'
}
}
}
}
}
post {
always {
junit '**/target/site/serenity/SERENITY-JUNIT*'
}
}
}