简体   繁体   中英

How to change the default timeout for the Jenkins Artifactory plugin in a Multibranch Pipeline job?

I have a Jenkins Multibranch Pipeline build job that is uploading a rather large number of big files to Artifactory, and therefore the upload step is taking longer than the default 5 minute limit defined in the Artifactory Jenkins plugin:

src/main/java/org/jfrog/hudson/ArtifactoryServer.java:    private static final int DEFAULT_CONNECTION_TIMEOUT = 300;    // 5 Minutes

How can I specify a longer timeout in my Jenkinsfile so my build jobs can get successfully uploaded and stop failing?

This is documented here: HAP-893 .

The short answer is that, for now, this is not possible for pipeline jobs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM