1) Create a freestyle project "downstream"
2) Define a string parameter "dparam" for "downstream", this has no default value
3) Add a "Execute Windows batch command" or "Execute shell" to echo %dparam%

4) Create a Maven Project named "upstream" with the same maven artifactid
5) Define a string parameter "uparam" for "upstream" with a default value ${POM_ARTIFACTID}-${BUILD_ID}
7) In the pre-build-steps Add a "Execute Windows batch command" or "Execute shell" to echo %uparam%
8) In the post-build-steps Add a "Execute Windows batch command" or "Execute shell" to echo %uparam%
9) Configure Add Trigger parameterized build on other projects" in the Post-build Actions:
Projects to build: downstream
Add "Predefined parameters" and specify "dparam=${uparam}

10) Run a build of "upstream" (build number X)

11) Verify that the console output for "upstream" contains 2 occurences upstream-X (both as pre & post build step)
12) "downstream" is now triggered by "upstream".
13) Verify the console output of "downstream" which shows "${POM_ARTIFACTID}-X

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to