In Bamboo you can create a child plan that will be automatically invoked when a given plan completes successfully. I want to kick off a performance test plan after a good build of our nightly plan (but I don't want the availability or success/failure of the nightly plan to depend on the performance test plan, so I don't want to add it as a task to the nightly plan).
I see in Bamboo that I can add the performance test plan as a child of the nightly plan, which is great.
But I need the artifacts from the nightly plan when I run the performance test plan, and I can't see in the documentation any way to know what the plan name and build number of the parent plan was once I've started the child plan.
How can I get this information? Thanks!
Quick question - which Bamboo version are you using? 5.0++ ? I'm wondering if you could use 'Deployments' feature (introduced in Bamboo 5.0) and get rid of your second plan. Can you tell me if you considered using Deployments instead of the second, "releasing" plan?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Piotr,
That doesn't guarantee that I'm getting the same same parent build number as the one which triggered the child build :/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Thiago,
Why do you need to guarantee you're getting the same build number?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Paul,
I think that what you are trying to achieve is not implemented yet in Bamboo - please check this issue out: https://jira.atlassian.com/browse/BAM-10573 - if I understand you correctly this is the functionality you're after. If so - can you vote on that issue?
I think the current workaround is to 'wget' the artifact from the different plan by hitting a relevant URL + basic authentication. If you wish I can find you more informations about that technique (although not today) - just chime in.
regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Piotr. I did vote on that issue. For now I'm happy to do a wget, that's no problem. In fact I already do that in other situations and it's very easy. But in order to do the wget, I need to know the plan ID and build # of the parent plan. Is there a way to get that information? Without it I don't see how I can use wget for this.
Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, I see - so you don't want to have a 'hardcoded' solution where you store the parent plan key in the script that calls wget? Instead you want to have some kind of a shared script that could be re-used in each of your 'child' plans in Bamboo? Am I understanding correctly?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
(Why do I not get email about answers even though I'm subscribed?? Grr.)
Ideally I would be able to have multiple parent plans run the same child, yes, because the child is a suite of performance validation tests and we have various different build plans we'd like to test.
But, even if we did hardcode the plan ID I still need to get the build number before I can retrieve the artifact, so I still need some information about the parent when the child is running... yes?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hm... No, I think you don't need the build number - instead you can use "latest"/"latestSuccessful" redirect, like explained in https://answers.atlassian.com/questions/134830/direct-link-to-bamboo-project-plan-s-last-success-build-s-artifact-files - can you briefly check the linked question and tell me if it is in any way helpful to your situation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.