init
This commit is contained in:
20
Jenkinsfile
vendored
Normal file
20
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
pipeline {
|
||||
agent any
|
||||
parameters {
|
||||
string(name: "target_host", defaultValue: "", trim: true, description: "Target host")
|
||||
string(name: "username", defaultValue: "", trim: true, description: "Ansible user")
|
||||
password(name: "password", defaultValue: "", description: "Ansible password")
|
||||
}
|
||||
stages {
|
||||
stage('Download') {
|
||||
steps {
|
||||
git branch: 'master', url:'${git_url}/Ansible/rproxy.git', credentialsId: 'git'
|
||||
}
|
||||
}
|
||||
stage('Run') {
|
||||
steps {
|
||||
sh 'ansible-playbook rproxy.yml -i ${target_host}, -u ${username} -e "ansible_password=${password}"'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user