Hi,
I have an issue and I don't get it to work.
I have 2 Jenkinsfiles and thus 2 jobs. With the first Jenkinsfile I set an variable by reading a specific file, in this case: def commit_id = readFile('.git/commit-id').trim()
Now I need to pass this 'commit_id' variable from the 1st Jenkinsfile/job to the 2nd Jenkinsfile/job. The 2nd job will already be triggered once the 1st job is completed successfully.
I Already have installed the 'Parameterized Trigger plugin' plugin and added a "string" parameter (Name: commid_id, value: {commit_id}) but this isn't working.
What am I doing wrong? Any suggestions?
Kind regards,
Werner