以下の内容はhttps://baba-s.hatenablog.com/entry/2024/01/31/113939より取得しました。


【Jenkins】Jenkins Pipeline の Git の Pull でタイムアウトする場合

概要

pipeline {
    stages {
        stage('Git') {
            steps {
                git branch:'xxxx' url: 'git@github.yyyy/zzzz.git'
            }
        }
    }
}

上記のようなコードを実行したらタイムアウトでビルドに失敗する現象に遭遇した

pipeline {
    stages {
        stage('Git') {
            steps {
                checkout scmGit(
                    branches: [[name: 'xxxx']], 
                    extensions: [checkoutOption(60), localBranch('xxxx')], 
                    userRemoteConfigs: [[url: 'git@github.com:yyyy/zzzz.git']]
                )
            }
        }
    }
}

上記のように git ではなく checkout を使用して checkoutOption で
タイムアウトまでの時間を指定したら正常に Pull できた

参考サイト様




以上の内容はhttps://baba-s.hatenablog.com/entry/2024/01/31/113939より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14