Files
test_play/Jenkinsfile
jonnybravo 421afce966
Some checks failed
multibranch_ansible/pipeline/head There was a failure building this commit
added Jenkinsfile
2023-06-05 14:37:08 +02:00

28 lines
513 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 credentialsId: '209d0fa2-bbd7-4af5-9aac-deec1b6aa7ec', inventory: 'locahost,', playbook: 'test_play.yml'
}
}
}
}