jenkins-lib

Jenkins shared library
git clone https://git.in0rdr.ch/jenkins-lib.git
Log | Files | Refs | Pull requests | README

updatecli.groovy (1208B)


      1 def call() {
      2     pipeline {
      3         agent {
      4             docker {
      5               label 'podman'
      6               image 'ghcr.io/updatecli/updatecli:latest'
      7               //args '-u root --entrypoint='
      8             }
      9         }
     10 
     11         stages {
     12 	        stage('Check configuration update') {
     13 	            steps {
     14 	                script {
     15 	                    sh '''
     16 	                    updatecli diff
     17 	                    '''
     18 	                }
     19 	            }
     20 	        }
     21 	        //stage('Apply configuration update') {
     22 	        //    steps {
     23 	        //        script {
     24 	        //            sh '''
     25 	        //            updatecli apply
     26 	        //            '''
     27 	        //        }
     28 	        //    }
     29 	        //}
     30 	        //stage('Commit configuration update') {
     31 	        //    steps {
     32 	        //        script {
     33 	        //            sh '''
     34 	        //            git add *.json
     35 	        //            git commit -m "chore(deps): bump npm dependencies"
     36 	        //            '''
     37 	        //        }
     38 	        //    }
     39 	        //}
     40         }
     41         //post {
     42         //    always {
     43         //        archiveArtifacts artifacts: 'gitleaks-report.json', fingerprint: true
     44         //    }
     45         //}
     46     }
     47 }