-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathJenkinsfile
38 lines (30 loc) · 853 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Powered by Infostretch
timestamps {
node () {
stage ('APP-IC - Checkout') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'git-login', url: 'https://github.com/bnasslahsen/jenkins-sample-1.git']]])
}
stage ('APP-IC - Build') {
withMaven(maven: 'maven') {
if(isUnix()) {
sh "mvn clean package "
} else {
bat "mvn clean package "
}
}
}
stage('Deploy') {
withMaven(maven: 'maven') {
if(isUnix()) {
sh "mvn clean deploy"
} else {
bat "mvn clean deploy"
}
}
}
stage ('APP-IC - Post build actions') {
// Mailer notification
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'jenkins.orsys@gmail.com', sendToIndividuals: false])
}
}
}