0

Setting up a PR request to have a build run in Jenkins. Our source repository is Stash.

Essentially, the PR will be from any branch (each developer will create their own branches) to develop

I have set it up as shown below.

enter image description here

enter image description here

enter image description here

Stash configuration: enter image description here enter image description here

But on creating a pull request, the build doesn't get triggered. I don't know where to see why no build gets triggered?

If I run the job manually in jenkins, I see this in the logs:

Merging Revision f1e16a58a7d0e77bb23175a70611a92081a2538c (refs/remotes/origin/develop) to origin/develop, UserMergeOptions{mergeRemote='origin', mergeTarget='develop', mergeStrategy='DEFAULT', fastForwardMode='FF'}
 > git rev-parse origin/develop^{commit} # timeout=10
 > git config core.sparsecheckout # timeout=10
 > git checkout -f origin/develop # timeout=10
 > git merge --ff f1e16a58a7d0e77bb23175a70611a92081a2538c # timeout=10
 > git rev-parse HEAD^{commit} # timeout=10
Seen branch in repository origin/SPBAPMIHL-1453
Seen branch in repository origin/develop
Seen branch in repository origin/feature/branch-xyz....

What could I do to make sure the PR build is triggered and runs on creating PR between custom branch to develop.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.