Skip to content

Commit 3a2d6e4

Browse files
committed
HSEARCH-5296 Add a step to build pdf documentation to the nightly CI job
1 parent 204633f commit 3a2d6e4

File tree

1 file changed

+41
-17
lines changed

1 file changed

+41
-17
lines changed

ci/nightly/Jenkinsfile

Lines changed: 41 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,48 @@ pipeline {
4040
TESTCONTAINERS_REUSE_ENABLE = 'true'
4141
}
4242
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"
5456

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+
}
6185
}
6286
}
6387
}

0 commit comments

Comments
 (0)