Problem 1 : My requirement here is deploying the artifacts which are created during a build should be uploaded to a JFROG repository with a custom folder structure.
Eg. For a Jenkins build number 1, the folder should be named '1' and inside that, all the artifacts of that build should be stored and for build number 2, all artifacts of that build should be stored under the folder named '2'.
Problem 2: Here Iam having a number of parallel and sequential jobs, So, the artifacts created for one job would be required for another job ,Hence that also need to be pulled from the respective custom folder which we created above.
Eg. Job 2 need artifacts of job 1 to get the build successful.
Build is done using Jenkins pipeline script.