jenkins pipeline timeout対策

ERROR: Timeout after 10 minutes

ゲーム開発でアセットたくさんプッシュして一気にプルしようとするとtimeoutしやすいです

スポンサーリンク

optionsを使う

Pipeline Syntax
Jenkins – an open source automation server which enables developers around the world to reliably build, test, and deploy their software
pipeline {
    agent any
    options {
        timeout(time: 1, unit: 'HOURS') 
    }
    stages {
        stage('Example') {
            steps {
                echo 'Hello World'
            }
        }
    }
}

一番手軽そうです。

checkout関数を使う

Configure git timeout on Jenkins pipeline with Classic UI
I need to clone a plugin git public repository(that is not mine), zip it, and upload it to my server. node { stage('clone') { // for display purposes // G...

これもtimeout指定できます。記述めんどいですね

jenkins
スポンサーリンク
masakamiをフォローする
まさかみブログ