Due to infrastructure constraints, in my Jenkinsfile, I would like to store some variables from build #1 and be able to access them from build #2 and next ones.
I tried to set some env variables, but it seems they are not saved from a build to another.
Is there to acheive that from Jenkinsfile? Or maybe to write them to a text file?
Jenkins version: 2.111