-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathjenkinsfile
31 lines (31 loc) · 842 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
pipeline {
agent any
stages {
stage('Unit Test') {
steps {
sh 'mvn clean test'
}
}
stage('Deploy Standalone') {
steps {
sh 'mvn deploy -P standalone'
}
}
stage('Deploy AnyPoint') {
environment {
ANYPOINT_CREDENTIALS = credentials('anypoint.credentials')
}
steps {
sh 'mvn deploy -P arm -Darm.target.name=local-4.0.0-ee -Danypoint.username=${ANYPOINT_CREDENTIALS_USR} -Danypoint.password=${ANYPOINT_CREDENTIALS_PSW}'
}
}
stage('Deploy CloudHub') {
environment {
ANYPOINT_CREDENTIALS = credentials('anypoint.credentials')
}
steps {
sh 'mvn deploy -P cloudhub -Dmule.version=4.0.0 -Danypoint.username=${ANYPOINT_CREDENTIALS_USR} -Danypoint.password=${ANYPOINT_CREDENTIALS_PSW}'
}
}
}
}