Skip to content

Commit 90015f9

Browse files
authored
Update jenkinsfile
1 parent 218e138 commit 90015f9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

jenkinsfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
11

2+
pipeline {
3+
agent any
4+
tools {
5+
maven "M2_HOME"
6+
}
7+
stages {
8+
stage('Build Package'){
9+
steps{
10+
checkout scmGit(branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: '25b2c6b9-167b-4411-8eab-ba222b3dcb8d', url: 'https://github.com/nandkumar80/SaiJavaCode.git']])
11+
sh 'mvn clean package'
12+
}
13+
}
14+
stage(" execute Ansible") {
15+
steps {
16+
ansiblePlaybook credentialsId: 'dev', installation: 'ansible', inventory: '/etc/ansible/hosts', playbook: '/home/dev/data/saiproject/ansible/deploy_playbook.yaml'
17+
}
18+
}
19+
20+
}
21+
}

0 commit comments

Comments
 (0)