Add jenkinsfile-exemple1
This commit is contained in:
1 parent
7e5dc347cf
commit
e3a9505f62
1 file changed
+25
@@ -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"
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user