Example Apps to Demonstrate Argo CD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

25 lines
834 B

pipeline {
agent any
stages {
stage('Check out') {
agent any
steps {
checkout scm
}
}
stage('Deploy to Helm') {
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 "chmod +x -R /etc/gitconfig"
sh "git config --system user.email 'b.yang@ext.tricentis.com'"
sh "git config --system user.name 'brandon'"
dir("argocd-example-apps") {
sh "cd helm-guestbook && sed -i 's+0.2+0.1+g' values.yaml"
sh "git commit -am 'Publish new version' && git push || echo 'update version'"
}
}
}
}
}
}