@@ -40,24 +40,48 @@ pipeline {
40
40
TESTCONTAINERS_REUSE_ENABLE = ' true'
41
41
}
42
42
stages {
43
- stage(' Build reproducibility check' ) {
44
- agent {
45
- label ' Worker&&Containers'
46
- }
47
- steps {
48
- // The timeout cannot be in stage options, because that would
49
- // include the time needed to provision a node.
50
- timeout(time : 30 , unit : ' MINUTES' ) {
51
- withMavenWorkspace {
52
- echo " Generate the artifacts."
53
- sh " mvn clean install -Pskip-checks -Preproducibility-check"
43
+ stage (' Run checks' ) {
44
+ parallel {
45
+ stage(' Build reproducibility check' ) {
46
+ agent {
47
+ label ' Worker&&Containers'
48
+ }
49
+ steps {
50
+ // The timeout cannot be in stage options, because that would
51
+ // include the time needed to provision a node.
52
+ timeout(time : 30 , unit : ' MINUTES' ) {
53
+ withMavenWorkspace {
54
+ echo " Generate the artifacts."
55
+ sh " mvn clean install -Pskip-checks -Preproducibility-check"
54
56
55
- echo " Running the reproducibility check."
56
- sh """ mvn clean verify \
57
- artifact:compare -Dreference.repo=hibernate-maven-central \
58
- -Pskip-checks -Preproducibility-check -Dno-build-cache \
59
- --fail-at-end
60
- """
57
+ echo " Running the reproducibility check."
58
+ sh """ mvn clean verify \
59
+ artifact:compare -Dreference.repo=hibernate-maven-central \
60
+ -Pskip-checks -Preproducibility-check -Dno-build-cache \
61
+ --fail-at-end
62
+ """
63
+ }
64
+ }
65
+ }
66
+ }
67
+ stage(' Build documentation PDF' ) {
68
+ agent {
69
+ label ' Worker&&Containers'
70
+ }
71
+ steps {
72
+ // The timeout cannot be in stage options, because that would
73
+ // include the time needed to provision a node.
74
+ timeout(time : 30 , unit : ' MINUTES' ) {
75
+ withMavenWorkspace {
76
+ echo " Generate documentation and distribution packages."
77
+ sh """ mvn clean install \
78
+ -Pdocumentation-pdf \
79
+ -DskipTests \
80
+ --fail-at-end \
81
+ -Dscan=false -Dno-build-cache
82
+ """
83
+ }
84
+ }
61
85
}
62
86
}
63
87
}
0 commit comments