Hello everyone. I have a question for you.
At the moment, I and my team works on a staging repository. Every project
have a Jenkins Job with declarative Pipeline. Our target is:
When pipeline complete correctly all steps, it can push on production
repository all code?
i'm try with a simple step (on example repository):
this is Jenkinsfile on Staging repository (testSubTree it's staging name).
pipeline {
agent any
stages {
stage('push on master prod'){
steps{
sh 'git push prod'
}
}
}
}
when
[centos@cula03up TestAutocommitJenkins]$ sudo git remote -v
origin xxxx/HO_staging/testSubTree.git (fetch)
origin xxxx/HO_staging/testSubTree.git (push)
prod xxxx/HO_production/testSubTree.git (fetch)
prod xxxx/HO_production/testSubTree.git (push)
but doesn't work... and I don't get any errors, simply my production
repository isn't update
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/6945f3c5-c281-48ae-a10b-bae16e1d618e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.