-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathJenkinsfile
More file actions
22 lines (18 loc) · 713 Bytes
/
Jenkinsfile
File metadata and controls
22 lines (18 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//this method doesn't work as it needs cross NS access from Jenkins - TODO check
node {
stage('Clone repository') {
checkout scm
}
//initial setup
stage('Initial setup') {
withCredentials([usernamePassword(credentialsId: 'twistlock_creds', passwordVariable: 'TL_PASS', usernameVariable: 'TL_USER')]) {
sh('chmod +x prep/setup.sh && ./prep/setup.sh')
}
}
//policy creation
stage('Apply initial policies') {
withCredentials([usernamePassword(credentialsId: 'twistlock_creds', passwordVariable: 'TL_PASS', usernameVariable: 'TL_USER')]) {
sh('chmod +x prep/extra_policies.sh && ./prep/extra_policies.sh')
}
}
}