Reputation: 696
I am trying to upload a project to a generic repository in Artifactory while maintaining it's layout.
I am using the following specs in the job configuration to upload:
The specs upload the directory files without keeping the layout. Meaning all the files are taken from subdirectories and thrown to the repository in one place.
I tried adding the flag: "flat": "false" which is suppose to help maintain the directory structure(according to JFrog website) but when I use it:
{
"files": [
{
"pattern": "C:\TestForJenkins\WindowsApplication1\bin/",
"target": "WindowsApplication1/",
"recursive": "true",
"flat": "false"
<<-------------------
}
]
}
I get an error:
ERROR: null
java.lang.NullPointerException
at java.io.File.<init>(Unknown Source)
at org.jfrog.build.extractor.clientConfiguration.util.spec.UploadSpecHelper.stripFileNameFromPath(UploadSpecHelper.java:372)
I can't find a way to use the flag flat and upload the files according to their layout in the bin directory.
Can someone help?
Upvotes: 1
Views: 1766
Reputation: 634
It appears you have encountered this Jira issue. The fix for this Jira will be in the next Jenkins-Artifactory Plugin version. In general, you can search the JFrog Jira to see if you have encountered a known issue. Or take a look here and here.
All in all, without further info (i.e. full stacktrace + Jenkins version + Jenkins-Artifactory Plugin version) this does not look like a user error.
Hope it helps.
Upvotes: 2