-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
32 lines (29 loc) · 1.11 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
pipeline {
agent any
stages {
stage('Checkout Scm') {
steps {
git(credentialsId: '77762aec-11e0-4ff4-91a3-8e9a299ead22', url: 'https://github.com/pathaknitin510/solace-accelerator-demo')
}
}
stage('Shell script 0') {
steps {
sh 'ansible-playbook solace-vpn.yml $Tags $Tasks -i $Environment'
}
}
}
post {
always {
echo 'No converter for Publisher: hudson.plugins.emailext.ExtendedEmailPublisher'
echo 'No converter for Publisher: io.cnaik.GoogleChatNotification'
}
}
parameters {
choice(name: 'Environment', choices: [Dev-env.ini, Test-env.ini], description: 'This parameter helps in selecting the target Environment.')
string(name: 'Tags', defaultValue: '--tags', description: 'This parameter helps in executing limited tasks. If you want to run all the tasks, keep this empty.')
string(name: 'Tasks', defaultValue: 'queues,queue_subscription', description: 'Only above defined tasks will be executed. You can add or remove tasks. If you want to run all the tasks, keep this empty.')
}
triggers {
pollSCM('*/2 * * * *')
}
}