summaryrefslogtreecommitdiff
path: root/final
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2025-08-19 14:53:39 +0200
committerjerome <jerome@xlinfo.fr>2025-08-19 14:53:39 +0200
commit79986b3a74492de75e259bca06986dbf4c54dd42 (patch)
tree1a7e7c1a2da8c5f25fe90d1c9c36a7668e8e657d /final
parentc2ea1c3737eb23dca29830fde6dc86978c97d837 (diff)
downloadincus-79986b3a74492de75e259bca06986dbf4c54dd42.tar.gz
incus-79986b3a74492de75e259bca06986dbf4c54dd42.zip
jenkinsfile
Diffstat (limited to 'final')
-rw-r--r--final/Jenkinsfile35
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
+ '''
+ }
+ }
+ }
+ }
+}