File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11pipeline {
22
3- environment {
3+ parameters{
4+ string(name : ' environnement' , defaultValue : ' dev' , decription : ' choisir l\' environnement cible' )
5+ booleanParam(name : ' ouinon' , defaultValue : false , description : ' ' )
6+ }
7+
8+ environment {
49 registry = " vanessakovalsky/my-image-python"
510 registryCredential = ' docker'
6- APP_CONTAINER_NAME = " myapppython"
7- DOCKER_IMAGE = " vanessakovalsky/my-image-python"
8- DOCKER_TAG = " ${ env.BUILD_NUMBER} "
9- }
11+ APP_CONTAINER_NAME = " myapppython"
12+ DOCKER_IMAGE = " vanessakovalsky/my-image-python"
13+ DOCKER_TAG = " ${ env.BUILD_NUMBER} "
14+ }
15+
16+ // triggers {
17+ // cron('H */4 * * 1-5')
18+ // pollSCM('H */4 * * 1-5')
19+ // upstream(upstreamProjects: 'Correction exercice 3', thresold: hudson.model.Result.SUCCESS)
20+ // }
1021
11- agent any
22+ agent any
1223
13- stages {
24+ stages {
1425 stage(' Clone sources' ) {
1526 steps {
1627 git url : ' https://github.com/vanessakovalsky/python-api-handle-it.git'
You can’t perform that action at this time.
0 commit comments