Files
test_play/Jenkinsfile
jonnybravo 6ad3cc11d6
All checks were successful
multibranch_ansible/pipeline/head This commit looks good
added Jenkinsfile
2023-06-05 14:50:19 +02:00

29 lines
568 B
Groovy

pipeline {
agent none
stages {
stage ('Hello') {
agent any
steps {
echo 'Hello, '
sh '''#!/bin/bash
echo "Hello from bash"
echo "Who I'm $SHELL"
'''
}
}
stage('Ansible') {
agent any
steps {
ansiblePlaybook playbook: 'local_test.yml'
// ansiblePlaybook credentialsId: '209d0fa2-bbd7-4af5-9aac-deec1b6aa7ec', inventory: '192.168.150.40,', playbook: 'test_play.yml'
}
}
}
}