Skip to content

Commit 66fc3fb

Browse files
authored
Use Jenkins to build (#436)
* Added Jenkinsfile for pipeline build * Added Docker image to OCIR for build * Removing webhooks for Wercker builds
1 parent 86554cd commit 66fc3fb

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

Jenkinsfile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
pipeline {
2+
agent {
3+
docker {
4+
alwaysPull true
5+
reuseNode true
6+
image 'phx.ocir.io/weblogick8s/wdt/jenkinsslave:wls12213'
7+
args '--user jenkins:oracle'
8+
}
9+
}
10+
11+
stages {
12+
stage ('Environment') {
13+
steps {
14+
sh '''
15+
echo "PATH = ${PATH}"
16+
echo "JAVA_HOME = ${JAVA_HOME}"
17+
echo "M2_HOME = ${M2_HOME}"
18+
mvn --version
19+
'''
20+
}
21+
}
22+
stage ('Build') {
23+
steps {
24+
sh '''
25+
mvn -B -DskipTests -Dunit-test-wlst-dir=${WLST_DIR} clean package
26+
'''
27+
}
28+
}
29+
stage ('Test') {
30+
steps {
31+
sh 'mvn -Dunit-test-wlst-dir=${WLST_DIR} test'
32+
}
33+
post {
34+
always {
35+
junit 'core/target/surefire-reports/*.xml'
36+
}
37+
}
38+
}
39+
}
40+
}

0 commit comments

Comments
 (0)