我刚开始与詹金斯合作。我正在尝试在分支/主人上运行构建。
我得到的就是没有为分支安排构建:主人
这是日志:
Started by timer
[Sun Mar 05 18:23:43 NPT 2017] Starting branch indexing...
Connecting to https://bitbucket.org using sameerkattel@hotmail.com/****** (sameer_kattel)
Repository type: Git
Looking up sameer_kattel/protected-consumer for branches
Checking branch single_page_app from sameer_kattel/protected-consumer
Checking branch master from sameer_kattel/protected-consumer
‘Jenkinsfile’ found
Met criteria
Changes detected: master (null → b2e24fc7a3a3c68f84dddf69d2cedc79f8478bf3)
Did not schedule build for branch: master
Checking branch enable_cors_response_lamda from sameer_kattel/protected-consumer
Looking up sameer_kattel/protected-consumer for pull requests
[Sun Mar 05 18:23:45 NPT 2017] Finished branch indexing. Indexing took 2.1 sec
Finished: SUCCESS
如何安排分支?这是我的JenkinsFile
#!groovy
node {
currentBuild.result = "SUCCESS"
try {
stage 'Build'
checkout scm
dir(spa)
sh 'npm install'
sh 'ng build'
}
catch (err) {
currentBuild.result = "FAILURE"
echo 'failed'
throw err
}
}
有人能指出我正确的方向吗?
答案 0 :(得分:0)
在某些old IRC logs中发现的建议是"自动分支项目触发"选项已设置为与您想要构建的分支不匹配的内容。适当地设置该选项,以便自动构建所需的分支。