From 74aa34df14ed9234cc083eff5d8b62a4f140b13a Mon Sep 17 00:00:00 2001 From: brandon Date: Fri, 19 Mar 2021 18:00:28 -0400 Subject: [PATCH] add jenkins --- Jenkinsfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..8b68463 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,25 @@ +pipeline { + agent none + stages { + stage('Check out') { + agent any + steps { + checkout scm + } + } + stage('Deploy Helm') { + agent any + steps { + withCredentials([usernamePassword(credentialsId: 'github-qas-labs', passwordVariable: 'gitpass', usernameVariable: 'gituser')]) { + sh "git clone https://$gituser:$gitpass@github.com/byangtri/argocd-example-apps.git" + sh "git config --global user.email 'b.yang@ext.tricentis.com'" + sh "git config --global user.name 'brandon'" + dir("argocd-example-apps") { + sh "cd helm-guestbook && sed -i 's+0.1+0.2+g' values.yaml" + sh "git commit -am 'Publish new version' && git push || echo 'update version'" + } + } + } + } + } + } \ No newline at end of file