forked from roy-ca/ConfigRepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
26 lines (26 loc) · 870 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
def changeset = ''
def getResult =''
pipeline{
agent any
stages {
stage('upload') {
steps{
script{
changeset=snDevOpsConfigUpload(applicationName:"Demo-Application",deployableName:"Prod-Hyd",target:"deployable",dataFormat:"json",configFile:"configOne.json",namePath:"main_branch",autoCommit:true,autoValidate:false)
sleep 3
} } }
stage('publish') {
steps {
snDevOpsConfigValidate(applicationName:"Demo-Application",deployableName:"Prod-Hyd")
sleep 3
}
}
stage('register'){
steps{
script{
snDevOpsConfigRegisterPipeline(applicationName:"Demo-Application",changesetNumber:"${changeset}")
}
}
}
}
}