Olaf Bohlen
2020-07-07 fe3b2622644d70bb8b2b3c46e225e4e8b4dae63d
commit | author | age
e61825 1 pipeline {
OB 2     triggers {
3     cron ('H/5 * * * *')
4     }
5     options {
6     buildDiscarder (logrotator (numToKeepStr: '15', artifactNumToKeepStr: '15'))
7     }
8     agent {
9     node {
10         label '{nodejs'
11     }
12     }
13     stages {
14     stage ('Check resource drift') {
15         steps {
16         sh 'oc diff -k config | tee drift-report.txt'
17         sh '! test -s drift-report.txt'
18         }
19     }
20     }
21     post {
22     failure {
23         archiveArtifacts artifacts: '*.txt'
24         build job: 'apply/master'
25     }
26     success {
27         sh 'rm drift-report.txt'
28         sh 'echo \'There is no config drift\' > no-drift.txt'
fe3b26 29         archiveArtifacts artifacts: '*.txt'
e61825 30     }
OB 31     }
32 }