Coder Social home page Coder Social logo

isaacabraham / vsts-fsharp Goto Github PK

View Code? Open in Web Editor NEW
13.0 6.0 7.0 427 KB

Azure Devops extension for F#-friendly tools

Home Page: https://marketplace.visualstudio.com/items?itemName=isaacabraham.fsharp-helpers-extension

License: Apache License 2.0

Batchfile 0.37% F# 48.23% TypeScript 51.40%

vsts-fsharp's Introduction

F# Helpers for Azure DevOps

Introduction

This extension contains build tasks for use within Azure Devops that are particularly useful within the F# world. At the current time, the extension contains the following tasks.

Contributors: @isaacabraham, @matthid.

Note

There are some smaller extensions you can install instead of this one:

it is not recommeded to install these together with the F# Helpers for Azure DevOps extension (ie they should not be installed at the same time). You can either install the "F# Helpers for Azure DevOps" extension for an all-in-one solution or any combination of the smaller ones. You can switch back and forth between the all-in-one and subset-packages any time by uninstalling the extensions. Your existing build and release processes will continue to work, but might no longer receive updates for already used tasks!

Tasks

Setup Paket Credential Provider

Use the Setup Paket Credential Provider task to setup the required credential manager to access your internal Azure DevOps NuGet feeds within your own build script running paket.

Note: For this task to work correctly you need to have the dotnet SDK installed on your agent (or installed via "DotNet Install" task).

Paket Credential Provider Cleanup

Cleanup the credential manager to prevent follow-up-tasks to access the internal NuGet feed.

Note: After the build, no other build has access to the credentials - they will be safely cleaned up after the build no matter if you use that task.

Paket Restore

Use the Paket Restore task to download the full Paket executable via the Paket Bootstrapper that you have committed into source control, and automatically run paket restore. You can override the location of the bootstrapper, but this defaults to the .paket folder.

FAKE 5 Runner

Use the FAKE 5 Runner task to execute any FAKE 5 script in the repository. This task downloads and caches the given FAKE 5 version. In addition to the path of the FAKE script, you can supply an optional target as well as any other arbitrary arguments that are required.

FAKE 5 Vault

Use the FAKE 5 Vault task to create a fake 5 vault. This task is useful if you want to use secret variables and run your own fake 5 bootstrapping method (ie not the FAKE 5 Runner Task). See the official FAKE documentation

FAKE Runner

Use the FAKE Runner task to execute any FAKE script in the repository. This task assumes that the FAKE executable is located at packages\Fake\tools\Fake.exe. In addition to the path of the FAKE script, you can supply an optional target as well as any other arbitrary arguments that are required.

Execute F# Script

Use the Execute F# Script task to run any .fsx file located in the repository as part of your build - simply supply the path to the .fsx file.

vsts-fsharp's People

Contributors

isaacabraham avatar manne avatar matthid avatar mikejramsey avatar skovlund avatar tommalow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vsts-fsharp's Issues

Paket restore failing with TF400813

Hi,

We noticed that since today the paket restore task fails while trying to download a package from our internal Azure DevOps nuget feed: failed with: 401 Unauthorized - TF400813: Resource not available for anonymous access. Client authentication required.
It was working flawlessly for months (using the previous F# extension). I wonder if this is due to the renaming / rebranding.
I tried uninstalling / reinstalling the extension but it keeps telling me it's version 0.x.
Here is the output from the setup credentials task

2018-09-11T12:01:14.2825206Z ##[debug]Evaluating condition for step: 'Setup Paket Credential Manager'
2018-09-11T12:01:14.2825932Z ##[debug]Evaluating: succeeded()
2018-09-11T12:01:14.2826214Z ##[debug]Evaluating succeeded:
2018-09-11T12:01:14.2826563Z ##[debug]=> True
2018-09-11T12:01:14.2826909Z ##[debug]Result: True
2018-09-11T12:01:14.2827208Z ##[section]Starting: Setup Paket Credential Manager
2018-09-11T12:01:14.2831015Z ==============================================================================
2018-09-11T12:01:14.2831177Z Task : Paket Credential Manager
2018-09-11T12:01:14.2831347Z Description : Creates a credential manager for Paket to access internal NuGet feeds.
2018-09-11T12:01:14.2831489Z Version : 0.2.0
2018-09-11T12:01:14.2831608Z Author : Matthias Dittrich
2018-09-11T12:01:14.2831794Z Help : This task allows you to consume NuGet packages hosted in your own private feed by providing a credential manager.
2018-09-11T12:01:14.2831993Z ==============================================================================
2018-09-11T12:01:14.5802704Z ##[debug]agent.TempDirectory=D:\a_temp
2018-09-11T12:01:14.5830611Z ##[debug]loading inputs and endpoints
2018-09-11T12:01:14.5837350Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2018-09-11T12:01:14.5855333Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2018-09-11T12:01:14.5858164Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2018-09-11T12:01:14.5865165Z ##[debug]loaded 3
2018-09-11T12:01:14.5883689Z ##[debug]Agent.ProxyUrl=undefined
2018-09-11T12:01:14.5886098Z ##[debug]Agent.CAInfo=undefined
2018-09-11T12:01:14.5886458Z ##[debug]Agent.ClientCert=undefined
2018-09-11T12:01:14.5886761Z ##[debug]Agent.SkipCertValidation=undefined
2018-09-11T12:01:14.6489217Z ##[debug]Agent.ProxyUrl=undefined
2018-09-11T12:01:14.6492950Z ##[debug]check path : D:\a_tasks\setCredentialManager_c2aea098-6aab-4cd3-9a0c-57b074df3df5\0.2.0\node_modules\vsts-task-tool-lib\lib.json
2018-09-11T12:01:14.6494724Z ##[debug]adding resource file: D:\a_tasks\setCredentialManager_c2aea098-6aab-4cd3-9a0c-57b074df3df5\0.2.0\node_modules\vsts-task-tool-lib\lib.json
2018-09-11T12:01:14.6495645Z ##[debug]system.culture=en-US
2018-09-11T12:01:14.6637804Z ##[debug]set NUGET_CREDENTIALPROVIDERS_PATH=D:\a_tasks\setCredentialManager_c2aea098-6aab-4cd3-9a0c-57b074df3df5\0.2.0\node_modules\vsts-fsharp-task-common\CredentialProvider
2018-09-11T12:01:14.6640219Z ##[debug]Processed: ##vso[task.setvariable variable=NUGET_CREDENTIALPROVIDERS_PATH;issecret=false;]D:\a_tasks\setCredentialManager_c2aea098-6aab-4cd3-9a0c-57b074df3df5\0.2.0\node_modules\vsts-fsharp-task-common\CredentialProvider
2018-09-11T12:01:14.6665240Z SYSTEMVSSCONNECTION exists true
2018-09-11T12:01:14.6665749Z ##[debug]SYSTEMVSSCONNECTION exists true
2018-09-11T12:01:14.6666816Z ##[debug]set PAKET_VSS_NUGET_ACCESSTOKEN=***
2018-09-11T12:01:14.6669114Z ##[debug]Processed: ##vso[task.setvariable variable=PAKET_VSS_NUGET_ACCESSTOKEN;issecret=false;]***
2018-09-11T12:01:14.6753259Z ##[section]Finishing: Setup Paket Credential Manager

And the error in the paket restore task :

2018-09-11T12:01:14.6777813Z ##[debug]Evaluating condition for step: 'Restore Paket dependencies'
2018-09-11T12:01:14.6778736Z ##[debug]Evaluating: succeeded()
2018-09-11T12:01:14.6779003Z ##[debug]Evaluating succeeded:
2018-09-11T12:01:14.6779349Z ##[debug]=> True
2018-09-11T12:01:14.6779712Z ##[debug]Result: True
2018-09-11T12:01:14.6780017Z ##[section]Starting: Restore Paket dependencies
2018-09-11T12:01:14.6784206Z ==============================================================================
2018-09-11T12:01:14.6784390Z Task : Paket Restore
2018-09-11T12:01:14.6784527Z Description : Restores your Paket dependencies.
2018-09-11T12:01:14.6785219Z Version : 0.4.0
2018-09-11T12:01:14.6785366Z Author : Isaac Abraham
2018-09-11T12:01:14.6785569Z Help : This task restores your dependencies from the paket.dependencies file located in your repository.
2018-09-11T12:01:14.6785783Z ==============================================================================
2018-09-11T12:01:14.6885487Z ##[debug]Working directory: 'D:\a\1\s.paket'
2018-09-11T12:01:14.6886058Z ##[debug]Fail on standard error: 'True'
2018-09-11T12:01:14.6886245Z ##[debug]Modify environment: 'False'
2018-09-11T12:01:14.6886482Z ##[debug]C:\Windows\system32\cmd.exe /c "D:\a_tasks\PaketRestore_90d5ae45-3fc2-4ede-b572-9a57379fbf8a\0.4.0\Paket.bat "
2018-09-11T12:01:14.6886742Z ##[command]D:\a_tasks\PaketRestore_90d5ae45-3fc2-4ede-b572-9a57379fbf8a\0.4.0\Paket.bat
2018-09-11T12:01:16.4981978Z Checking Paket version (downloading latest stable)...
2018-09-11T12:01:20.2241376Z Hash file of version 5.177.2 not found in cache.
2018-09-11T12:01:20.2242222Z Starting download from https://github.com/fsprojects/Paket/releases/download/5.177.2/paket-sha256.txt
2018-09-11T12:01:20.8230095Z Version 5.177.2 not found in cache.
2018-09-11T12:01:20.8245854Z Starting download from https://github.com/fsprojects/Paket/releases/download/5.177.2/paket.exe
2018-09-11T12:01:25.0115608Z Done in 8.94 second(s).
2018-09-11T12:01:25.1849319Z Paket version 5.177.2
2018-09-11T12:01:26.1437883Z Starting full restore process.
2018-09-11T12:01:26.2620572Z Downloading Akka 1.3.9
2018-09-11T12:01:26.2634085Z Downloading Hyperion 0.9.8
2018-09-11T12:01:26.3110333Z Downloading Microsoft.AspNet.WebApi.WebHost 5.2.3
2018-09-11T12:01:26.3114893Z Downloading RazorEngine 3.10.0
2018-09-11T12:01:26.9184795Z Possible Performance degradation, V3 was not working: One or more errors occurred.
2018-09-11T12:01:26.9185857Z Possible Performance degradation, V3 was not working: One or more errors occurred.
2018-09-11T12:01:26.9248432Z Possible Performance degradation, V3 was not working: One or more errors occurred.
2018-09-11T12:01:26.9576168Z Possible Performance degradation, V3 was not working: One or more errors occurred.
2018-09-11T12:01:26.9646000Z Possible Performance degradation, V3 was not working: One or more errors occurred.
2018-09-11T12:01:27.0696741Z Possible Performance degradation, blacklist '1_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages(Id='hyperion',Version='0.9.8')'
2018-09-11T12:01:27.0736498Z Possible Performance degradation, blacklist '1_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages(Id='MyLib.web.mvc5',Version='5.7.5')'
2018-09-11T12:01:27.0736952Z Possible Performance degradation, blacklist '1_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages(Id='akka',Version='1.3.9')'
2018-09-11T12:01:27.7197953Z Possible Performance degradation, blacklist '1_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages(Id='Hyperion',Version='0.9.8')'
2018-09-11T12:01:27.7214377Z Possible Performance degradation, blacklist '1_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages(Id='MyLib.Web.Mvc5',Version='5.7.5')'
2018-09-11T12:01:27.7214706Z Possible Performance degradation, blacklist '2_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages?$filter=(Id eq 'Hyperion') and (NormalizedVersion eq '0.9.8')'
2018-09-11T12:01:27.7217329Z Possible Performance degradation, blacklist '2_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages?$filter=(tolower(Id) eq 'MyLib.web.mvc5') and (NormalizedVersion eq '5.7.5')'
2018-09-11T12:01:27.7217663Z Possible Performance degradation, blacklist '2_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages?$filter=(Id eq 'Hyperion') and (Version eq '0.9.8')'
2018-09-11T12:01:27.7217996Z Possible Performance degradation, blacklist '2_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages?$filter=(tolower(Id) eq 'MyLib.web.mvc5') and (Version eq '5.7.5')'
2018-09-11T12:01:27.7218336Z Possible Performance degradation, blacklist '2_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages?$filter=(tolower(Id) eq 'hyperion') and (Version eq '0.9.8')'
2018-09-11T12:01:27.7218647Z Source 'https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v3/index.json' exception: System.Exception: All possible sources are already blacklisted.
2018-09-11T12:01:27.7218946Z - 1_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages(Id='razorengine',Version='3.10.0')
2018-09-11T12:01:27.7219354Z - 1_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages(Id='razorengine',Version='3.10.0')
2018-09-11T12:01:27.7219581Z - 1_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages(Id='RazorEngine',Version='3.10.0')
2018-09-11T12:01:27.7219797Z - 1_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages(Id='RazorEngine',Version='3.10.0')
2018-09-11T12:01:27.7220037Z - 2_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages?$filter=(Id eq 'RazorEngine') and (NormalizedVersion eq '3.10.0')
2018-09-11T12:01:27.7220471Z - 2_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages?$filter=(tolower(Id) eq 'razorengine') and (NormalizedVersion eq '3.10.0')
2018-09-11T12:01:27.7221038Z - 2_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages?$filter=(Id eq 'RazorEngine') and (Version eq '3.10.0')
2018-09-11T12:01:27.7221266Z - 2_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages?$filter=(tolower(Id) eq 'razorengine') and (Version eq '3.10.0')
2018-09-11T12:01:27.7221656Z - 2_https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages?$filter=(tolower(Id) eq 'razorengine') and (Version eq '3.10.0')
2018-09-11T12:01:27.7221851Z at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1645.Invoke(String message)
2018-09-11T12:01:27.7222679Z at [email protected](Tuple2 _arg5) 2018-09-11T12:01:27.7222831Z at [email protected](a a) 2018-09-11T12:01:27.7223239Z Source 'https://<myfeed>.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v3/index.json' exception: System.Exception: error ---> System.Exception: Could not retrieve data from 'https://<myfeed>.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages?$filter=(tolower(Id) eq 'MyLib.web.mvc5') and (Version eq '5.7.5')' ---> Paket.NetUtils+RequestFailedException: Request to 'https://<myfeed>.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v2/Packages?$filter=(tolower(Id) eq 'MyLib.web.mvc5') and (Version eq '5.7.5')' failed with: 401 Unauthorized - TF400813: Resource not available for anonymous access. Client authentication required. 2018-09-11T12:01:27.7223831Z at [email protected](RequestFailedInfo _arg1) 2018-09-11T12:01:27.7224196Z at [email protected](a a) 2018-09-11T12:01:27.7224358Z --- End of inner exception stack trace --- 2018-09-11T12:01:27.7224509Z at [email protected](Exception _arg4) 2018-09-11T12:01:27.7224693Z at [email protected](AsyncParams1 args)
2018-09-11T12:01:27.7225416Z --- End of inner exception stack trace ---
2018-09-11T12:01:27.7226063Z at [email protected](FSharpChoice`2 _arg5)
2018-09-11T12:01:27.7226274Z at [email protected](a a)
2018-09-11T12:01:27.7226554Z Something failed in GetPackageDetails, trying again with force: Couldn't get package details for package RazorEngine 3.10.0 on https://.pkgs.visualstudio.com/_packaging/ItechToolsFeed/nuget/v3/index.json.
...

I am not sure the v3 version of the feed ever worked and maybe this is the root cause ?

Any help would be greatly appreciated!

Fake 5 runner not finding script if it is not in root folder

Agent: Hosted Linux Preview

Task:

  - task: isaacabraham.fsharp-helpers-extension.a2dadf20-1a83-4220-a4ee-b52f6c77f3cf.FAKE5@1
    displayName: 'Run FAKE script'
    inputs:
      FakeVersion: 5.5.0
      FakeScript: scripts/build.fsx

Error:

2018-09-11T07:50:50.0359881Z There was a problem while setting up the environment:
2018-09-11T07:50:50.0572158Z -> FileNotFoundException: Could not find file '/home/vsts/work/1/s/build.fsx'.

Run F# script does not support F# 4.5

Description

Hi Isaac, thank you for these great tools, I have a F# library that is build with F# 4.5 , this is not complient with your Run F# script, I'm running it on a VS2017 Hosted Agent,

I have tried setting the FSharp version Parameter to 4.5 but that give me a Path not found error.

Repro steps

  1. Run a script that is build with F# 4.5 via the run F# script and set FSharpVersion parameter to 4.5

Expected behavior

I expect the Script to Run and the fsi.exe path to support F# 4.5

Actual behavior

the path is made to be somthing like : C:\Program Files (x86)\Microsoft SDKs\F#\4.5\Framework\v4.0\fsi.exe"

This path does not exist.

Known workarounds

I can make a simple CMD line task and then hardcode the path to a place on the Agent where F#4.5 is supported

Related information

FAKE 5 Runner task doesn't work on Linux build agent

Description

FAKE 5 Runner task doesn't work on Linux build agent

Repro steps

  1. Install build agent on Linux machine following the official instructions
    1.5 Add custom capability in order to run DevOps task

image

  1. Create a repository with SAFE template app
  2. Create an Azure DevOps pipeline with FAKE 5 Runner task
  3. Use FAKE 5 Runner task to build SAFE app
    image

Expected behavior

Application is built

Actual behavior

Azure DevOps pipeline fails with error

Details

2020-02-07T14:13:29.9766195Z ##[debug]Evaluating condition for step: 'Execute the build.fsx FAKE 5 script'
2020-02-07T14:13:29.9767412Z ##[debug]Evaluating: succeeded()
2020-02-07T14:13:29.9767588Z ##[debug]Evaluating succeeded:
2020-02-07T14:13:29.9768048Z ##[debug]=> True
2020-02-07T14:13:29.9768413Z ##[debug]Result: True
2020-02-07T14:13:29.9768838Z ##[section]Starting: Execute the build.fsx FAKE 5 script
2020-02-07T14:13:29.9773384Z ==============================================================================
2020-02-07T14:13:29.9773475Z Task         : FAKE 5 Runner
2020-02-07T14:13:29.9773516Z Description  : Runs a FAKE 5 build script.
2020-02-07T14:13:29.9773552Z Version      : 1.0.8
2020-02-07T14:13:29.9773588Z Author       : Matthias Dittrich
2020-02-07T14:13:29.9773638Z Help         : This task downloads and caches the FAKE runner and executes the FAKE 5 build script specified.
2020-02-07T14:13:29.9773677Z ==============================================================================
2020-02-07T14:13:30.2002116Z ##[debug]agent.TempDirectory=/opt/myagent/_work/_temp
2020-02-07T14:13:30.2033579Z ##[debug]loading inputs and endpoints
2020-02-07T14:13:30.2039407Z ##[debug]loading INPUT_FAKEVERSION
2020-02-07T14:13:30.2053870Z ##[debug]loading INPUT_FAKESCRIPT
2020-02-07T14:13:30.2058384Z ##[debug]loading INPUT_SCRIPTARGUMENTS
2020-02-07T14:13:30.2062656Z ##[debug]loading INPUT_WORKINGDIRECTORY
2020-02-07T14:13:30.2069603Z ##[debug]loading INPUT_PREVENTSECRETS
2020-02-07T14:13:30.2073506Z ##[debug]loading INPUT_FAILONSTDERROR
2020-02-07T14:13:30.2076594Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2020-02-07T14:13:30.2079920Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2020-02-07T14:13:30.2082916Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2020-02-07T14:13:30.2089777Z ##[debug]loaded 9
2020-02-07T14:13:30.2106519Z ##[debug]Agent.ProxyUrl=undefined
2020-02-07T14:13:30.2109604Z ##[debug]Agent.CAInfo=undefined
2020-02-07T14:13:30.2111726Z ##[debug]Agent.ClientCert=undefined
2020-02-07T14:13:30.2113758Z ##[debug]Agent.SkipCertValidation=undefined
2020-02-07T14:13:30.2606779Z ##[debug]Agent.ProxyUrl=undefined
2020-02-07T14:13:30.2614084Z ##[debug]check path : /opt/myagent/_work/_tasks/FAKE5_a2dadf20-1a83-4220-a4ee-b52f6c77f3cf/1.0.8/node_modules/vsts-task-tool-lib/lib.json
2020-02-07T14:13:30.2618135Z ##[debug]adding resource file: /opt/myagent/_work/_tasks/FAKE5_a2dadf20-1a83-4220-a4ee-b52f6c77f3cf/1.0.8/node_modules/vsts-task-tool-lib/lib.json
2020-02-07T14:13:30.2621554Z ##[debug]system.culture=en-US
2020-02-07T14:13:30.2680836Z setup paket credential manager
2020-02-07T14:13:30.2696492Z ##[debug]Adding '/opt/myagent/_work/_tasks/FAKE5_a2dadf20-1a83-4220-a4ee-b52f6c77f3cf/1.0.8/node_modules/vsts-fsharp-task-common/CredentialProvider' to 'NUGET_CREDENTIALPROVIDERS_PATH'
2020-02-07T14:13:30.2700659Z ##[debug]set NUGET_CREDENTIALPROVIDERS_PATH=/opt/myagent/_work/_tasks/FAKE5_a2dadf20-1a83-4220-a4ee-b52f6c77f3cf/1.0.8/node_modules/vsts-fsharp-task-common/CredentialProvider
2020-02-07T14:13:30.2732732Z ##[debug]Processed: ##vso[task.setvariable variable=NUGET_CREDENTIALPROVIDERS_PATH;issecret=false;]/opt/myagent/_work/_tasks/FAKE5_a2dadf20-1a83-4220-a4ee-b52f6c77f3cf/1.0.8/node_modules/vsts-fsharp-task-common/CredentialProvider
2020-02-07T14:13:30.2745812Z SYSTEMVSSCONNECTION exists true
2020-02-07T14:13:30.2749082Z ##[debug]SYSTEMVSSCONNECTION exists true
2020-02-07T14:13:30.2753317Z ##[debug]set PAKET_VSS_NUGET_ACCESSTOKEN=***
2020-02-07T14:13:30.2758165Z ##[debug]Processed: ##vso[task.setvariable variable=PAKET_VSS_NUGET_ACCESSTOKEN;issecret=false;]***
2020-02-07T14:13:30.2776270Z (node:18751) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-07T14:13:30.2778628Z (node:18751) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-07T14:13:30.2781194Z (node:18751) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-07T14:13:30.2784349Z (node:18751) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-07T14:13:30.2786350Z (node:18751) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-07T14:13:30.2790129Z (node:18751) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-07T14:13:30.2793181Z (node:18751) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-07T14:13:30.2796325Z (node:18751) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-07T14:13:30.2799521Z (node:18751) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-07T14:13:30.2810649Z ##[debug]FakeScript=/opt/myagent/_work/1/s/build.fsx
2020-02-07T14:13:30.2813010Z ##[debug]Using scriptPath '/opt/myagent/_work/1/s/build.fsx'.
2020-02-07T14:13:30.2817066Z ##[debug]WorkingDirectory=/opt/myagent/_work/1/s
2020-02-07T14:13:30.2820616Z ##[debug]ScriptArguments=build -t build
2020-02-07T14:13:30.2824158Z ##[debug]FakeArguments=null
2020-02-07T14:13:30.2827085Z ##[debug]FakeVersion=5.19.0
2020-02-07T14:13:30.2831566Z ##[debug]PreventSecrets=false
2020-02-07T14:13:30.2834809Z ##[debug]FailOnStdError=false
2020-02-07T14:13:30.2843821Z ##[debug]which 'dotnet'
2020-02-07T14:13:30.2852469Z ##[debug]found: '/usr/bin/dotnet'
2020-02-07T14:13:30.2857929Z ##[debug]isExplicit: 5.19.0
2020-02-07T14:13:30.2861181Z ##[debug]explicit? true
2020-02-07T14:13:30.2865688Z ##[debug]Agent.Version=2.164.7
2020-02-07T14:13:30.2867876Z ##[debug]Agent.ToolsDirectory=/opt/myagent/_work/_tool
2020-02-07T14:13:30.2870000Z ##[debug]checking cache: /opt/myagent/_work/_tool/fake/5.19.0/x64
2020-02-07T14:13:30.2928185Z Found tool in cache: fake 5.19.0 x64
2020-02-07T14:13:30.2942194Z ##[debug]system.stageDisplayName=__default
2020-02-07T14:13:30.2944501Z ##[debug]system.artifactsdirectory=/opt/myagent/_work/1/a
2020-02-07T14:13:30.2946476Z ##[debug]GIT_TERMINAL_PROMPT=0
2020-02-07T14:13:30.2948436Z ##[debug][email protected]
2020-02-07T14:13:30.2950391Z ##[debug]build.artifactstagingdirectory=/opt/myagent/_work/1/a
2020-02-07T14:13:30.2952329Z ##[debug]system.jobDisplayName=Build and run
2020-02-07T14:13:30.2954627Z ##[debug]build.definitionName=The-Ego-CI
2020-02-07T14:13:30.2956796Z ##[debug]system.hosttype=build
2020-02-07T14:13:30.2958626Z ##[debug]build.reason=Manual
2020-02-07T14:13:30.2960624Z ##[debug]task.displayname=Execute the build.fsx FAKE 5 script
2020-02-07T14:13:30.2962703Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_50a14eb7-3693-4421-8116-4581b1687e7f_build_2_0
2020-02-07T14:13:30.2964893Z ##[debug]system.jobIdentifier=Job_1.__default
2020-02-07T14:13:30.2968095Z ##[debug]system.collectionId=50a14eb7-3693-4421-8116-4581b1687e7f
2020-02-07T14:13:30.2971634Z ##[debug]system.stageAttempt=1
2020-02-07T14:13:30.2974859Z ##[debug]system.TeamFoundationServerUri=https://dev.azure.com/sergeysaleen/
2020-02-07T14:13:30.2978289Z ##[debug]System.TotalJobsInPhase=1
2020-02-07T14:13:30.2984293Z ##[debug]agent.RootDirectory=/opt/myagent/_work
2020-02-07T14:13:30.2987597Z ##[debug]system.phaseDisplayName=Build and run
2020-02-07T14:13:30.2990844Z ##[debug]system.pipelineStartTime=2020-02-07 14:13:13+00:00
2020-02-07T14:13:30.2994093Z ##[debug]system.collectionUri=https://dev.azure.com/sergeysaleen/
2020-02-07T14:13:30.2997300Z ##[debug]system.taskDefinitionsUri=https://dev.azure.com/sergeysaleen/
2020-02-07T14:13:30.3000228Z ##[debug]build.buildUri=vstfs:///Build/Build/22
2020-02-07T14:13:30.3003167Z ##[debug]build.containerId=1794217
2020-02-07T14:13:30.3005734Z ##[debug]system.phaseName=Job_1
2020-02-07T14:13:30.3008048Z ##[debug]agent.name=agent
2020-02-07T14:13:30.3010426Z ##[debug]build.Repository.name=The-Ego
2020-02-07T14:13:30.3012692Z ##[debug]system.teamFoundationCollectionUri=https://dev.azure.com/sergeysaleen/
2020-02-07T14:13:30.3015229Z ##[debug]agent.workfolder=/opt/myagent/_work
2020-02-07T14:13:30.3017552Z ##[debug]agent.id=10
2020-02-07T14:13:30.3019718Z ##[debug]system.taskInstanceName=FAKE5
2020-02-07T14:13:30.3022236Z ##[debug]build.sourceBranchName=dev
2020-02-07T14:13:30.3028637Z ##[debug]build.queuedBy=Салин Сергей �лек�андрович
2020-02-07T14:13:30.3031170Z ##[debug]MSDEPLOY_HTTP_USER_AGENT=VSTS_50a14eb7-3693-4421-8116-4581b1687e7f_build_2_0
2020-02-07T14:13:30.3034235Z ##[debug]agent.version=2.164.7
2020-02-07T14:13:30.3036484Z ##[debug]build.sourceVersion=6369c19a50231c64815c7d6e4dee6347b4ddcf71
2020-02-07T14:13:30.3039062Z ##[debug]agent.acceptteeeula=True
2020-02-07T14:13:30.3041277Z ##[debug]system.definitionId=2
2020-02-07T14:13:30.3043909Z ##[debug]System.JobPositionInPhase=1
2020-02-07T14:13:30.3046063Z ##[debug]system.jobParallelismTag=Private
2020-02-07T14:13:30.3048291Z ##[debug]build.definitionVersion=21
2020-02-07T14:13:30.3050465Z ##[debug]system.pullRequest.isFork=False
2020-02-07T14:13:30.3052939Z ##[debug]system.culture=en-US
2020-02-07T14:13:30.3055448Z ##[debug]build.queuedById=ee4b5751-a933-4d94-92a2-880370494fe1
2020-02-07T14:13:30.3057564Z ##[debug]agent.ToolsDirectory=/opt/myagent/_work/_tool
2020-02-07T14:13:30.3059708Z ##[debug]system.workfolder=/opt/myagent/_work
2020-02-07T14:13:30.3062511Z ##[debug]system.definitionName=The-Ego-CI
2020-02-07T14:13:30.3065213Z ##[debug]system.taskInstanceId=281fb954-634f-515e-8a6c-37ef435b970e
2020-02-07T14:13:30.3067350Z ##[debug]agent.TempDirectory=/opt/myagent/_work/_temp
2020-02-07T14:13:30.3069597Z ##[debug]agent.builddirectory=/opt/myagent/_work/1
2020-02-07T14:13:30.3071694Z ##[debug]build.repository.localpath=/opt/myagent/_work/1/s
2020-02-07T14:13:30.3074314Z ##[debug]system.defaultworkingdirectory=/opt/myagent/_work/1/s
2020-02-07T14:13:30.3076699Z ##[debug]system.taskDisplayName=Execute the build.fsx FAKE 5 script
2020-02-07T14:13:30.3078847Z ##[debug]system.phaseAttempt=1
2020-02-07T14:13:30.3081163Z ##[debug]VSTS_PROCESS_LOOKUP_ID=vsts_82849e8f-3c48-4004-b3a2-fd22a58d8858
2020-02-07T14:13:30.3083598Z ##[debug]system.isScheduled=False
2020-02-07T14:13:30.3086430Z ##[debug]system.planId=930a937b-46b2-4a2b-a9d6-af11c2053d8e
2020-02-07T14:13:30.3088604Z ##[debug]build.sourceVersionAuthor=Sergey
2020-02-07T14:13:30.3090761Z ##[debug]build.sourceBranch=refs/heads/dev
2020-02-07T14:13:30.3093150Z ##[debug]common.testresultsdirectory=/opt/myagent/_work/1/TestResults
2020-02-07T14:13:30.3095750Z ##[debug]build.requestedForId=ee4b5751-a933-4d94-92a2-880370494fe1
2020-02-07T14:13:30.3098149Z ##[debug]build.buildId=22
2020-02-07T14:13:30.3100215Z ##[debug]build.binariesdirectory=/opt/myagent/_work/1/b
2020-02-07T14:13:30.3102577Z ##[debug]pipeline.workspace=/opt/myagent/_work/1
2020-02-07T14:13:30.3105434Z ##[debug]system.stageId=96ac2280-8cb4-5df5-99de-dd2da759617d
2020-02-07T14:13:30.3107851Z ##[debug]system.stageName=__default
2020-02-07T14:13:30.3109927Z ##[debug]agent.readOnlyVariables=true
2020-02-07T14:13:30.3112577Z ##[debug]system.teamProjectId=5cf371e1-400b-4778-9c9d-51e169b8d112
2020-02-07T14:13:30.3118479Z ##[debug]agent.os=Linux
2020-02-07T14:13:30.3121134Z ##[debug]system.jobId=275f1d19-1bd8-5591-b06b-07d489ea915a
2020-02-07T14:13:30.3123657Z ##[debug]system.jobAttempt=1
2020-02-07T14:13:30.3126446Z ##[debug]system.phaseId=2f97f1d8-943c-5cda-8782-cbcebf2b3d67
2020-02-07T14:13:30.3129212Z ##[debug]build.repository.uri=https://[email protected]/sergeysaleen/The-Ego/_git/The-Ego
2020-02-07T14:13:30.3131448Z ##[debug]system.servertype=Hosted
2020-02-07T14:13:30.3134065Z ##[debug]agent.jobstatus=Succeeded
2020-02-07T14:13:30.3136055Z ##[debug]build.sourceVersionMessage=Removed some junk (not needed for now) and counter works
2020-02-07T14:13:30.3137863Z ##[debug]agent.disablelogplugin.TestFilePublisherPlugin=true
2020-02-07T14:13:30.3140133Z ##[debug]build.buildNumber=22
2020-02-07T14:13:30.3142555Z ##[debug]system.timelineId=930a937b-46b2-4a2b-a9d6-af11c2053d8e
2020-02-07T14:13:30.3157266Z ##[debug]build.requestedFor=Салин Сергей �лек�андрович
2020-02-07T14:13:30.3169242Z ##[debug]system.teamProject=The-Ego
2020-02-07T14:13:30.3171830Z ##[debug]build.repository.provider=TfsGit
2020-02-07T14:13:30.3174101Z ##[debug]agent.disablelogplugin.TestResultLogPlugin=true
2020-02-07T14:13:30.3176530Z ##[debug]build.sourcesdirectory=/opt/myagent/_work/1/s
2020-02-07T14:13:30.3178858Z ##[debug]agent.homedirectory=/opt/myagent
2020-02-07T14:13:30.3188541Z ##[debug]agent.jobname=Build and run
2020-02-07T14:13:30.3191291Z ##[debug]agent.machinename=ya
2020-02-07T14:13:30.3193488Z ##[debug]build.stagingdirectory=/opt/myagent/_work/1/a
2020-02-07T14:13:30.3195794Z ##[debug]agent.retainDefaultEncoding=false
2020-02-07T14:13:30.3197849Z ##[debug]system.debug=True
2020-02-07T14:13:30.3200117Z ##[debug]system.jobName=__default
2020-02-07T14:13:30.3202162Z ##[debug]system=build
2020-02-07T14:13:30.3204726Z ##[debug]build.repository.id=60b64fae-1979-4bdd-9869-1125bdf2b50c
2020-02-07T14:13:30.3206391Z ##[debug]agent.osarchitecture=X64
2020-02-07T14:13:30.3208041Z ##[debug]NUGET_CREDENTIALPROVIDERS_PATH=/opt/myagent/_work/_tasks/FAKE5_a2dadf20-1a83-4220-a4ee-b52f6c77f3cf/1.0.8/node_modules/vsts-fsharp-task-common/CredentialProvider
2020-02-07T14:13:30.3210503Z ##[debug]PAKET_VSS_NUGET_ACCESSTOKEN=***
2020-02-07T14:13:30.3222645Z ##[debug]FAKE_VSTS_VAULT_VARIABLES: {"keyFile":"/opt/myagent/_work/1/s/.fake/build.fsx/.secret","iv":"N2ISaMh19AYJnprpEWoT7w==","values":[{"secret":false,"value":"__default","name":"system.stageDisplayName"},{"secret":false,"value":"/opt/myagent/_work/1/a","name":"system.artifactsdirectory"},{"secret":false,"value":"0","name":"GIT_TERMINAL_PROMPT"},{"secret":false,"value":"[email protected]","name":"build.requestedForEmail"},{"secret":false,"value":"/opt/myagent/_work/1/a","name":"build.artifactstagingdirectory"},{"secret":false,"value":"Build and run","name":"system.jobDisplayName"},{"secret":false,"value":"The-Ego-CI","name":"build.definitionName"},{"secret":false,"value":"build","name":"system.hosttype"},{"secret":false,"value":"Manual","name":"build.reason"},{"secret":false,"value":"Execute the build.fsx FAKE 5 script","name":"task.displayname"},{"secret":false,"value":"VSTS_50a14eb7-3693-4421-8116-4581b1687e7f_build_2_0","name":"AZURE_HTTP_USER_AGENT"},{"secret":false,"value":"Job_1.__default","name":"system.jobIdentifier"},{"secret":false,"value":"50a14eb7-3693-4421-8116-4581b1687e7f","name":"system.collectionId"},{"secret":false,"value":"1","name":"system.stageAttempt"},{"secret":false,"value":"https://dev.azure.com/sergeysaleen/","name":"system.TeamFoundationServerUri"},{"secret":false,"value":"1","name":"System.TotalJobsInPhase"},{"secret":false,"value":"/opt/myagent/_work","name":"agent.RootDirectory"},{"secret":false,"value":"Build and run","name":"system.phaseDisplayName"},{"secret":false,"value":"2020-02-07 14:13:13+00:00","name":"system.pipelineStartTime"},{"secret":false,"value":"https://dev.azure.com/sergeysaleen/","name":"system.collectionUri"},{"secret":false,"value":"https://dev.azure.com/sergeysaleen/","name":"system.taskDefinitionsUri"},{"secret":false,"value":"vstfs:///Build/Build/22","name":"build.buildUri"},{"secret":false,"value":"1794217","name":"build.containerId"},{"secret":false,"value":"Job_1","name":"system.phaseName"},{"secret":false,"value":"agent","name":"agent.name"},{"secret":false,"value":"The-Ego","name":"build.Repository.name"},{"secret":false,"value":"https://dev.azure.com/sergeysaleen/","name":"system.teamFoundationCollectionUri"},{"secret":false,"value":"/opt/myagent/_work","name":"agent.workfolder"},{"secret":false,"value":"10","name":"agent.id"},{"secret":false,"value":"FAKE5","name":"system.taskInstanceName"},{"secret":false,"value":"dev","name":"build.sourceBranchName"},{"secret":false,"value":"Салин Сергей Ð�лекÑ�андрович","name":"build.queuedBy"},{"secret":false,"value":"VSTS_50a14eb7-3693-4421-8116-4581b1687e7f_build_2_0","name":"MSDEPLOY_HTTP_USER_AGENT"},{"secret":false,"value":"2.164.7","name":"agent.version"},{"secret":false,"value":"6369c19a50231c64815c7d6e4dee6347b4ddcf71","name":"build.sourceVersion"},{"secret":false,"value":"True","name":"agent.acceptteeeula"},{"secret":false,"value":"2","name":"system.definitionId"},{"secret":false,"value":"1","name":"System.JobPositionInPhase"},{"secret":false,"value":"Private","name":"system.jobParallelismTag"},{"secret":false,"value":"21","name":"build.definitionVersion"},{"secret":false,"value":"False","name":"system.pullRequest.isFork"},{"secret":false,"value":"en-US","name":"system.culture"},{"secret":false,"value":"ee4b5751-a933-4d94-92a2-880370494fe1","name":"build.queuedById"},{"secret":false,"value":"/opt/myagent/_work/_tool","name":"agent.ToolsDirectory"},{"secret":false,"value":"/opt/myagent/_work","name":"system.workfolder"},{"secret":false,"value":"The-Ego-CI","name":"system.definitionName"},{"secret":false,"value":"281fb954-634f-515e-8a6c-37ef435b970e","name":"system.taskInstanceId"},{"secret":false,"value":"/opt/myagent/_work/_temp","name":"agent.TempDirectory"},{"secret":false,"value":"/opt/myagent/_work/1","name":"agent.builddirectory"},{"secret":false,"value":"/opt/myagent/_work/1/s","name":"build.repository.localpath"},{"secret":false,"value":"/opt/myagent/_work/1/s","name":"system.defaultworkingdirectory"},{"secret":false,"value":"Execute the build.fsx FAKE 5 script","name":"system.taskDisplayName"},{"secret":false,"value":"1","name":"system.phaseAttempt"},{"secret":false,"value":"vsts_82849e8f-3c48-4004-b3a2-fd22a58d8858","name":"VSTS_PROCESS_LOOKUP_ID"},{"secret":false,"value":"False","name":"system.isScheduled"},{"secret":false,"value":"930a937b-46b2-4a2b-a9d6-af11c2053d8e","name":"system.planId"},{"secret":false,"value":"Sergey","name":"build.sourceVersionAuthor"},{"secret":false,"value":"refs/heads/dev","name":"build.sourceBranch"},{"secret":false,"value":"/opt/myagent/_work/1/TestResults","name":"common.testresultsdirectory"},{"secret":false,"value":"ee4b5751-a933-4d94-92a2-880370494fe1","name":"build.requestedForId"},{"secret":false,"value":"22","name":"build.buildId"},{"secret":false,"value":"/opt/myagent/_work/1/b","name":"build.binariesdirectory"},{"secret":false,"value":"/opt/myagent/_work/1","name":"pipeline.workspace"},{"secret":false,"value":"96ac2280-8cb4-5df5-99de-dd2da759617d","name":"system.stageId"},{"secret":false,"value":"__default","name":"system.stageName"},{"secret":false,"value":"true","name":"agent.readOnlyVariables"},{"secret":false,"value":"5cf371e1-400b-4778-9c9d-51e169b8d112","name":"system.teamProjectId"},{"secret":false,"value":"Linux","name":"agent.os"},{"secret":false,"value":"275f1d19-1bd8-5591-b06b-07d489ea915a","name":"system.jobId"},{"secret":false,"value":"1","name":"system.jobAttempt"},{"secret":false,"value":"2f97f1d8-943c-5cda-8782-cbcebf2b3d67","name":"system.phaseId"},{"secret":false,"value":"https://[email protected]/sergeysaleen/The-Ego/_git/The-Ego","name":"build.repository.uri"},{"secret":false,"value":"Hosted","name":"system.servertype"},{"secret":false,"value":"Succeeded","name":"agent.jobstatus"},{"secret":false,"value":"Removed some junk (not needed for now) and counter works","name":"build.sourceVersionMessage"},{"secret":false,"value":"true","name":"agent.disablelogplugin.TestFilePublisherPlugin"},{"secret":false,"value":"22","name":"build.buildNumber"},{"secret":false,"value":"930a937b-46b2-4a2b-a9d6-af11c2053d8e","name":"system.timelineId"},{"secret":false,"value":"Салин Сергей Ð�лекÑ�андрович","name":"build.requestedFor"},{"secret":false,"value":"The-Ego","name":"system.teamProject"},{"secret":false,"value":"TfsGit","name":"build.repository.provider"},{"secret":false,"value":"true","name":"agent.disablelogplugin.TestResultLogPlugin"},{"secret":false,"value":"/opt/myagent/_work/1/s","name":"build.sourcesdirectory"},{"secret":false,"value":"/opt/myagent","name":"agent.homedirectory"},{"secret":false,"value":"Build and run","name":"agent.jobname"},{"secret":false,"value":"ya","name":"agent.machinename"},{"secret":false,"value":"/opt/myagent/_work/1/a","name":"build.stagingdirectory"},{"secret":false,"value":"false","name":"agent.retainDefaultEncoding"},{"secret":false,"value":"True","name":"system.debug"},{"secret":false,"value":"__default","name":"system.jobName"},{"secret":false,"value":"build","name":"system"},{"secret":false,"value":"60b64fae-1979-4bdd-9869-1125bdf2b50c","name":"build.repository.id"},{"secret":false,"value":"X64","name":"agent.osarchitecture"},{"secret":false,"value":"/opt/myagent/_work/_tasks/FAKE5_a2dadf20-1a83-4220-a4ee-b52f6c77f3cf/1.0.8/node_modules/vsts-fsharp-task-common/CredentialProvider","name":"NUGET_CREDENTIALPROVIDERS_PATH"},{"secret":false,"value":***,"name":"PAKET_VSS_NUGET_ACCESSTOKEN"}]}
2020-02-07T14:13:30.3230280Z ##[debug]which '/usr/bin/dotnet'
2020-02-07T14:13:30.3232779Z ##[debug]found: '/usr/bin/dotnet'
2020-02-07T14:13:30.3234412Z ##[debug]which '/usr/bin/dotnet'
2020-02-07T14:13:30.3262994Z ##[debug]found: '/usr/bin/dotnet'
2020-02-07T14:13:30.3268498Z ##[debug]/usr/bin/dotnet arg: /opt/myagent/_work/_tool/fake/5.19.0/x64/fake.dll run "build.fsx" build -t build
2020-02-07T14:13:30.3271164Z ##[debug]/usr/bin/dotnet arg: /opt/myagent/_work/_tool/fake/5.19.0/x64/fake.dll run "build.fsx" build -t build
2020-02-07T14:13:30.3283286Z ##[debug]exec tool: /usr/bin/dotnet
2020-02-07T14:13:30.3285131Z ##[debug]exec tool: /usr/bin/dotnet
2020-02-07T14:13:30.3287057Z ##[debug]arguments:
2020-02-07T14:13:30.3288672Z ##[debug]arguments:
2020-02-07T14:13:30.3290880Z ##[debug]   /opt/myagent/_work/_tool/fake/5.19.0/x64/fake.dll
2020-02-07T14:13:30.3292684Z ##[debug]   /opt/myagent/_work/_tool/fake/5.19.0/x64/fake.dll
2020-02-07T14:13:30.3294629Z ##[debug]   run
2020-02-07T14:13:30.3296200Z ##[debug]   run
2020-02-07T14:13:30.3297924Z ##[debug]   build.fsx
2020-02-07T14:13:30.3299466Z ##[debug]   build.fsx
2020-02-07T14:13:30.3301208Z ##[debug]   build
2020-02-07T14:13:30.3302839Z ##[debug]   build
2020-02-07T14:13:30.3305167Z ##[debug]   -t
2020-02-07T14:13:30.3307486Z ##[debug]   -t
2020-02-07T14:13:30.3309446Z ##[debug]   build
2020-02-07T14:13:30.3311358Z ##[debug]   build
2020-02-07T14:13:30.3318615Z [command]/usr/bin/dotnet /opt/myagent/_work/_tool/fake/5.19.0/x64/fake.dll run build.fsx build -t build
2020-02-07T14:13:31.3152177Z Error while parsing command line, usage is:
2020-02-07T14:13:31.3166978Z 
2020-02-07T14:13:31.3167314Z General:
2020-02-07T14:13:31.3168039Z 
2020-02-07T14:13:31.3169690Z   Fake command line is devided into runtime and script arguments.
2020-02-07T14:13:31.3169960Z   Runtime arguments control compilation and processing of the script,
2020-02-07T14:13:31.3170208Z   while script arguments are specific for the script or provided by
2020-02-07T14:13:31.3170610Z   a NuGet package.
2020-02-07T14:13:31.3176011Z   In most use cases you use the "Fake.Core.Target"-Package and therefore
2020-02-07T14:13:31.3176356Z   inherit the corresponding command line interface. While these arguments
2020-02-07T14:13:31.3176773Z   are not strictly part of the runtime we still show both below to
2020-02-07T14:13:31.3177008Z   make it easier for newcomers.
2020-02-07T14:13:31.3177206Z 
2020-02-07T14:13:31.3180281Z  -- RUNTIME ARGUMENTS SECTION --
2020-02-07T14:13:31.3180573Z 
2020-02-07T14:13:31.3185114Z 
2020-02-07T14:13:31.3185583Z Usage:
2020-02-07T14:13:31.3186474Z   fake.exe [fake_opts] run [run_opts] [<script.fsx>] [--] [<scriptargs>...]
2020-02-07T14:13:31.3187104Z   fake.exe [fake_opts] build [build_opts] [--] [<scriptargs>...]
2020-02-07T14:13:31.3187664Z   fake.exe --version
2020-02-07T14:13:31.3188514Z   fake.exe --help | -h
2020-02-07T14:13:31.3189460Z 
2020-02-07T14:13:31.3190306Z Fake Options [fake_opts]:
2020-02-07T14:13:31.3193426Z   -v, --verbose [*]     Verbose (can be used multiple times)
2020-02-07T14:13:31.3198929Z                         Is ignored if -s is used.
2020-02-07T14:13:31.3199262Z                         * -v: Log verbose but only for FAKE
2020-02-07T14:13:31.3199576Z                         * -vv: Log verbose for Paket as well
2020-02-07T14:13:31.3200969Z   -s, --silent          Be silent, use this option if you need to pipe your output into another tool or need some additional processing.                  
2020-02-07T14:13:31.3201067Z 
2020-02-07T14:13:31.3201160Z Fake Run Options [run_opts]:
2020-02-07T14:13:31.3201925Z   -d, --debug           Debug the script.
2020-02-07T14:13:31.3202572Z   -n, --nocache         Disable fake cache for this run.
2020-02-07T14:13:31.3202915Z   -p, --partial-restore
2020-02-07T14:13:31.3205861Z                         Only restore the required group instead of a full restore, 
2020-02-07T14:13:31.3206101Z                         can be set globally by setting the environment variable FAKE_PARTIAL_RESTORE to true.
2020-02-07T14:13:31.3207207Z   --fsiargs <fsiargs> [*]  Arguments passed to the f# interactive.
2020-02-07T14:13:31.3207295Z 
2020-02-07T14:13:31.3209412Z Fake Build Options [build_opts]:
2020-02-07T14:13:31.3209828Z   -d, --debug           Debug the script.
2020-02-07T14:13:31.3210143Z   -n, --nocache         Disable fake cache for this run.
2020-02-07T14:13:31.3210556Z   -p, --partial-restore
2020-02-07T14:13:31.3210696Z                         Only restore the required group instead of a full restore, 
2020-02-07T14:13:31.3212829Z                         can be set globally by setting the environment variable FAKE_PARTIAL_RESTORE to true.
2020-02-07T14:13:31.3213464Z   --fsiargs <fsiargs> [*]  Arguments passed to the f# interactive.
2020-02-07T14:13:31.3214213Z   -f, --script <script.fsx>
2020-02-07T14:13:31.3215920Z                         The script to execute (defaults to `build.fsx`).
2020-02-07T14:13:31.3217655Z 
2020-02-07T14:13:31.3217765Z 
2020-02-07T14:13:31.3218468Z  -- SCRIPT ARGUMENTS SECTION --
2020-02-07T14:13:31.3218544Z 
2020-02-07T14:13:31.3218889Z THIS SECTION ONLY APPLIES IF YOU USE THE 'Fake.Core.Target' PACKAGE!
2020-02-07T14:13:31.3218949Z You can use the following arguments in place of `<scriptargs>`:
2020-02-07T14:13:31.3219072Z 
2020-02-07T14:13:31.3219122Z Usage:
2020-02-07T14:13:31.3219421Z   fake-run --list
2020-02-07T14:13:31.3219710Z   fake-run --write-info <file>
2020-02-07T14:13:31.3220092Z   fake-run --version
2020-02-07T14:13:31.3222451Z   fake-run --help | -h
2020-02-07T14:13:31.3223086Z   fake-run [target_opts] [target <target>] [--] [<targetargs>...]
2020-02-07T14:13:31.3223169Z 
2020-02-07T14:13:31.3223378Z Target Module Options [target_opts]:
2020-02-07T14:13:31.3224015Z     -t, --target <target>
2020-02-07T14:13:31.3224091Z                           Run the given target (ignored if positional
2020-02-07T14:13:31.3224455Z argument 'target' is given)
2020-02-07T14:13:31.3247795Z     -e, --environment-variable <keyval> [*]
2020-02-07T14:13:31.3248418Z                           Set an environment variable. Use 'key=val'.
2020-02-07T14:13:31.3248862Z Consider using regular arguments, see https://fake.build/core-targets.html
2020-02-07T14:13:31.3249477Z     -s, --single-target    Run only the specified target.
2020-02-07T14:13:31.3250226Z     -p, --parallel <num>  Run parallel with the given number of tasks.
2020-02-07T14:13:31.3250287Z 
2020-02-07T14:13:31.3250422Z Example:
2020-02-07T14:13:31.3250473Z 
2020-02-07T14:13:31.3250517Z To use verbose mode (from [fake_opts]) and print all
2020-02-07T14:13:31.3250868Z targets use "fake -v build -- --list". Because "--list" 
2020-02-07T14:13:31.3251188Z doesn't conflict with any of the [build_opts], you can use 
2020-02-07T14:13:31.3251589Z "fake -v build --list"
2020-02-07T14:13:31.3564090Z -> TypeInitializationException: The type initializer for '<StartupCode$Paket-Core>.$Paket.Utils' threw an exception.
2020-02-07T14:13:31.4836714Z -> ArgumentNullException: Value cannot be null.
2020-02-07T14:13:31.4838160Z    Parameter name: path1
2020-02-07T14:13:31.4993949Z ##[debug]rc:1
2020-02-07T14:13:31.4996082Z ##[debug]rc:1
2020-02-07T14:13:31.4998224Z ##[debug]success:false
2020-02-07T14:13:31.5000109Z ##[debug]success:false
2020-02-07T14:13:31.5161606Z ##[error]/usr/bin/dotnet failed with return code: 1
2020-02-07T14:13:31.5174896Z ##[debug]Processed: ##vso[task.issue type=error;]/usr/bin/dotnet failed with return code: 1
2020-02-07T14:13:31.5175319Z ##[debug]task result: Failed
2020-02-07T14:13:31.5175715Z ##[error]/usr/bin/dotnet failed with return code: 1
2020-02-07T14:13:31.5175986Z ##[debug]Processed: ##vso[task.issue type=error;]/usr/bin/dotnet failed with return code: 1
2020-02-07T14:13:31.5196158Z ##[debug]Processed: ##vso[task.complete result=Failed;]/usr/bin/dotnet failed with return code: 1
2020-02-07T14:13:31.5476500Z ##[error]Exit code 1 returned from process: file name '/opt/myagent/externals/node/bin/node', arguments '"/opt/myagent/_work/_tasks/FAKE5_a2dadf20-1a83-4220-a4ee-b52f6c77f3cf/1.0.8/runFake5.js"'.
2020-02-07T14:13:31.5481854Z ##[debug]Microsoft.VisualStudio.Services.Agent.Util.ProcessExitCodeException: Exit code 1 returned from process: file name '/opt/myagent/externals/node/bin/node', arguments '"/opt/myagent/_work/_tasks/FAKE5_a2dadf20-1a83-4220-a4ee-b52f6c77f3cf/1.0.8/runFake5.js"'.
   at Microsoft.VisualStudio.Services.Agent.Util.ProcessInvoker.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue`1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Agent.ProcessInvokerWrapper.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue`1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.DefaultStepHost.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Boolean inheritConsoleHandler, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.NodeHandler.RunAsync()
   at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.RunAsync()
   at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken)
2020-02-07T14:13:31.5484035Z ##[section]Finishing: Execute the build.fsx FAKE 5 script

Known workarounds

Copy and paste build command directly in terminal
The command runs successfully

/opt/myagent/_work/1/s# /usr/bin/dotnet /opt/myagent/_work/_tool/fake/5.19.0/x64/fake.dll run build.fsx build -t build
The last restore is still up to date. Nothing left to do.
run Build
Building project with version: LocalBuild
Shortened DependencyGraph for Target Build:
<== Build
   <== InstallClient
      <== Clean

The running order is:
Group - 1
  - Clean
Group - 2
  - InstallClient
Group - 3
  - Build
Starting target 'Clean'
Finished (Success) 'Clean' in 00:00:00.0099688
Starting target 'InstallClient'
Node version:
/opt/myagent/_work/1/s> "/usr/bin/node" --version (In: false, Out: false, Err: false)
v8.10.0
Npm version:
/opt/myagent/_work/1/s> "/usr/bin/npm" --version (In: false, Out: false, Err: false)
3.5.2
/opt/myagent/_work/1/s> "/usr/bin/npm" install (In: false, Out: false, Err: false)
loadDep:fsevents → reques ▌ ╢████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine [email protected]: wanted: {"node":"^8.16.0 || ^10.6.0 || >=11.0.0"} (cnpm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN optional Skipping failed optional dependency /watchpack/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN optional Skipping failed optional dependency /webpack-dev-server/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
/opt/myagent/_work/1/s/src/Client> "/usr/bin/dotnet" restore (In: false, Out: false, Err: false)
  Restore completed in 58.52 ms for /opt/myagent/_work/1/s/src/Client/Client.fsproj.
Finished (Success) 'InstallClient' in 00:00:09.5281358
Starting target 'Build'
/opt/myagent/_work/1/s/src/Server> "/usr/bin/dotnet" build (In: false, Out: false, Err: false)
Microsoft (R) Build Engine version 16.1.76+g14b0a930a7 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 91.72 ms for /opt/myagent/_work/1/s/src/Server/Server.fsproj.
  Server -> /opt/myagent/_work/1/s/src/Server/bin/Debug/netcoreapp2.2/Server.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:02.09
/opt/myagent/_work/1/s> "/usr/local/bin/npx" webpack-cli -p (In: false, Out: false, Err: false)
Bundling for production...
fable-compiler 2.4.12
fable: Compiled src/Client/Client.fsproj
fable: Compiled src/Client/Client.fs
fable: Compiled src/Shared/Shared.fs
fable: Compiled .fable/Fable.Elmish.2.0.3/cmd.fs
fable: Compiled .fable/Fable.Elmish.2.0.3/program.fs
fable: Compiled .fable/Fable.PowerPack.3.0.0/Fetch.fs
fable: Compiled .fable/Fable.React.4.1.3/Fable.Helpers.React.fs
fable: Compiled .fable/Fulma.1.1.0/Elements/Heading.fs
fable: Compiled .fable/Fulma.1.1.0/Elements/Button.fs
fable: Compiled .fable/Fulma.1.1.0/Elements/Content.fs
fable: Compiled .fable/Fulma.1.1.0/Common.fs
fable: Compiled .fable/Fulma.1.1.0/Components/Navbar.fs
fable: Compiled .fable/Fulma.1.1.0/Layouts/Columns.fs
fable: Compiled .fable/Fulma.1.1.0/Layouts/Footer.fs
fable: Compiled .fable/Fulma.1.1.0/Layouts/Container.fs
fable: Compiled .fable/Fulma.1.1.0/Layouts/Column.fs
fable: Compiled .fable/Fable.Elmish.React.2.1.0/react.fs
fable: Compiled .fable/Thoth.Json.2.5.0/Decode.fs
fable: Compiled .fable/Fable.Elmish.2.0.3/prelude.fs
fable: Compiled .fable/Fable.Elmish.React.2.1.0/common.fs
fable: Compiled .fable/Thoth.Json.2.5.0/Encode.fs
fable: Compiled .fable/Fable.PowerPack.3.0.0/Promise.fs
Hash: b33b23f2fcad7b47bff0
Version: webpack 4.41.5
Time: 40531ms
Built at: 02/07/2020 5:09:10 PM
                                  Asset       Size  Chunks                         Chunk Names
            app.b33b23f2fcad7b47bff0.js    150 KiB       0  [emitted] [immutable]  app
        app.b33b23f2fcad7b47bff0.js.map    870 KiB       0  [emitted] [dev]        app
                            favicon.png  810 bytes          [emitted]              
                             index.html  902 bytes          [emitted]              
         style.b33b23f2fcad7b47bff0.css   59 bytes       0  [emitted] [immutable]  app
     style.b33b23f2fcad7b47bff0.css.map  127 bytes       0  [emitted] [dev]        app
    vendors~app.b33b23f2fcad7b47bff0.js    178 KiB       1  [emitted] [immutable]  vendors~app
vendors~app.b33b23f2fcad7b47bff0.js.map    642 KiB       1  [emitted] [dev]        vendors~app
Entrypoint app [big] = vendors~app.b33b23f2fcad7b47bff0.js vendors~app.b33b23f2fcad7b47bff0.js.map style.b33b23f2fcad7b47bff0.css app.b33b23f2fcad7b47bff0.js style.b33b23f2fcad7b47bff0.css.map app.b33b23f2fcad7b47bff0.js.map
[195] multi ./src/Client/Client.fsproj ./src/Client/style.scss 40 bytes {0} [built]
[196] (webpack)/buildin/global.js 472 bytes {1} [built]
[246] ./src/Client/style.scss 39 bytes {0} [built]
[247] ./src/Client/Client.fsproj + 47 modules 806 KiB {0} [built]
      | ./src/Client/Client.fsproj 28 bytes [built]
      | ./src/Client/Client.fs 9.27 KiB [built]
      | ./.fable/fable-library.2.4.12/Util.js 25 KiB [built]
      | ./.fable/fable-library.2.4.12/Types.js 8.58 KiB [built]
      | ./.fable/fable-library.2.4.12/Reflection.js 15.8 KiB [built]
      | ./src/Shared/Shared.fs 1.01 KiB [built]
      | ./.fable/fable-library.2.4.12/Option.js 4.08 KiB [built]
      | ./.fable/fable-library.2.4.12/List.js 32.6 KiB [built]
      | ./.fable/Thoth.Json.2.5.0/Decode.fs 56.9 KiB [built]
      | ./.fable/Fable.PowerPack.3.0.0/Fetch.fs 6.31 KiB [built]
      | ./.fable/Fable.Elmish.2.0.3/cmd.fs 2.52 KiB [built]
      | ./.fable/Fable.React.4.1.3/Fable.Helpers.React.fs 28.2 KiB [built]
      | ./.fable/Fulma.1.1.0/Common.fs 40.3 KiB [built]
      | ./.fable/Fulma.1.1.0/Elements/Button.fs 18.5 KiB [built]
      | ./.fable/Fulma.1.1.0/Components/Navbar.fs 23.5 KiB [built]
      |     + 33 hidden modules
    + 245 hidden modules

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  app (328 KiB)
      vendors~app.b33b23f2fcad7b47bff0.js
      style.b33b23f2fcad7b47bff0.css
      app.b33b23f2fcad7b47bff0.js


WARNING in webpack performance recommendations: 
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
Child html-webpack-plugin for "index.html":
     1 asset
    Entrypoint undefined = index.html
    [0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/Client/index.html 899 bytes {0} [built]
    [2] (webpack)/buildin/global.js 472 bytes {0} [built]
    [3] (webpack)/buildin/module.js 497 bytes {0} [built]
        + 1 hidden module
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js!node_modules/sass-loader/dist/cjs.js??ref--6-2!src/Client/style.scss:
    Entrypoint mini-css-extract-plugin = *
    [0] ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ref--6-2!./src/Client/style.scss 142 bytes {0} [built]
        + 1 hidden module
Finished (Success) 'Build' in 00:00:44.8659117

---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target          Duration
------          --------
Clean           00:00:00.0026350
InstallClient   00:00:09.5278350
Build           00:00:44.8651893
Total:          00:00:54.6341310
Status:         Ok
---------------------------------------------------------------------
Hint: Could not find a version in your paket.dependencies file, consider adding 'version 5.241.2' at the top of your dependencies file (/opt/myagent/_work/1/s/paket.dependencies).
Read https://github.com/fsharp/FAKE/issues/2193 for details.
Performance:
 - Cli parsing: 855 milliseconds
 - Packages: 86 milliseconds
 - Script analyzing: 36 milliseconds
 - Script running: 55 seconds
 - Script cleanup: 22 milliseconds
 - Runtime: 57 seconds

Related information

  • Operating system (Ubuntu 18.04.2 LTS (Bionic Beaver))
# dotnet --version
2.2.300

Fake 5.19.0

VSTS Hosted VS2017 Agent can't find fsi.exe

Description

I'm trying to use the "Execute F# Script" task on a Hosted VS2017 agent, but it gives me the following error: "The system cannot find the path specified.". This is because the task it trying to run fsi.exe from the C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\ folder. This used to work, but fsi.exe can now be found in the dotnet core sdk (i.e. C:\Program Files\dotnet\sdk\2.1.400\FSharp).
Maybe I'm missing something and this can be fixed easily by my side, but I just can't figure it out.

Repro steps

  1. Create a build pipeline

  2. Set Agent Pool to Hosted VS2017

  3. Add "Execute F# Script" task and select the fsx

  4. Queue the build

Expected behavior

fsx script gets executed

Actual behavior

error: "The system cannot find the path specified."

Details

2018-09-18T09:47:14.7799699Z ##[debug]Evaluating condition for step: 'Deploy Plugins'
2018-09-18T09:47:14.7800261Z ##[debug]Evaluating: succeeded()
2018-09-18T09:47:14.7800455Z ##[debug]Evaluating succeeded:
2018-09-18T09:47:14.7800694Z ##[debug]=> True
2018-09-18T09:47:14.7800952Z ##[debug]Result: True
2018-09-18T09:47:14.7801281Z ##[section]Starting: Deploy Plugins
2018-09-18T09:47:14.7858892Z ==============================================================================
2018-09-18T09:47:14.7859029Z Task : Execute F# Script
2018-09-18T09:47:14.7859124Z Description : Executes an F# .fsx script file
2018-09-18T09:47:14.7859211Z Version : 0.4.1
2018-09-18T09:47:14.7859301Z Author : Isaac Abraham
2018-09-18T09:47:14.7859566Z Help : This task executes an arbitrary .fsx file.
2018-09-18T09:47:14.7859672Z ==============================================================================
2018-09-18T09:47:14.7949577Z ##[debug]Working directory: 'D:\a_tasks\FSharpScript_1ba72b0a-f476-4a91-90a0-b8e7a0cc4337\0.4.1\DefaultTaskWorkingDirectory'
2018-09-18T09:47:14.7951772Z ##[debug]Fail on standard error: 'True'
2018-09-18T09:47:14.7951906Z ##[debug]Modify environment: 'False'
2018-09-18T09:47:14.7952065Z ##[debug]C:\Windows\system32\cmd.exe /c ""C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\fsi.exe" "D:\a\1\s\AOMetalektro.CRM\Scripts\Daxif\PluginSyncDev.fsx" "
2018-09-18T09:47:14.7952285Z ##[command]"C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\fsi.exe" "D:\a\1\s\AOMetalektro.CRM\Scripts\Daxif\PluginSyncDev.fsx"
2018-09-18T09:47:14.8188366Z ##[error]The system cannot find the path specified.

2018-09-18T09:47:14.8209493Z ##[error]Process completed with exit code 1 and had 1 error(s) written to the error stream.
2018-09-18T09:47:14.8219076Z ##[debug]System.Exception: Process completed with exit code 1 and had 1 error(s) written to the error stream.
at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.ProcessHandler.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.d__1.MoveNext()
2018-09-18T09:47:14.8221045Z ##[section]Finishing: Deploy Plugins

Known workarounds

I might be able to run the F# script using powershell, but that would be without using this task entirely.

Related information

https://github.com/Microsoft/azure-pipelines-image-generation/blob/master/images/win/Vs2017-Server2016-Readme.md

F# 4.1 support

Thanks for these helpers @isaacabraham they're really useful for some ad hoc tasks on VSTS.

We have some build agents with only F# 4.1/VS2017 which means fsi is only present in:
C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0

The script is hard-coded against:
"C:\\Program Files (x86)\\Microsoft SDKs\\F#\\4.0\\Framework\\v4.0\\fsi.exe"

I was able to workaround this using https://docs.microsoft.com/en-gb/vsts/build-release/tasks/utility/batch-script but it'd be great to use the more specific tasks with F# 4.1

(re-) implement Paket Task

Description

To integrate better into Azure DevOps I think we need another paket task (or improve the existing one).
Imho it should:

  • do what the paket.bootstrapper does / replace the bootstrapper
  • cache the paket tool on the agent (similar to how the fake task caches fake)
  • automatically setup and clear the paket credential manager

This simplifies the tasks to one.

Question is:

  • Does it make sense?
  • Is the fake task enough anyway?

Unable to find build step in VSTS

I added "F# Helpers for VSTS " on my VSTS site (hosted on visualstudio.com), but I'm unable to find any new build steps - Paket or FAKE. Is there a step I'm missing?

Tasks use outdated node

Description

It seems that azure devops tasks will no longer work with node 6 in march 2022 so they are now displaying a warning in each pipeline run.

Repro steps

Run one of the tasks in a pipeline and read the log.

Expected behavior

no warning.

Actual behavior

a warning.

Details

2021-12-03T17:39:53.9247604Z ##[section]Starting: Setup Paket Credential Manager
2021-12-03T17:39:53.9372982Z ==============================================================================
2021-12-03T17:39:53.9373420Z Task : Paket Credential Manager
2021-12-03T17:39:53.9374079Z Description : Creates a credential manager for Paket to access internal NuGet feeds.
2021-12-03T17:39:53.9374470Z Version : 0.2.5
2021-12-03T17:39:53.9374744Z Author : Matthias Dittrich
2021-12-03T17:39:53.9375248Z Help : This task allows you to consume NuGet packages hosted in your own private feed by providing a credential manager.
2021-12-03T17:39:53.9375786Z ==============================================================================
2021-12-03T17:39:53.9560702Z ##[warning]This task uses Node 6 execution handler, which will be removed March 31st 2022. If you are the developer of the task - please consider the migration guideline to Node 10 handler - https://aka.ms/migrateTaskNode10 (check this page also if you would like to disable Node 6 deprecation warnings). If you are the user - feel free to reach out to the owners of this task to proceed on migration.

Paket Restore task not authenticating to VSTS

Description

I am trying to use the "Setup Paket Credential Provider" and "Paket Restore" tasks but it is not working. When the "Paket Restore" task runs it tries to connect to the VSTS NuGet instance but it just hangs and eventually gives and error like "Possible Performance degradation, blacklist" and the build terminates because of timeout.

Repro steps

Prerequisites

At least how my environment is setup

Steps to reproduce

  1. Create a VSTS build pipeline
  2. Include Setup Paket Credential Manager task
  3. Include Restore Paket dependencies task
  4. Queue a build to run on the AWS EC2 build agent

Expected behavior

NuGet packages hosted on VSTS would be restored

Actual behavior

Paket restore hangs and the build is eventually terminated because of a timeout

Details

2018-12-19T15:23:56.7194078Z ##[debug]Evaluating condition for step: 'Setup Paket Credential Manager'
2018-12-19T15:23:56.7195035Z ##[debug]Evaluating: succeeded()
2018-12-19T15:23:56.7195172Z ##[debug]Evaluating succeeded:
2018-12-19T15:23:56.7195383Z ##[debug]=> True
2018-12-19T15:23:56.7195602Z ##[debug]Result: True
2018-12-19T15:23:56.7195828Z ##[section]Starting: Setup Paket Credential Manager
2018-12-19T15:23:56.7198541Z ==============================================================================
2018-12-19T15:23:56.7198614Z Task         : Paket Credential Manager
2018-12-19T15:23:56.7198651Z Description  : Creates a credential manager for Paket to access internal NuGet feeds.
2018-12-19T15:23:56.7198686Z Version      : 0.2.5
2018-12-19T15:23:56.7198759Z Author       : Matthias Dittrich
2018-12-19T15:23:56.7198794Z Help         : This task allows you to consume NuGet packages hosted in your own private feed by providing a credential manager.
2018-12-19T15:23:56.7198829Z ==============================================================================
2018-12-19T15:23:56.9451524Z ##[debug]agent.TempDirectory=C:\EC2AMAZ-1JI32VU\work\_temp
2018-12-19T15:23:56.9522424Z ##[debug]loading inputs and endpoints
2018-12-19T15:23:56.9528292Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2018-12-19T15:23:56.9538512Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2018-12-19T15:23:56.9541573Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2018-12-19T15:23:56.9546058Z ##[debug]loaded 3
2018-12-19T15:23:56.9559960Z ##[debug]Agent.ProxyUrl=undefined
2018-12-19T15:23:56.9562337Z ##[debug]Agent.CAInfo=undefined
2018-12-19T15:23:56.9562466Z ##[debug]Agent.ClientCert=undefined
2018-12-19T15:23:56.9563322Z ##[debug]Agent.SkipCertValidation=undefined
2018-12-19T15:23:57.0095861Z ##[debug]Agent.ProxyUrl=undefined
2018-12-19T15:23:57.0099640Z ##[debug]check path : C:\EC2AMAZ-1JI32VU\work\_tasks\setCredentialManager_5bfdd7ca-9bf4-40f7-b753-fd674e7ff85c\0.2.5\node_modules\vsts-task-tool-lib\lib.json
2018-12-19T15:23:57.0101244Z ##[debug]adding resource file: C:\EC2AMAZ-1JI32VU\work\_tasks\setCredentialManager_5bfdd7ca-9bf4-40f7-b753-fd674e7ff85c\0.2.5\node_modules\vsts-task-tool-lib\lib.json
2018-12-19T15:23:57.0101508Z ##[debug]system.culture=en-US
2018-12-19T15:23:57.0137976Z ##[debug]Adding 'C:\EC2AMAZ-1JI32VU\work\_tasks\setCredentialManager_5bfdd7ca-9bf4-40f7-b753-fd674e7ff85c\0.2.5\node_modules\vsts-fsharp-task-common\CredentialProvider' to 'NUGET_CREDENTIALPROVIDERS_PATH'
2018-12-19T15:23:57.0139989Z ##[debug]set NUGET_CREDENTIALPROVIDERS_PATH=C:\EC2AMAZ-1JI32VU\work\_tasks\setCredentialManager_5bfdd7ca-9bf4-40f7-b753-fd674e7ff85c\0.2.5\node_modules\vsts-fsharp-task-common\CredentialProvider
2018-12-19T15:23:57.0157302Z ##[debug]Processed: ##vso[task.setvariable variable=NUGET_CREDENTIALPROVIDERS_PATH;issecret=false;]C:\EC2AMAZ-1JI32VU\work\_tasks\setCredentialManager_5bfdd7ca-9bf4-40f7-b753-fd674e7ff85c\0.2.5\node_modules\vsts-fsharp-task-common\CredentialProvider
2018-12-19T15:23:57.0162617Z SYSTEMVSSCONNECTION exists true
2018-12-19T15:23:57.0162884Z ##[debug]SYSTEMVSSCONNECTION exists true
2018-12-19T15:23:57.0163360Z ##[debug]set PAKET_VSS_NUGET_ACCESSTOKEN=***
2018-12-19T15:23:57.0165097Z ##[debug]Processed: ##vso[task.setvariable variable=PAKET_VSS_NUGET_ACCESSTOKEN;issecret=false;]***
2018-12-19T15:23:57.0262984Z ##[section]Finishing: Setup Paket Credential Manager

*********************************************************************************************************

2018-12-19T15:23:57.0344810Z ##[debug]Evaluating condition for step: 'Restore Paket dependencies'
2018-12-19T15:23:57.0345341Z ##[debug]Evaluating: succeeded()
2018-12-19T15:23:57.0345445Z ##[debug]Evaluating succeeded:
2018-12-19T15:23:57.0345630Z ##[debug]=> True
2018-12-19T15:23:57.0345816Z ##[debug]Result: True
2018-12-19T15:23:57.0345981Z ##[section]Starting: Restore Paket dependencies
2018-12-19T15:23:57.0348931Z ==============================================================================
2018-12-19T15:23:57.0348987Z Task         : Paket Restore
2018-12-19T15:23:57.0349021Z Description  : Restores your Paket dependencies.
2018-12-19T15:23:57.0349055Z Version      : 0.4.5
2018-12-19T15:23:57.0349107Z Author       : Isaac Abraham
2018-12-19T15:23:57.0349141Z Help         : This task restores your dependencies from the paket.dependencies file located in your repository.
2018-12-19T15:23:57.0349174Z ==============================================================================
2018-12-19T15:23:57.0461133Z ##[debug]Working directory: 'C:\EC2AMAZ-1JI32VU\work\2\s\.paket'
2018-12-19T15:23:57.0461762Z ##[debug]Fail on standard error: 'True'
2018-12-19T15:23:57.0461816Z ##[debug]Modify environment: 'False'
2018-12-19T15:23:57.0461883Z ##[debug]C:\Windows\system32\cmd.exe /c "C:\EC2AMAZ-1JI32VU\work\_tasks\PaketRestore_1ba72b0a-f476-4a91-90a0-b8e7a0cc4338\0.4.5\Paket.bat "
2018-12-19T15:23:57.0461958Z ##[command]C:\EC2AMAZ-1JI32VU\work\_tasks\PaketRestore_1ba72b0a-f476-4a91-90a0-b8e7a0cc4338\0.4.5\Paket.bat 
2018-12-19T15:23:57.1310615Z Checking Paket version (downloading latest stable)...
2018-12-19T15:23:57.5909356Z Paket.exe 5.194.3 is up to date.
2018-12-19T15:23:57.6734229Z Paket version 5.194.3
2018-12-19T15:24:01.2936335Z Starting full restore process.
2018-12-19T15:24:01.5807402Z Downloading PG_API 20181213.1.0
2018-12-19T15:34:01.7183893Z Possible Performance degradation, V3 was not working: One or more errors occurred.
2018-12-19T15:44:01.8162775Z Possible Performance degradation, blacklist '1_https://company123.pkgs.visualstudio.com/_packaging/UI/nuget/v2/Packages(Id='pg_api',Version='20181213.1.0')'
2018-12-19T16:04:01.8623774Z Possible Performance degradation, blacklist '1_https://company123.pkgs.visualstudio.com/_packaging/UI/nuget/v2/Packages(Id='PG_API',Version='20181213.1.0')'
2018-12-19T16:23:50.7229484Z ##[debug]Re-evaluate condition on job cancellation for step: 'Restore Paket dependencies'.
2018-12-19T16:23:50.7695175Z ##[error]^C

2018-12-19T16:23:50.7716804Z Terminate batch job (Y/N)? 
2018-12-19T16:23:50.7934677Z ##[error]The operation was canceled.
2018-12-19T16:23:50.7937720Z ##[debug]System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at Microsoft.VisualStudio.Services.Agent.Util.ProcessInvoker.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, IList`1 contentsToStandardIn, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Agent.ProcessInvokerWrapper.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, IList`1 contentsToStandardIn, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.ProcessHandler.RunAsync()
   at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.RunAsync()
   at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken)
2018-12-19T16:23:50.7939318Z ##[section]Finishing: Restore Paket dependencies

Known workarounds

None

Upgrade tasks to use Powershell.

The current command line / batch task runner is obsolete and should be replaced with the Powershell runner. This is much more powerful and flexible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.