Details
-
Type:
New Feature
-
Status: Open (View Workflow)
-
Priority:
Major
-
Resolution: Unresolved
-
Component/s: git-plugin
-
Labels:
-
Similar Issues:
Description
It would be nice to be able to use the GitPublisher inside a workflow as it is possible in other jobs.
This requires the plugin to be upgrade to Jenkins core 1.580.1+, to implement the jenkins.tasks.SimpleBuildStep in GitPublisher
Attachments
Issue Links
- depends on
-
JENKINS-26055 DurableTaskStep
-
- Reopened
-
- is duplicated by
-
JENKINS-42279 Provide a command to commit on a scm inside a pipeline, like there is a checkout command
-
- Resolved
-
- is related to
-
JENKINS-47733 Add a withGit pipeline step that provides git credentials
-
- Open
-
-
JENKINS-36496 Publish from pipeline
-
- Closed
-
I'm trying to get a post-build git push --tags to work on windows using user/pass with jenkins credentials outside of pipeline/workflow. The git plugin fetches from a remote private repo this way without problems, but I can't get authentication to work when invoking git through windows batch, or groovy as suggested in https://issues.jenkins-ci.org/browse/JENKINS-28335?focusedCommentId=258095&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-258095 above. Shouldn't git operations through the git client in groovy work, if things like fetch, performed by the git plugin, work?
When fetching, 'using GIT_ASKPASS to set credentials' is printed in the console, but when I try to tag, it isn't, so maybe that's a hint?
Failing push: