-
Bug
-
Resolution: Not A Defect
-
Major
-
OS - Linux ubuntu
Jenkins job dsl plugin - 1.47
Artifactory plugin - 2.4.7
Java - 1.8
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
Got the same problem as Praveen A. Except that I got the following plugin setup:
Jenkins 2.12
Artifactory Plugin 2.5.1
Job DSL 1.48
Java 1.8
OS - Ubuntu
String artifactory_Name = 'ArtifactoryServer'
String artifactory_Url = 'http://artifactory.host.se/artifactory'
artifactoryGenericConfigurator {
{ keyFromText('node-plugin-release-local') keyFromSelect('') dynamicMode(true) }details {
artifactoryName(artifactory_Name)
artifactoryUrl(artifactory_Url)
deployReleaseRepository
deploySnapshotRepository
{ keyFromText('node-plugin-snapshots-local') keyFromSelect('') dynamicMode(true) }resolveReleaseRepository { keyFromText('node-plugin-snapshots-local') keyFromSelect('') dynamicMode(true) }
resolveSnapshotRepository
{ keyFromText('node-plugin-snapshots-local') keyFromSelect('') dynamicMode(true) }userPluginKey('')
userPluginParams('')
}