WBradney035779 (Community Member) asked a question.

TeamCity Plugin: Can we get a "Wait for scan to _Start_" option?

There's "Wait for scan to finish", but we don't even want to wait for the scan to start - once the files have been uploaded we'd like our build to proceed without waiting for several two-minute timeouts to complete.


  • Hi @WBradney035779 (Community Member)​ - thank you for reaching out! I connected with a Veracode solution architect (thanks @krise (Veracode, Inc.)​ !) and here is his feedback: the scan will start when the upload is done - there is no waiting.  Leave the ‘wait for scan to finish’ box unchecked and you should get the result you want.

     

    Let us know if this makes sense!

    Expand Post
    • WBradney035779 (Community Member)

      We do in fact have "Wait for scan to complete unchecked". Below is an excerpt from one of our TeamCity build logs. This configuration was averaging under 1 minute build time before adding the Veracode build step. After Veracode this build took over 38 minutes, only to ultimately fail anyway.

       

      [11:56:33][Step 7/7] [19.10.31 11:56:33] 

      [19.10.31 11:56:33] Uploading: <REDACTED>

      [11:56:34][Step 7/7] [19.10.31 11:56:34] 

      [19.10.31 11:56:34] Uploading: <REDACTED>

      [11:56:35][Step 7/7] [19.10.31 11:56:35] 

      [19.10.31 11:56:35] Starting pre-scan verification for application "<REDACTED>" build "<REDACTED>.106".

      [11:56:36][Step 7/7] [19.10.31 11:56:36] 

      [19.10.31 11:56:36] The status of "<REDACTED>.106" is "Pre-Scan Submitted".

      [19.10.31 11:56:36] Requesting build info again in 2 minutes.

      [11:58:37][Step 7/7] [19.10.31 11:58:37] 

      [19.10.31 11:58:37] The status of "<REDACTED>.106" is "Pre-Scan Submitted".

      [19.10.31 11:58:37] Requesting build info again in 2 minutes.

      [12:00:43][Step 7/7] [19.10.31 12:00:43] 

      [19.10.31 12:00:43] The status of "<REDACTED>.106" is "Pre-Scan Submitted".

      [19.10.31 12:00:43] Requesting build info again in 2 minutes.

      [12:02:48][Step 7/7] [19.10.31 12:02:48] 

      [19.10.31 12:02:48] The status of "<REDACTED>.106" is "Pre-Scan Submitted".

      [19.10.31 12:02:48] Requesting build info again in 2 minutes.

      [12:04:50][Step 7/7] [19.10.31 12:04:50] 

      [19.10.31 12:04:50] The status of "<REDACTED>.106" is "Pre-Scan Submitted".

      [19.10.31 12:04:50] Requesting build info again in 2 minutes.

      [12:06:53][Step 7/7] [19.10.31 12:06:53] 

      [19.10.31 12:06:53] The status of "<REDACTED>.106" is "Pre-Scan Submitted".

      [19.10.31 12:06:53] Requesting build info again in 2 minutes.

      [12:08:55][Step 7/7] [19.10.31 12:08:55] 

      [19.10.31 12:08:55] The status of "<REDACTED>.106" is "Pre-Scan Submitted".

      [19.10.31 12:08:55] Requesting build info again in 2 minutes.

      [12:10:57][Step 7/7] [19.10.31 12:10:57] 

      [19.10.31 12:10:57] The status of "<REDACTED>.106" is "Pre-Scan Submitted".

      [19.10.31 12:10:57] Requesting build info again in 2 minutes.

      [12:12:58][Step 7/7] [19.10.31 12:12:58] 

      [19.10.31 12:12:58] The status of "<REDACTED>.106" is "Pre-Scan Submitted".

      [19.10.31 12:12:58] Requesting build info again in 2 minutes.

      [12:14:59][Step 7/7] [19.10.31 12:14:59] 

      [19.10.31 12:14:59] The status of "<REDACTED>.106" is "Pre-Scan Submitted".

      [19.10.31 12:14:59] Requesting build info again in 2 minutes.

      [12:17:02][Step 7/7] [19.10.31 12:17:02] 

      [19.10.31 12:17:02] The status of "<REDACTED>.106" is "Pre-Scan Submitted".

      [19.10.31 12:17:02] Requesting build info again in 2 minutes.

      [12:19:04][Step 7/7] [19.10.31 12:19:03] 

      [19.10.31 12:19:03] The status of "<REDACTED>.106" is "Pre-Scan Submitted".

      [19.10.31 12:19:03] Requesting build info again in 2 minutes.

      [12:21:07][Step 7/7] [19.10.31 12:21:07] 

      [19.10.31 12:21:07] The status of "<REDACTED>.106" is "Pre-Scan Submitted".

      [19.10.31 12:21:07] Requesting build info again in 2 minutes.

      [12:23:09][Step 7/7] [19.10.31 12:23:09] 

      [19.10.31 12:23:09] The status of "<REDACTED>.106" is "Pre-Scan Submitted".

      [19.10.31 12:23:09] Requesting build info again in 2 minutes.

      [12:30:16][Step 7/7] [19.10.31 12:30:16] 

      [19.10.31 12:30:16] Server returned HTTP response code: 401 for URL: https://analysiscenter.veracode.com/api/5.0/getbuildinfo.do

      [19.10.31 12:30:16] Please make sure that all of the following are true:

      [19.10.31 12:30:16] 1. The login credentials are valid.

      [19.10.31 12:30:16] 2. The account is an API account with sufficient privilege.

      [19.10.31 12:30:16] 3. The account is not locked.

      [19.10.31 12:30:16] 4. This machine's internet-facing IP address is not restricted.

      [12:30:16][Step 7/7] Error - code Returned from wrapper: 2

      [12:30:16][Step 7/7] Error message is logged

       

       

      Expand Post
    • Hi @WBradney035779 (Community Member)​ - here is @krise (Veracode, Inc.)​ 's feedback: It looks like you are trying to select modules, which would require prescan to complete (so we know what modules exist in your upload).  You also seem to have a problem with your permissions. At this point, we'd suggest opening a support request. There could be one of several problems here and it will likely take some time to get all the info to correctly diagnose the problem.

       

      Here's how to log a case:

      1. Navigate to the upper right corner of any page in the Community, click on your user avatar
      2. Select Contact Support from the drop-down menu

       

      Let me know if you have any question submitting a case.

      Expand Post

Topics (4)

No articles found
Loading

Ask the Community

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