Greetings,
I have been working on ZAP with an automation framework plan running in Jenkins. I wrote a python script that runs before ZAP kicks off and it quires the status of the automation plan. Once it determines the automation plan has finished Ascan the script pull alert data from the zap API and formats into a json object I can import into my KB.
The problem I've been having is that the script needs to know the plan id to query the status of the automation framework job. I tried assuming the plan id would be 0 and if no plan is returned increment by one.
Is there a way to assign a planid? I could change my approach and have a python run in jython as a step in the automation plan but I would need to rewrite since my script is in python3. Any suggestions would be much appreciated!
Thank you,
-James