-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
33 lines (32 loc) · 873 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
27
28
29
30
31
32
33
pipeline {
agent {
label 'ansible'
}
stages {
stage('Prepare environment') {
steps {
checkout scm
sh "pip install -r req.txt --index-url https://pypi.org/pypi/simple --trusted-host pypi.org --user"
}
}
stage('Start audit proccess') {
steps {
withCredentials([usernamePassword(credentialsId: 'stash_creds', usernameVariable: 'stash_login', passwordVariable: 'stash_pass')]){
sh "python audit_out.py $stash_login $stash_pass $stash_url"
}
}
}
stage('Print user blacklist'){
steps {
sh "cat audit_result.txt"
}
}
}
post {
cleanup {
node('ansible') {
cleanWs()
}
}
}
}