Set environment Variables for the current job

27 views
Skip to first unread message

Loup Letac

unread,
Aug 15, 2017, 3:28:54 PM8/15/17
to job-dsl-plugin
Hi,

I use a dsl job to generate other job.
But since the list of generated jobs is changing, I need to set or overwrite an environment variable to launch the generated builds after.
It's seem that the dsl job is contained and cannot set anything outside itself.

Is it possible ? Or do I need to create an "launching" job ?

Thank you

Loup

Daniel Spilker

unread,
Aug 30, 2017, 2:46:02 PM8/30/17
to job-dsl...@googlegroups.com
You can use queue to schedule a build of a job. See https://github.com/jenkinsci/job-dsl-plugin/wiki/Job-DSL-Commands#queue
job('example') {
  // ...
}

queue('example')


Daniel

--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/e84a945b-6270-4b8d-8ae1-93d1006ff30d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages