static def withSimpleCredentials()

in src/org/apache/jackrabbit/vault/PipelineSupport.groovy [60:67]


    static def withSimpleCredentials(pipeline, Map<String, String> credentialIdToEnvironmentVariable, Closure closure) {
        if (credentialIdToEnvironmentVariable == null) {
            closure.call()
        } else {
            def bindings = credentialIdToEnvironmentVariable.collect{ e -> pipeline.string(credentialsId: e.key, variable: e.value) }
            pipeline.withCredentials(bindings, closure)
        }
    }