2017-04-20 221 views

回答

-1
pipeline { 
    agent any 
    triggers{ 
     bitbucketpr(projectPath:'<BIT_BUCKET_PATH>', 
     cron:'H/15 * * * *', 
     credentialsId:'', 
     username:'', 
     password:'', 
     repositoryOwner:'', 
     repositoryName:'', 
     branchesFilter:'', 
     branchesFilterBySCMIncludes:false, 
     ciKey:'', 
     ciName:'', 
     ciSkipPhrases:'', 
     checkDestinationCommit:false, 
     approveIfSuccess:false, 
     cancelOutdatedJobs:true, 
     commentTrigger:'') 
    } 
} 

後您設置詹金斯管道,手動運行的第一次工作(否則觸發可能無法工作!)

https://github.com/jenkinsci/bitbucket-pullrequest-builder-plugin

+1

什麼是projectPath?我無法在其上找到任何文檔 –

相關問題