Jenkins Version: 2.53
CARA Version: 126.96.36.19929
I'm trying to use the CA Release Automation (CARA) Jenkins plugin to kick off a deployment after performing a build in Jenkins. The build completes successfully and the deployment does initialize in CARA. However, the deployment fails at the pre-deployment stage with distribution errors. Attached is a screenshot of a error that CARA pops up during the deployment, stack trace from the CARA logs. Please let me know if you would like additional information and I can see what I can provide.
Jenkins Console Output:
Status of deployment [ContactManager_CARA_Test49_DEV03] on environment [DEV03] : Active. Stage Status: Current Stage: Distribute-Execution-Server, Current stage Status: Pending, Description: 0% Pending Artifacts Distribution (With errors). Stage Error Details: ["Failed to download artifact [Artifact [ ContactManager.WARFile'ver. ContactManager_CARA_TEST-49']] to retrieval agent [*OMITTED*]. Local agent error is [Retrieval action failed - Source file does not exist - ab.war]"] You can resolve the error then resume the execution from RA.
Can you verify that the artfact is properly configured in RA and the retrieval agent can reach it?
Isn't this the question I'm asking about? Do you have instructions on what I can do to verify what you are asking for?
Can you please validate
to the environment in RA
Yep this matches up. I don't think this will be the issue anyways since it never actually hits the deployment and fails at the pre-deployment stage.
Do you have some details on the RA architecture? If the retrieval agent is connected to a different nes than the target agent you will need to ensure you have defined the nes routing. can you confirm if both agents are connected to the same nes?
Hi can you please share me if you have any document to integrate jenkins with CA release automation.
1) How the integration happens between Jenkins and CA release automation, do you need to specify the host name and password as u mentioned in the screen shot.
-> Just provided the hostname and password
-> here itself we need to create deployment catagoery , type and build details ?
so once after this we can go ahead a login CA to check the process? Is this the flow can you please explain me.
Thanks in advance.
Please find document which can be of help in integrating Jenkins with CARA.
Did the answer provided answered your question? If it did please mark it as the right answer. When your question is not answered or you still have additional questions please let us know.
With Kind Regards
Thanks everyone for your input. I was able to find the solution to this problem. I had the wrong local file path in my artifact package xml.
Glad it was resolved! I would like to share one additional detail, just in case you run into this in the future, because I ran into a similar situation recently myself.
If a deployment called via the RA plugin for Jenkins fails at artifact distribution/retrieval, the fastest/easiest test to help you quickly identify the cause of the problem is to test retrieval in ROC. Setup the artifact in ROC then check the box "store in local repository", designating the same agent you chose in Jenkins. If it returns a success message, then something is likely wrong on the Jenkins side of the configuration, but if it fails, you then know there's a problem solely on the RA end.
In my case, checking that box resulted in a failure message, and I was able to isolate it to a specific agent. That definitely helps in troubleshooting.