-
Task
-
Resolution: Not A Defect
-
Blocker
-
None
Hi,
I'm using Jenkins2 and trying to use Git Publisher in Post Build Actions to push the tag but I'm getting below error message. Please help me on this ASAP
ERROR: Failed to push tag jenkins-branch_build_1-45 to origin 10:12:23 hudson.plugins.git.GitException: Command "git push
https://github.com/****/myspringbootapp.git
jenkins-branch_build_1-45 -f" returned status code 143:
Under SCM section, I've added below configurations for Git
Git --> Repositories
Repository URL . - <mygithuburl>
credentials - <mycredentails>
Name - origin
Under SCM section, I've added below additional behaviors.
- Create a tag for every build
- Export git tag and message as environment variables
Under Post build Actions section, I've below configuration.
Push Only If Build Succeeds - checked
Force Push - checked
Tags
Tag to Push - ${GIT_TAG_NAME}
Tag message - "Version testtag"
Target remote name - origin