Skip to content

Commit

Permalink
Update deploy_test.groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
ramyahd authored Nov 21, 2019
1 parent e6b5034 commit a94147a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vars/deploy_test.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
def call(String msg = 'deploy_test') {
echo "${msg}"
sh 'ssh -t -t -i /var/lib/jenkins/.ssh/id_rsa [email protected] "ansible-playbook /opt/playbooks/playfile.yml"'
withCredentials([string(credentialsId: 'tomcat_test', variable: 'password')]){
sh 'sshpass -p ${password} ssh -o StrictHostKeyChecking=no [email protected] \"ansible-playbook opt/playbooks/test.yml\"'

}
}

0 comments on commit a94147a

Please sign in to comment.