-
New Feature
-
Resolution: Unresolved
-
Major
-
-
4.8.0 - released username / password credential binding
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
- depends on
-
JENKINS-26055 DurableTaskStep
-
- Resolved
-
- is duplicated by
-
JENKINS-42279 Provide a command to commit on a scm inside a pipeline, like there is a checkout command
-
- Resolved
-
-
JENKINS-61127 More freely defined advanced clone behaviours
-
- Closed
-
- is related to
-
JENKINS-25389 Allow push of tags created during the build
-
- Closed
-
-
JENKINS-36496 Publish from pipeline
-
- Closed
-
- relates to
-
JENKINS-67074 Secrets are not masked when URL-encoded
-
- Open
-
-
JENKINS-47733 Add a withGit pipeline step that provides git credentials
-
- Open
-
- links to
medianick I've now made it work by converting the job to pipeline and using the withCredentials directive, thereby injecting the credentials into the url myself. I never found a way to access the credentials to do the same with my previous freestyle project.
But what I don't understand is why we must do this credential fetching and url massaging ourselves, i.e. why for instance djviking's example using the GitClient class directly doesn't (seem to) work.