代码之家  ›  专栏  ›  技术社区  ›  charlie_pl

轮询是否与轻量级签出一起工作?

  •  0
  • charlie_pl  · 技术社区  · 7 年前

    这是我使用的Jenkinsfile:

    pipeline {
        agent any
        triggers {
          pollSCM('H/1 * * * *')
        }
        stages {
            stage('Checkout') {
                steps {
                    checkout([
                            $class                           : 'GitSCM',
                            branches                         : [[name: 'master']],
                            userRemoteConfigs                : [[url: 'file:///home/my-secret-home/workspace/pipeline-test']]])
                }
            }
            stage('Echo!') {
                steps {
                    sh 'echo TEST'
                }
            }
        }
    }
    

    虽然job正在运行,但git polling log试图让我相信“polling尚未运行”

    0 回复  |  直到 7 年前
        1
  •  2
  •   Dibakar Aditya    7 年前

    不,不行。

    enter image description here

    您也可以通过运行 git pull 在本地存储库中。它返回:

    There is no tracking information for the current branch.
    Please specify which branch you want to merge with.
    See git-pull(1) for details.
    
        git pull <remote> <branch>
    
    If you wish to set tracking information for this branch you can do so with:
    
        git branch --set-upstream-to=origin/<branch> master