没有为分支计划构建 [英] Did not schedule build for branch

查看:101
本文介绍了没有为分支计划构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是从詹金斯开始.而且我正在尝试在分支/主服务器上运行构建.

I am just starting with jenkins. And I am trying to run a build on a branch/master.

我所得到的只是没有计划为分支机构:master

And all I am getting is Did not schedule build for branch: master

这是日志:

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

How do I schedule a branch?? Here is my 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
    }
}

有人可以指出我的正确方向吗?

Can some one point me to right direction??

推荐答案

在某些

A suggestion found in some old IRC logs is that the "Automatic branch project triggering" option has been set to something that doesn't match the branch you want built. Set that option appropriately so that your desired branch or branches will build automatically.

这篇关于没有为分支计划构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆