-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
55 lines (55 loc) · 1.55 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
pipeline {
agent any
options {
skipStagesAfterUnstable()
disableConcurrentBuilds()
}
stages {
stage('Build ARCAD Version') {
when {
anyOf {
branch 'H*'; branch 'R*'; branch 'V*'
}
not {
equals expected: 1, actual: currentBuild.number
}
}
steps {
script {ARCAD_VERSION = env.BRANCH_NAME.substring(0,8)}
echo "ARCAD Build Starting for $ARCAD_VERSION..."
builderBuild applicationCode: [code: 'SAMCO'], buildModelName: [modelName: 'SAMCO'], environmentIdentifier: [envID: 'D'], server: [serverCode: 'localhost'], versionNumber: [number: "${ARCAD_VERSION}"]
}
}
stage('Drops Import') {
when {
anyOf {
branch 'H*'; branch 'R*'; branch 'V*'
}
not {
equals expected: 1, actual: currentBuild.number
}
}
steps {
script {ARCAD_VERSION = env.BRANCH_NAME.substring(0,8)}
echo "Drops Import Starting for $ARCAD_VERSION..."
dropsImport application: [applicationId: '38'], executions: [[component: [componentId: '75'], externalVersion: '*RELEASE', strategy: [strategyId: '72']]], release: [$class: 'NamedRelease', number: "${ARCAD_VERSION}"], releaseDescription: 'Auto Import From Jenkins', resetRelease: true, startAutomatically: true
}
}
/*
stage('Deploy to QA') {
when {
anyOf {
branch 'H*'; branch 'R*'; branch 'V*'
}
not {
equals expected: 1, actual: currentBuild.number
}
}
steps {
script {ARCAD_VERSION = env.BRANCH_NAME.substring(0,8)}
echo "Drops Deploy Starting for $ARCAD_VERSION..."
}
}
*/
}
}