Initial commit

This commit is contained in:
2025-01-10 00:25:33 +01:00
commit db45d62a28
329 changed files with 18130 additions and 0 deletions

40
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,40 @@
pipeline {
agent any
tools {
jdk 'jenkins-jdk'
maven 'jenkins-maven'
}
stages {
stage('Checkout') {
steps {
git url: 'https://gitlab.com/christianakpona/infocad.git', branch: 'main'
}
}
stage('Build') {
steps {
sh 'mvn clean package'
}
}
stage('Lint') {
steps {
// Change directory to 'ansible/' before running ansible-lint
dir('ansible') {
sh '/usr/local/bin/ansible-lint playbook_jenkins.yml'
}
}
}
stage('Deploy') {
steps {
// Change directory to 'ansible/' before running ansible-playbook
dir('ansible') {
sh '/usr/local/bin/ansible-playbook playbook_jenkins.yml'
}
}
}
}
}