diff options
| author | jerome <jerome@xlinfo.fr> | 2025-08-19 14:53:39 +0200 |
|---|---|---|
| committer | jerome <jerome@xlinfo.fr> | 2025-08-19 14:53:39 +0200 |
| commit | 79986b3a74492de75e259bca06986dbf4c54dd42 (patch) | |
| tree | 1a7e7c1a2da8c5f25fe90d1c9c36a7668e8e657d | |
| parent | c2ea1c3737eb23dca29830fde6dc86978c97d837 (diff) | |
| download | incus-79986b3a74492de75e259bca06986dbf4c54dd42.tar.gz incus-79986b3a74492de75e259bca06986dbf4c54dd42.zip | |
jenkinsfile
| -rw-r--r-- | final/Jenkinsfile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/final/Jenkinsfile b/final/Jenkinsfile new file mode 100644 index 0000000..75f72e5 --- /dev/null +++ b/final/Jenkinsfile @@ -0,0 +1,35 @@ +pipeline { + agent any + stages { + stage('Clone Repository') { + steps { + script { + sh 'git clone http://dev.xlinfo.lan/git/iac/incus.git' + } + } + } + stage('Terraform Init') { + steps { + dir('final') { + sh 'terraform init' + } + } + } + stage('Terraform Apply') { + steps { + dir('final') { + sh 'terraform apply -auto-approve' + } + } + } + stage('Run Ansible Playbook') { + steps { + dir('final') { + sh ''' + ansible-playbook -i hosts lamp.yml + ''' + } + } + } + } +} |
