script { ... ... sh """ X = ... """ }
Can X be read directly, outside of the sh block? Right now I'm echoing X to file (echo X > myfile.txt) and then read the contents of the file (def y = readFile("myfile.txt).trim). There has to be a better way to do this? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f1625527-a748-4a34-9dca-f83baa5cd4cd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.