Update jenkinsfile-fullbuild

This commit is contained in:
khaled committed 2026-09-30 14:44:07 +00:00
1 parent 3d80e984ee
commit fa9e052887
1 file changed
+26 -5
+26 -5
View File
@@ -1,10 +1,31 @@
@Library('sphinx-lib') _ @Library('sphinx-lib@main') _
pipeline { pipeline {
agent { kubernetes { yaml libraryResource('templates/pod.yaml') } } agent {
kubernetes {
yaml libraryResource('pod-template.yaml')
}
}
stages { stages {
stage('Analyse') { steps { sonarScan('lab-demo') } } stage('Build') {
stage('Publish') { steps { publishArtifact(file: 'app.tar.gz', path: 'demo/1.0.0') } } steps {
stage('Deploy') { steps { deployToK3s(name: 'lab-demo', image: 'nginx') } } mavenBuild(goals: 'clean package -DskipTests')
}
}
stage('Analyse') {
steps {
sonarScan('lab-demo')
}
}
stage('Publish') {
steps {
publishArtifact(file: 'app.tar.gz', path: 'demo/1.0.0')
}
}
stage('Deploy') {
steps {
deployToK3s(name: 'demo', image: 'nginx:latest', replicas: 2)
}
}
} }
} }