Add jenkinsfile-exemple1

This commit is contained in:
khaled committed 2026-09-30 14:28:32 +00:00
1 parent 7e5dc347cf
commit e3a9505f62
1 file changed
+25
+25
View File
@@ -0,0 +1,25 @@
@Library('sphinx-lib') _
pipeline {
agent none
stages {
stage('Package') {
agent {
kubernetes {
yaml libraryResource('templates/pod.yaml')
}
}
steps {
container('build') {
sh '''
echo "Nom de l'hôte dans le pod : $(hostname)"
echo "webhook"
sleep 5
echo "done"
'''
}
}
}
}
}