Hi there!
We're currently using Bamboo 7.1.2 and need to move some plans between projects due to changes in ownership and for cleanup purposes.
When we attempt to move a newly created plan, Plan Y (key: PLANY), from a freshly created Project Y (key: PY) — which contains only a single shell script task in its default job to list the contents of the working directory (this task runs successfully) — to another newly created and completely empty Project X (key: PX), it fails with the error: "String [PX-JOB1] is not a job key."
Does anyone have any tips or suggestions for us? 😊
Hello Kamran,
Welcome to Atlassian community
Looking at the key PX-JOB1 for the job, it seems wrong, it should be projectkey-plankey-jobkey.
I did a quick test in Bamboo 9 with the above scenario and I don't see the error, Can you try to open the Job from the moved plan and check what is the Job key it will be displayed in the browser.
Also do validate if you have followed the steps from https://confluence.atlassian.com/bamboo/moving-plans-to-a-different-project-289277189.html
Regards,
**please don't forget to Accept the answer if your query was answered**
Hi Shashank 🙂
Thanks for quick reply!
Here is what I get in the browser address bar when I go to the Default Job inside Plan Y belonging to Project Y
.../build/admin/edit/editBuildTasks.action?buildKey=PY-PLANY-JOB1
But when trying to move the plan, it seems to be dropping the plan ID 🤔
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kamran,
This is the original scenario when the Default Job is under Plan Y and Project Y
Can you confirm what is the Job key when this is moved to Project PX.
If your project does not contain any sensitive info can you share the YAML Specification after the plan is moved to Project PX, this will clear all the doubts, refer YAML specification for more details on how to do this.
Regards,
Shashank Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's the problem, I can not move it at all, it fails when I click the Move button with the error message you see in the screenshot which is referring to a wrong job key which doesn't have the Plan ID in it! 😐
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.