GIT SCM configuration for bitbucket pull requests checkout using generic Webhook parameters

后端 未结 1 366
被撕碎了的回忆
被撕碎了的回忆 2021-01-29 07:30

This stackoverflow page can help you checkout bitbucket pull requests in Jenkins with Generic webhook trigger.

Pre-requisites:

Jenkins: 1) Installing Generic Web

相关标签:
1条回答
  • 2021-01-29 07:42

    Also you can try GIT SCM configuration using:

    Name: FETCH_HEAD`
    RefSpec: +refs/heads/*:refs/remotes/origin/*
    Branch Specifier: **/${BRANCH}
    Additional Behaviours:
    1. Wipe out repository & force clone
    2. Clean after checkout 
    

    where BRANCH value is '$.pullRequest.fromRef.displayId' retrieved from Generic Webhook trigger post parameters.

    0 讨论(0)
提交回复
热议问题