commit | author | age
|
72e1b3
|
1 |
pipeline { |
OB |
2 |
triggers { |
|
3 |
pollSCM ('H/3 * * * *') |
|
4 |
} |
|
5 |
options { |
|
6 |
buildDiscarder (logRotator (numToKeepStr: '5', artifactNumToKeepStr: '5')) |
|
7 |
disableConcurrentBuilds() |
|
8 |
} |
|
9 |
agent { |
|
10 |
node { |
|
11 |
label 'nodejs' |
|
12 |
} |
|
13 |
} |
|
14 |
stages { |
|
15 |
stage ('Validate configuration resources') { |
|
16 |
steps { |
|
17 |
sh 'oc apply --dry-run -k config' |
|
18 |
} |
|
19 |
} |
|
20 |
stage ('Apply resources') { |
|
21 |
when { |
|
22 |
branch 'master' |
|
23 |
} |
|
24 |
steps { |
|
25 |
sh 'oc apply -k config' |
|
26 |
sh 'oc wait co/authentication --for condition=Progressing --timeout 15s || true' |
7e437c
|
27 |
sh 'oc rollout status deployment/oauth-openshift -n openshift-authentication -w --timeout 360s' |
72e1b3
|
28 |
} |
OB |
29 |
} |
|
30 |
stage ('Verify test user') { |
|
31 |
when { |
|
32 |
branch 'master' |
|
33 |
} |
|
34 |
steps { |
|
35 |
sh 'oc login -u testuser -p redhat123 --insecure-skip-tls-verify https://kubernetes.default.svc:443' |
|
36 |
sh 'oc new-project test-testuser || true' |
|
37 |
} |
|
38 |
} |
|
39 |
} |
|
40 |
} |