Hi Mark! Thanks for the feedback.
Got things to work by keeping https protocol and correcting the syntax for
withCredentials like this:
withCredentials([usernamePassword(credentialsId:
'username-with-password',
passwordVariable: 'GIT_PASS', usernameVariable: 'GIT_USER')])
{
sh('git tag -a $BRANCH_NAME.$BUILD_NUMBER -m "git sha is
$GIT_COMMIT"')
sh('git push https://$GIT_USER:[email protected]/OrgName/
SampleRepo.git <https://github.com/GashiandKinks/GK-Front.git>' --tags')
}
For others:
Using the *Snippet Generator *was key for me given that there are a couple
of different syntaxes floating on the web for withCredentials() function.
--
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/fcc98693-93bd-4325-96ed-33a0053349a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.