Parallel steps execution

Fahrbot's Avatar

Fahrbot

19 May, 2018 08:36 AM

Hi,
Is there any possibility to parallelize tasks?
For example npm restoring and downloading some additional files?

  1. Support Staff 1 Posted by Ilya Finkelshte... on 21 May, 2018 09:05 PM

    Ilya Finkelshteyn's Avatar

    It is not supported 1st class but you can try to do some scripting like this:

    environment:
      exePath: C:\BuildTools_Full.exe
      downloadUrl: http://download.microsoft.com/download/9/B/B/9BB1309E-1A8F-4A47-A6C5-ECF76672A3B3/BuildTools_Full.exe
    install:
    - ps: Start-Job -Name download -ScriptBlock {(New-Object Net.WebClient).DownloadFile($env:downloadUrl, $env:exePath)}
    - cmd: npm install
    - ps: Wait-Job -Name download
    

    here is the build worked for me. I did not tested that on really heavy npm install in parallel with big file download, so I do not know how much build speed it increased. Let us know how it works for you.

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:28 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac