-
Notifications
You must be signed in to change notification settings - Fork 1
/
aci-jenkinsfile
30 lines (30 loc) · 897 Bytes
/
aci-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
pipeline {
agent any
environment {
BRANCH_NAME = "${GIT_BRANCH}"
varPath = "vars/" + "${BRANCH_NAME}"
apicInventory = "./creds/inv-" + "${BRANCH_NAME}"
apicInventoryx509 = "./creds/inv-" + "${BRANCH_NAME}" + "-x509"
}
stages {
stage('Create Certificate User') {
steps {
ansiblePlaybook(
playbook: './aci/aciCreate-cert-userv3.yml',
inventory: '$apicInventory',
colorized: true
)
}
}
stage('Fabric Discovery and Base Config') {
steps {
ansiblePlaybook(
playbook: './aci/aciBuildFabric.yml',
inventory: '$apicInventoryx509',
extras: '--extra-vars="@$varPath/aci/switch-inventory.yaml"',
colorized: true
)
}
}
}
}