Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Not A Defect
-
Component/s: artifactory-plugin, job-dsl-plugin
-
Environment:OS - Linux ubuntu
Jenkins job dsl plugin - 1.47
Artifactory plugin - 2.4.7
Java - 1.8
-
Similar Issues:
Description
Artifactory configuration with dsl as follows. Target repository is empty but config.xml has the value 'libs-snaphost-local'. I attached the screenshot with it. This configuration is for .net
artifactoryGenericConfigurator {
details {
artifactoryName('http://<ip>:<port>/artifactory')
artifactoryUrl('http://<ip>:<port>/artifactory')
deployReleaseRepository
}
deployPattern('*.zip')
}
Above configuration is failing with following error.
18:10:05 Time Elapsed 00:00:10.80
18:10:05 For pattern: *.zip 1 artifacts were found
18:10:06 ERROR: Target repository cannot be empty
18:10:06 java.lang.IllegalArgumentException: Target repository cannot be empty
See this answer on Stack Overflow about configuring the Artifactory plugin with Job DSL: https://stackoverflow.com/a/48486303/1271460