forked from linuxacademy/content-cje-prebuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
23 lines (22 loc) · 825 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
node {
properties([parameters([string(defaultValue: 'ronaldo', description: '', name: 'name', trim: false)])])
def mvnHome
stage('Preparation') { // for display purposes
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/linuxacademy/content-cje-prebuild.git']]])
mvnHome = tool 'M3'
}
stage('Build') {
// Run the maven build
if (isUnix()) {
sh "'${mvnHome}/bin/mvn' -Dmaven.test.failure.ignore clean package"
} else {
bat(/"${mvnHome}\bin\mvn" -Dmaven.test.failure.ignore clean package/)
}
}
stage('Post Job'){
sh 'bin/makeindex'
}
stage('Results') {
archiveArtifacts 'index.jsp'
}
}