0
votes

https://www.jfrog.com/confluence/display/RTF/Working+With+Pipeline+Jobs+in+Jenkins

This article attempts to describe all the details as well for "Declarative Pipeline Syntax" as for "Scripted Pipeline Syntax". but for "Declarative …" it does not describe how to bypass the proxy whereas for "Scripted …" it does: "server.bypassProxy = true".

So how would I specify bypassing the proxy in a Jenkins pipeline script with "Declarative Pipeline Syntax"?

1

1 Answers

3
votes

In rtServer add bypassProxy: true:

rtServer (
    id: "Artifactory-1",
    url: "http://my-artifactory-domain/artifactory",
    username: "user",
    password: "password",
    bypassProxy: true
)