JBrowning340945 (Community Member) asked a question.

Has "failTheBuildIfVeracodeScanDidNotInitiate" changed to "failBuildIfUploadAndScanBuildStepFails"?

 

We have a build not failing (when it should).

 

We are setting "failTheBuildIfVeracodeScanDidNotInitiate=True" but the DevOps pipeline step is completing (OK/Green Tick etc) but the log says different and the scan does actually fail with the below...

 

  "...Exiting Veracode Upload and Scan Task: App not in state where new builds are allowed."

 


  • Hello @JBrowning340945 (Community Member)​ ,

     

    There are no wide spread issue with this setting that we are aware of. Would you be willing to message me privately, the snippet of code for the step that you are having issues with? I can take a look at it to see if I can assist.

     

    Jason

    Veracode Support Engineer

    Expand Post
  • mo-malo (Community Member)

    I realize this question is 10 months old but I have the exact same question which wasn't really answered.

     

    We have multiple Azure DevOps YAML pipelines that use the "Veracode.veracode-vsts-build-extension.veracode-scanner-task.Veracode@3" task and are specifying 'failTheBuildIfVeracodeScanDidNotInitiate: true' but we're seeing that step and the whole build succeed in some instances where it shouldn't (e.g. concurrent static scan limit exceeded). Looking at the current documentation, this property is not listed but there is a similarly named 'failBuildIfUploadAndScanBuildStepFails' instead that sounds pretty similar.

     

    1. Was 'failTheBuildIfVeracodeScanDidNotInitiate' valid in the past?
    2. Is it still valid today (and if not, when did this change occur and where/how was the deprecation communicated to customers)?
    3. What if any difference in functionality is there between 'failTheBuildIfVeracodeScanDidNotInitiate' and 'failBuildIfUploadAndScanBuildStepFails'?

     

    Expand Post
    • mo-malo (Community Member)

      Answers from support ticket:

       

      - only "failBuildIfUploadAndScanBuildStepFails" is supported,

      - the old value does not work,

      - there is no difference in functionality.

       

      This was changed in the middle of the last year (with version 3.6.0). We do typically mention these breaking changes in the Release Notes, including any new parameters we add but it appears that failTheBuildIfVeracodeScanDidNotInitiate was never mentioned in the docs. Instead, it should have been announced in the Release Notes as a replacement/rename of an existing parameter.

      Expand Post

Topics (2)

No articles found
Loading

Ask the Community

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