I am trying to pass a zip file of a build down to another job that runs the end to end tests. It would usually use the build artifacts from the main job, but I want to add the end to end tests as part of the build pipeline. I tried using the file parameter in Jenkins but the file never showed up and I believe there's some outstanding issues preventing it from working. Is there a way I can pass the files to a downstream job via stashing/file parameter. or could do I have to do something like create a downstream job that does the build and then take the artifacts and use it in a master job that also runs the end to end tests too?
This is how I tried the file parameter
parameters {
file name:"buildFiles.zip", description: 'Zip file containing Build Files'
}
Note: I am using a Jenkinsfile for the jobs.
UPDATE: The way I ended up solving the issue was to push the finished builds to a proget universal package repo and then let the downstream job pull from that.