-
Bug
-
Resolution: Unresolved
-
Critical
-
Centos 7, Jenkins 2.60.1, Java 1.8.
There is an option build in File Spec. I am trying to use it for download of latest artifact in our consumer project..
{
"files": [
{
"pattern" or "aql": "[Mandatory]",
"target": "[Mandatory]",
"props": "[Optional]",
"recursive": "[Optional, Default: true]",
"flat": "[Optional, Default: false]",
"build": "[Optional]",
"explode": "[Optional, Default: false]"
}
]
}
We have found out that build option does not work correctly for “Multi Configuration” Jenkins projects – nothing is downloaded. We have dozens of artifacts in our Artifactory created by one multi configuration project (which has 112 combinations). Each group of 16 packages goes to the same artifactory folder (of course, with different name). We have a download file spec like this in our consumer project:
{
"files": [
{
"target": "package/",
"pattern": "ourproject-snapshot-local/com/ourcompany/ourframework/${Module}/*${VISUAL_STUDIO_VERSION}_${Platform}${BuildType}.tar.gz",
"recursive": "false",
"flat": "true",
"props": "VisualStudioVersion=${VISUAL_STUDIO_VERSION};BuildType=${BuildType};Platform=${Platform};Module=${Module};ClearcaseView=${CLEARCASE_VIEW};SharedLib=${SharedLib}",
"build": "Our_Framework :: PF_build_project_windows"
}
]
}
Please notice implicit LATEST “flag” in this configuration.
This file spec downloads the artifact only in one scenario:
- when a multi configuration project which is producing those 112 packages is limited by “Combination filter”, so only one Configuration is executed (and one package uploaded)
- when we have same “Combination filter” in consumer project, file is downloaded.
In all other scenarios (no combination filter), nothing is downloaded.