HSingh007417 (Community Member) asked a question.

Is there any API command to delete build only if it is in 'Request Incomplete' status and not if it was a successful scan ?

I am using Veracode C# API wrappers to automate the static scan steps. Once a scan somehow reaches a "Request Incomplete" status, Veracode does not allow us to schedule further scans over it. So, I am looking out for a command(similar to deletebuild) that would delete the latest build only if it was an unsuccessful scan and not the 'Complete' scans.


  • ABacchi035478 (Community Member)

    Ive been using the java wrapper and powershell- usually I'll write something loosely like

    getbuildinfo

    if (status -eq "incomplete") { deletebuild}

     

    One major issue I encountered though is that if the policy scan is older than the latest sandbox scan it will not allow you to delete the newest policy scan build. Support confirmed this is known.

     

    Expand Post
    Selected as Best
  • ABacchi035478 (Community Member)

    Ive been using the java wrapper and powershell- usually I'll write something loosely like

    getbuildinfo

    if (status -eq "incomplete") { deletebuild}

     

    One major issue I encountered though is that if the policy scan is older than the latest sandbox scan it will not allow you to delete the newest policy scan build. Support confirmed this is known.

     

    Expand Post
    Selected as Best

Topics (3)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.