git name
2020-01-22 5454ebd40162281f44297db22ad16d3589553913
commit | author | age
079d4e 1 pipeline {
RS 2     options {
3         // set a timeout of 30 minutes for this pipeline
4         timeout(time: 30, unit: 'MINUTES')
5     }
6     agent {
7       node {
c675da 8         // TODO: run this simple pipeline on jenkins 'master' node
079d4e 9       }
RS 10     }
11
12     stages {
13
14         stage('stage 1') {
15             steps {
16                 script {
17                     openshift.withCluster() {
18                         openshift.withProject() {
19                                 echo "stage 1: using project: ${openshift.project()} in cluster ${openshift.cluster()}"
20                         }
21                     }
22                 }
23             }
24         }
25
c675da 26         // TODO: ADD A STAGE THAT SAYS HELLO
079d4e 27
c675da 28         // TODO: ADD AN APPROVAL STAGE
079d4e 29
RS 30         stage('stage 3') {
31             steps {
32                 sh 'echo hello from stage 3!. This is the last stage...'
9b71dd 33             }
RS 34         }
079d4e 35
9b71dd 36     }
RS 37 }