Re: Generate stage from script stdout

2019-08-19 Thread jeremy mordkoff
yes. You can generate groovy code using any tool you want and then use load to import it, e.g. node('docker') { checkout scm // this step generates Jenkinsfile.do_merge sh script: './bin/git/needs_merging -j' pipeline = load 'Jenkinsfile.do_merge' pipeline.execute() } and t

Generate stage from script stdout

2019-08-18 Thread Yeikel Santana
Dear Jenkins Community, I am aware that we can generate dynamic stages using groovy scripts. Question is, can we also do this from the standard output of a script? For example, I have a script written in Nodejs that I execute with "sh node script.js" and that It can produce standard output to