Where to set -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=300

前端 未结 3 1595
太阳男子
太阳男子 2021-02-07 06:44

I am getting errors from the durable task plugin when I run my pipeline dsl jenkins job.

The error message suggests that I should use:

-Dorg.jenkinsci.pl         


        
3条回答
  •  半阙折子戏
    2021-02-07 07:22

    option 1: Add in your pipeline

    script { System.setProperty("org.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL", "3800"); }

    after Running the approve the script in security settings at Manage Jenkins – In-process Script approval.

    Option 2:

    go to Manage Jenkins -> Script Console and run

    System.setProperty("org.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL", "3800");
    

提交回复
热议问题