我的组织机构有一个Bitbucket服务器,用于围绕团队和项目组织存储库:
myorg
|--Project1
|--RepoA
|-Jenkinsfile
|--RepoB
|-Jenkinsfile
|--Project2
|--RepoC
|-Jenkinsfile
|--RepoD
|-Jenkinsfile
在设置Jenkins New Item-> Bitbucket团队/项目时,如果我将myorg指定为所有者,则将扫描所有4个项目,其分支显示为管道。
但是,我们希望基于项目(Project1,Project2)而不是整个团队进行扫描。
有办法吗?我尝试将owner属性设置为:
Project1
Connecting to https://bitbucket.org using xxxx@yyyy/******
Looking up repositories of user Project1
0 repositories were processed
myorg / Project1
Connecting to https://bitbucket.org using xxxx@yyyy/******
Looking up repositories of user myorg/Project1
ERROR: [Tue Aug 14 08:42:44 UTC 2018] Could not fetch sources from navigator com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator@35b339a4
java.io.FileNotFoundException: URL: https://api.bitbucket.org/2.0/repositories/myorg%2FProject1?role=owner&page=1&pagelen=50
但他们都找不到任何回购。