-
Notifications
You must be signed in to change notification settings - Fork 51
Feature/multibranch scan #372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/multibranch scan #372
Conversation
Functionality added to trigger a Jenkins Multibranch scan when a branch is added or deleted in bitbucket.
Added a function to capture both the from Hash and change type items that are inside of the payload received from Bitbucket
Functions added get the from hash and change type items from the Bitbucket payload
Added constant variables for the change type values along with the value of an empty hash. These are used to determine when a branch is being added or deleted.
Updating the plugin repository to have the correct URL for a successful Maven Build
|
@cdelmonte-zg @julioc-p Hello everyone. Looking to have someone approve this change. |
Previously when triggering the scan it was done so for all pipelines. New logic ensures that it only occurs for the repo captured from the payload if it matches the branch source specified in the multibranch pipeline
Functiions have been added to pull http and ssh clone links from bitbucket payload
Added Functions to pull the SSH and HTTP clone links from the Bitbucket payload
Ran into null pointer issue causing issues with other triggers. Updates made to resolve null pointer occurrence.
|
Hi @s78258819-svg Sorry for the long delay, I'm gonna merge it in the next days, I hope to release it on 24th November. |
|
@cdelmonte-zg Hello, I noticed these changes were not merged into the latest release. Is there anything I need to do for the merge to go through? |
* Added functionality for Multibranch Scan Functionality added to trigger a Jenkins Multibranch scan when a branch is added or deleted in bitbucket. * Added functions for data capture Added a function to capture both the from Hash and change type items that are inside of the payload received from Bitbucket * Added full functions for payload data Functions added get the from hash and change type items from the Bitbucket payload * Added constant variables Added constant variables for the change type values along with the value of an empty hash. These are used to determine when a branch is being added or deleted. * Update repository URL Updating the plugin repository to have the correct URL for a successful Maven Build * Update Logic for Multibranch Pipeline Scan Trigger Previously when triggering the scan it was done so for all pipelines. New logic ensures that it only occurs for the repo captured from the payload if it matches the branch source specified in the multibranch pipeline * Adding functions to pull clone links from payload Functiions have been added to pull http and ssh clone links from bitbucket payload * Added functions for capturing clone links Added Functions to pull the SSH and HTTP clone links from the Bitbucket payload * Update BitBucketPPRJobProbe.java Ran into null pointer issue causing issues with other triggers. Updates made to resolve null pointer occurrence. Co-authored-by: s78258819-svg <s78258819@gmail.com>
|
@s78258819-svg Thank you and sorry for the long waiting! I just released your changes |
Functionality added to trigger a Jenkins Multibranch pipeline scan when a branch is created or deleted for a Bitbucket repository. Testing completed with Jenkins and Bitbucket Data Center for the scenario of creating a new branch for a Bitbucket repository. After refreshing the Jenkins page for the Multibranch pipeline the new branch appears in the multibranch pipeline. In previous versions a manual scan had to be done before the new branch appeared in the multibranch pipeline even though the webhook request was received from Bitbucket during the addition or deletion events.
Submitter checklist