How to pass information between Jobs in a Workflow

workflow

#1

My initial ‘Build’ job produces a piece of information (just a text string) that I want to pass on to the other Jobs in the Workflow to use. What is the best way to do that?

I tried creating a Project environment variable and setting that environment variable during the Build job and then reading it during the subsequent jobs, but that didn’t work. The environment variable still had the value I was required to set for it when creating the environment variable in the web interface.


#2

Dump the string to a file and persist the file to a workspace that your other jobs attach to and read from maybe? If there’s an easier way it’s escaping me.


#3

Thanks! I was thinking last night after I posted that I might be able to solve the problem that way – just wasn’t sure if there was a more direct way. Cheers!


#4

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.