-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
37 lines (32 loc) · 1017 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
34
35
36
37
node ('local') {
try {
//------------------------------------------------------Code-Clone-----------------------------------------------------------------//
stage 'Cloning Git'
url:'https://github.com/yadavprakash/jenkins.git', branch:'master'
// pipeline {
// agent any
//
// stages {
// stage('Checkout') {
// steps {
// // Checkout code from Git repository
// git 'https://github.com/yadavprakash/jenkins.git'
// }
// }
// stage('Install Ansible') {
// steps {
// // Install Ansible
// sh 'pip install ansible'
// }
// }
// stage('Run Ansible Playbook') {
// steps {
// // Run Ansible playbook
// ansiblePlaybook(
// playbook: 'ansible/test.yml',
// inventory: 'ansible/inventory/hosts.ini',
// )
// }
// }
// }
// }