From 2a767254d838c339cd8856648b4edbc410189a30 Mon Sep 17 00:00:00 2001 From: Martin Damovsky Date: Sun, 4 Jun 2017 21:46:21 +0200 Subject: updated readme.md with information related to jenkins pipeline support --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index 4e4d454..88e74ea 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,35 @@ Creating a Job - Save to preserve your changes +Jenkins pipeline +------------- +``` +pipeline { + agent any + triggers{ + bitbucketpr(projectPath:'', + cron:'H/15 * * * *', + credentialsId:'', + username:'', + password:'', + repositoryOwner:'', + repositoryName:'', + branchesFilter:'', + branchesFilterBySCMIncludes:false, + ciKey:'', + ciName:'', + ciSkipPhrases:'', + checkDestinationCommit:false, + approveIfSuccess:false, + cancelOutdatedJobs:true, + commentTrigger:'') + } +} +``` + +After you set up your Jenkins pipeline, run the job for the first time manually (otherwise the trigger may not work!) + + Merge the Pull Request's Source Branch into the Target Branch Before Building ----------------------------------------------------------------------------- -- cgit v1.2.3