File tree 1 file changed +2
-1
lines changed
src/main/java/io/jenkins/plugins/artifactory_artifacts
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
package io .jenkins .plugins .artifactory_artifacts ;
2
2
3
+ import com .cloudbees .plugins .credentials .CredentialsProvider ;
3
4
import com .cloudbees .plugins .credentials .common .UsernamePasswordCredentials ;
4
5
import edu .umd .cs .findbugs .annotations .NonNull ;
5
6
import java .io .IOException ;
@@ -253,7 +254,7 @@ public static final class ArtifactoryConfig implements Serializable {
253
254
public ArtifactoryConfig (String serverUrl , String repository , UsernamePasswordCredentials credentials ) {
254
255
this .serverUrl = serverUrl ;
255
256
this .repository = repository ;
256
- this .credentials = credentials ;
257
+ this .credentials = CredentialsProvider . snapshot ( UsernamePasswordCredentials . class , credentials ) ;
257
258
}
258
259
259
260
public String getServerUrl () {
You can’t perform that action at this time.
0 commit comments