-
Bug
-
Resolution: Unresolved
-
Critical
-
Jenkins 1.651.3
artifactory plugin 2.8.1
Artifactory server 4.14.0 (Pro License)
We have a jenkins free style job that with a Generic-Artifactory Integration enabled.
The Download Details have is filled with an aql. Any "correct" aql query cause an NPE when job starts.
Jenkins Artifactory Plugin version: 2.8.1 ERROR: null java.lang.NullPointerException at org.jfrog.build.extractor.clientConfiguration.util.spec.SpecsHelper.pathToUnixFormat(SpecsHelper.java:106) at org.jfrog.build.extractor.clientConfiguration.util.spec.SpecsHelper.getDownloadUploadSpec(SpecsHelper.java:98) at org.jfrog.hudson.generic.GenericArtifactsResolver.retrieveDependenciesBySpec(GenericArtifactsResolver.java:73) at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator.setUp(ArtifactoryGenericConfigurator.java:329) at hudson.model.Build$BuildExecution.doRun(Build.java:156) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE
I had try also the unique aql working in Spec file found in your documentation here, see example 2
Anyway documentation lacks at all on how adapt an aql into Spec File format.
Little example:
standard aql
items.find({ "repo": "m2-tds-snapshot-local" }).sort({"$desc" : ["name"]}).limit(12)
Spec file
{ "files": [ { "aql": { "items.find": { "repo": "my-local-repo", "sort"??? } "sort"??? "limit"?? } }