Hello,
I am using jenkins for continuous integration work. I have a requirement where I need to trigger a job as part of the post build step of a job. For example I have a job to build a source and I would like to trigger the job that tests the binaries as part of the post build step. Although I am aware how to trigger a job in the post build step I am failing to understand how to pass certain parameters[ information that the next job needs to know to execute] to the next job. I came across the "Parameterized Trigger Plugin" https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Pluginbut it does not explain how to access the parameters passed in the new job.
Can someone help me with this ?
Thanks and Regards, Deepti.
1. You should check the "This build is parametrized" box for the downstream (Sanity testing) job. Then the parameters for these jobs should be defined (preferably with some sane defaults)
2. Select the "Trigger parametrized build on other projects" in the upstream job. You can assign some default parameters, or, convert a parameter (or the environment variable) of the current job into the parameters of the downstream job.
See the attached screenshot for hints..
Hope this helps..
Venkat.
On 16 August 2011 18:02, Deepti Kalakeri deepti.kalakeri@linaro.org wrote:
Hello,
I am using jenkins for continuous integration work. I have a requirement where I need to trigger a job as part of the post build step of a job. For example I have a job to build a source and I would like to trigger the job that tests the binaries as part of the post build step. Although I am aware how to trigger a job in the post build step I am failing to understand how to pass certain parameters[ information that the next job needs to know to execute] to the next job. I came across the "Parameterized Trigger Plugin" but it does not explain how to access the parameters passed in the new job.
Can someone help me with this ?
Thanks and Regards, Deepti.
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Thanks, this looks like great information. Deepti, does this work for you?
Thanks,
James
On Tue, 16 Aug 2011 19:57:56 +0530, Venkatraman S venkat@linaro.org wrote:
- You should check the "This build is parametrized" box for the
downstream (Sanity testing) job. Then the parameters for these jobs should be defined (preferably with some sane defaults)
- Select the "Trigger parametrized build on other projects" in the
upstream job. You can assign some default parameters, or, convert a parameter (or the environment variable) of the current job into the parameters of the downstream job.
See the attached screenshot for hints..
Hope this helps..
Venkat.
On 16 August 2011 18:02, Deepti Kalakeri deepti.kalakeri@linaro.org wrote:
Hello,
I am using jenkins for continuous integration work. I have a requirement where I need to trigger a job as part of the post build step of a job. For example I have a job to build a source and I would like to trigger the job that tests the binaries as part of the post build step. Although I am aware how to trigger a job in the post build step I am failing to understand how to pass certain parameters[ information that the next job needs to know to execute] to the next job. I came across the "Parameterized Trigger Plugin" but it does not explain how to access the parameters passed in the new job.
Can someone help me with this ?
Thanks and Regards, Deepti.
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Attachment: parametrized_build.png (image/png) Attachment: trigger_parametrized_build.png (image/png)
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
On Tue, Aug 16, 2011 at 11:24 PM, James Westby james.westby@canonical.comwrote:
Thanks, this looks like great information. Deepti, does this work for you?
I know this should work, but I am still not successful with this.
Regards, Deepti.
Thanks,
James
On Tue, 16 Aug 2011 19:57:56 +0530, Venkatraman S venkat@linaro.org wrote:
- You should check the "This build is parametrized" box for the
downstream (Sanity testing) job. Then the parameters for these jobs should be defined (preferably with some sane defaults)
- Select the "Trigger parametrized build on other projects" in the
upstream job. You can assign some default parameters, or, convert a parameter (or the environment variable) of the current job into the parameters of the downstream job.
See the attached screenshot for hints..
Hope this helps..
Venkat.
On 16 August 2011 18:02, Deepti Kalakeri deepti.kalakeri@linaro.org
wrote:
Hello,
I am using jenkins for continuous integration work. I have a requirement where I need to trigger a job as part of the post
build
step of a job. For example I have a job to build a source and I would like to trigger
the
job that tests the binaries as part of the post build step. Although I am aware how to trigger a job in the post build step I am
failing
to understand how to pass certain parameters[ information that the next job needs to know to
execute]
to the next job. I came across the "Parameterized Trigger Plugin" but it does not
explain
how to access the parameters passed in the new job.
Can someone help me with this ?
Thanks and Regards, Deepti.
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Attachment: parametrized_build.png (image/png) Attachment: trigger_parametrized_build.png (image/png)
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Check the 2nd screenshot -trigger_p..*.png. That's essentially composing the values to be passed to the downstream job. You have to have the same named parameter in your downstream job as well. Best regards, Venkat. (Sent from my phone)
On 8/16/11, Deepti Kalakeri deepti.kalakeri@linaro.org wrote:
On Tue, Aug 16, 2011 at 11:24 PM, James Westby james.westby@canonical.comwrote:
Thanks, this looks like great information. Deepti, does this work for you?
I know this should work, but I am still not successful with this.
Regards, Deepti.
Thanks,
James
On Tue, 16 Aug 2011 19:57:56 +0530, Venkatraman S venkat@linaro.org wrote:
- You should check the "This build is parametrized" box for the
downstream (Sanity testing) job. Then the parameters for these jobs should be defined (preferably with some sane defaults)
- Select the "Trigger parametrized build on other projects" in the
upstream job. You can assign some default parameters, or, convert a parameter (or the environment variable) of the current job into the parameters of the downstream job.
See the attached screenshot for hints..
Hope this helps..
Venkat.
On 16 August 2011 18:02, Deepti Kalakeri deepti.kalakeri@linaro.org
wrote:
Hello,
I am using jenkins for continuous integration work. I have a requirement where I need to trigger a job as part of the post
build
step of a job. For example I have a job to build a source and I would like to trigger
the
job that tests the binaries as part of the post build step. Although I am aware how to trigger a job in the post build step I am
failing
to understand how to pass certain parameters[ information that the next job needs to know to
execute]
to the next job. I came across the "Parameterized Trigger Plugin" but it does not
explain
how to access the parameters passed in the new job.
Can someone help me with this ?
Thanks and Regards, Deepti.
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Attachment: parametrized_build.png (image/png) Attachment: trigger_parametrized_build.png (image/png)
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Hello Venkatraman,
Thanks for the quick reply.
On Tue, Aug 16, 2011 at 7:57 PM, Venkatraman S venkat@linaro.org wrote:
- You should check the "This build is parametrized" box for the
downstream (Sanity testing) job. Then the parameters for these jobs should be defined (preferably with some sane defaults)
The value would be defined at the end of the execution of the build steps. How to assign such a value from the upstream job ? I can see the name of the predefined parameter defined in the upstream job as part of the environment variable in the downstream job but I am not able to access the value variable ? currently in the upstream job if TEST_HWPACK_NAME is the predefined variable how to access this in the downstream job ? I tried using $TEST_HWPACK_NAME but I don't the value that is assigned to that variable.
2. Select the "Trigger parametrized build on other projects" in the
upstream job. You can assign some default parameters, or, convert a parameter (or the environment variable) of the current job into the parameters of the downstream job.
See the attached screenshot for hints..
Hope this helps..
Venkat.
Thanks and Regards, Deepti.
On 16 August 2011 18:02, Deepti Kalakeri deepti.kalakeri@linaro.org wrote:
Hello,
I am using jenkins for continuous integration work. I have a requirement where I need to trigger a job as part of the post
build
step of a job. For example I have a job to build a source and I would like to trigger
the
job that tests the binaries as part of the post build step. Although I am aware how to trigger a job in the post build step I am
failing
to understand how to pass certain parameters[ information that the next job needs to know to
execute]
to the next job. I came across the "Parameterized Trigger Plugin" but it does not explain how to access the parameters passed in the new job.
Can someone help me with this ?
Thanks and Regards, Deepti.
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
On Tue, 16 Aug 2011 18:02:02 +0530, Deepti Kalakeri deepti.kalakeri@linaro.org wrote:
Hello,
I am using jenkins for continuous integration work. I have a requirement where I need to trigger a job as part of the post build step of a job. For example I have a job to build a source and I would like to trigger the job that tests the binaries as part of the post build step. Although I am aware how to trigger a job in the post build step I am failing to understand how to pass certain parameters[ information that the next job needs to know to execute] to the next job. I came across the "Parameterized Trigger Plugin" https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Pluginbut it does not explain how to access the parameters passed in the new job.
Can someone help me with this ?
Hi,
https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin?foc...
states that the downstream job just sees the values as environment variables.
What do you want to do with parameters that are passed?
Thanks,
James
On Tue, Aug 16, 2011 at 8:15 PM, James Westby james.westby@linaro.orgwrote:
On Tue, 16 Aug 2011 18:02:02 +0530, Deepti Kalakeri < deepti.kalakeri@linaro.org> wrote:
Hello,
I am using jenkins for continuous integration work. I have a requirement where I need to trigger a job as part of the post
build
step of a job. For example I have a job to build a source and I would like to trigger
the
job that tests the binaries as part of the post build step. Although I am aware how to trigger a job in the post build step I am
failing
to understand how to pass certain parameters[ information that the next job needs to know to
execute]
to the next job. I came across the "Parameterized Trigger Plugin" <
https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin
but it does not explain how to access the parameters passed in the new job.
Can someone help me with this ?
Hi,
https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin?foc...
states that the downstream job just sees the values as environment variables.
What do you want to do with parameters that are passed?
I need to capture the name of the new hardware pack that is built to be used further down for testing. Right now I am using a file to write this information and then in the testing job I read this file.
Any suggestion or alternative?
Thanks,
James
Thanks and Regards, Deepti.