diff options
| author | jerome <jerome@xlinfo.fr> | 2025-08-19 14:45:39 +0200 |
|---|---|---|
| committer | jerome <jerome@xlinfo.fr> | 2025-08-19 14:45:39 +0200 |
| commit | 182d6fb665e99576729351d061fc66afec643451 (patch) | |
| tree | 28e9024a852bcadce6d23093ed2d755266ce7cef | |
| parent | 5d6a35bbdf48b84b4ae03e5fd442a19d18ff15a9 (diff) | |
| download | incus-182d6fb665e99576729351d061fc66afec643451.tar.gz incus-182d6fb665e99576729351d061fc66afec643451.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 + ''' + } + } + } + } +} |
