Build a multibranch pipeline branch on commit with '/' in branch name
I have a problem with starting a multibranch pipeline branch build on commit. I want to build only that branch which had the new commit on, and i want to skip the whole repository branch indexing.
Stash version: v3.11.1 Jenkins version: 2.32.1 stash-http-get-post-receive-hook version: 3.2
I tried it with this POST URL: https://<jenkinsServer>/job/<ProjectFolder>/job/<MultibranchPipelineJob>/job/${refChange.name}/build?token=asdf
Last committed branch name: release/1.0.0
This is the sample URL which is sent to jenkins by hook plugin: https://<jenkinsServer>/job/<ProjectFolder>/job/<MultibranchPipelineJob>/job/release%2F1.0.0/build?token=asdf
This is the URL which jenkins needs to start the build: https://<jenkinsServer>/job/<ProjectFolder>/job/<MultibranchPipelineJob>/job/release%252F1.0.0/build?token=asdf
I didn't find any solution to replace the %2F or encode the URL again. Please help me solving this problem.