isaacabraham / vsts-fsharp

Azure Devops extension for F#-friendly tools
https://marketplace.visualstudio.com/items?itemName=isaacabraham.fsharp-helpers-extension
Apache License 2.0
13 stars 7 forks source link

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

Closed BlooDCrescent closed 4 years ago

BlooDCrescent commented 4 years ago

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]build.requestedForEmail=sergeysaleen@outlook.com
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://sergeysaleen@dev.azure.com/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":"sergeysaleen@outlook.com","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://sergeysaleen@dev.azure.com/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 fsevents@2.1.2: 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: fsevents@2.1.2
npm WARN optional Skipping failed optional dependency /watchpack/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.11
npm WARN optional Skipping failed optional dependency /webpack-dev-server/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.11
/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

matthid commented 4 years ago

I think this is a usage problem and independent of the operating system:

You should enter -t build (you have build -t build):

image

or use the Complete command line Field:

image

BlooDCrescent commented 4 years ago

I tried to use the same FAKE version and command line arguments, but with no success The error still persists image

2020-02-08T05:08:08.2389599Z ##[debug]Evaluating condition for step: 'Execute the build.fsx FAKE 5 script'
2020-02-08T05:08:08.2390267Z ##[debug]Evaluating: succeeded()
2020-02-08T05:08:08.2390451Z ##[debug]Evaluating succeeded:
2020-02-08T05:08:08.2390667Z ##[debug]=> True
2020-02-08T05:08:08.2390999Z ##[debug]Result: True
2020-02-08T05:08:08.2391261Z ##[section]Starting: Execute the build.fsx FAKE 5 script
2020-02-08T05:08:08.2396156Z ==============================================================================
2020-02-08T05:08:08.2396223Z Task         : FAKE 5 Runner
2020-02-08T05:08:08.2396260Z Description  : Runs a FAKE 5 build script.
2020-02-08T05:08:08.2396365Z Version      : 1.0.8
2020-02-08T05:08:08.2396406Z Author       : Matthias Dittrich
2020-02-08T05:08:08.2396441Z Help         : This task downloads and caches the FAKE runner and executes the FAKE 5 build script specified.
2020-02-08T05:08:08.2396538Z ==============================================================================
2020-02-08T05:08:08.4195330Z ##[debug]agent.TempDirectory=/opt/myagent/_work/_temp
2020-02-08T05:08:08.4234947Z ##[debug]loading inputs and endpoints
2020-02-08T05:08:08.4241254Z ##[debug]loading INPUT_FAKEVERSION
2020-02-08T05:08:08.4255837Z ##[debug]loading INPUT_FAKESCRIPT
2020-02-08T05:08:08.4261185Z ##[debug]loading INPUT_SCRIPTARGUMENTS
2020-02-08T05:08:08.4264598Z ##[debug]loading INPUT_WORKINGDIRECTORY
2020-02-08T05:08:08.4271714Z ##[debug]loading INPUT_PREVENTSECRETS
2020-02-08T05:08:08.4274996Z ##[debug]loading INPUT_FAILONSTDERROR
2020-02-08T05:08:08.4278505Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2020-02-08T05:08:08.4281977Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2020-02-08T05:08:08.4284908Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2020-02-08T05:08:08.4292794Z ##[debug]loaded 9
2020-02-08T05:08:08.4310762Z ##[debug]Agent.ProxyUrl=undefined
2020-02-08T05:08:08.4314264Z ##[debug]Agent.CAInfo=undefined
2020-02-08T05:08:08.4316795Z ##[debug]Agent.ClientCert=undefined
2020-02-08T05:08:08.4319000Z ##[debug]Agent.SkipCertValidation=undefined
2020-02-08T05:08:08.4745967Z ##[debug]Agent.ProxyUrl=undefined
2020-02-08T05:08:08.4753453Z ##[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-08T05:08:08.4757031Z ##[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-08T05:08:08.4759582Z ##[debug]system.culture=en-US
2020-02-08T05:08:08.4807295Z setup paket credential manager
2020-02-08T05:08:08.4822145Z ##[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-08T05:08:08.4826217Z ##[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-08T05:08:08.4856261Z ##[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-08T05:08:08.4867505Z SYSTEMVSSCONNECTION exists true
2020-02-08T05:08:08.4870617Z ##[debug]SYSTEMVSSCONNECTION exists true
2020-02-08T05:08:08.4874110Z ##[debug]set PAKET_VSS_NUGET_ACCESSTOKEN=***
2020-02-08T05:08:08.4877950Z ##[debug]Processed: ##vso[task.setvariable variable=PAKET_VSS_NUGET_ACCESSTOKEN;issecret=false;]***
2020-02-08T05:08:08.4895085Z (node:16506) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T05:08:08.4897467Z (node:16506) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T05:08:08.4899693Z (node:16506) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T05:08:08.4901942Z (node:16506) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T05:08:08.4904099Z (node:16506) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T05:08:08.4907003Z (node:16506) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T05:08:08.4909414Z (node:16506) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T05:08:08.4911801Z (node:16506) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T05:08:08.4914148Z (node:16506) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T05:08:08.4925700Z ##[debug]FakeScript=/opt/myagent/_work/1/s/build.fsx
2020-02-08T05:08:08.4928047Z ##[debug]Using scriptPath '/opt/myagent/_work/1/s/build.fsx'.
2020-02-08T05:08:08.4932330Z ##[debug]WorkingDirectory=/opt/myagent/_work/1/s
2020-02-08T05:08:08.4935747Z ##[debug]ScriptArguments=--parallel 3 -t Build
2020-02-08T05:08:08.4937832Z ##[debug]FakeArguments=null
2020-02-08T05:08:08.4941055Z ##[debug]FakeVersion=5.18.3
2020-02-08T05:08:08.4945542Z ##[debug]PreventSecrets=false
2020-02-08T05:08:08.4948377Z ##[debug]FailOnStdError=false
2020-02-08T05:08:08.4956964Z ##[debug]which 'dotnet'
2020-02-08T05:08:08.4965448Z ##[debug]found: '/usr/bin/dotnet'
2020-02-08T05:08:08.4971096Z ##[debug]isExplicit: 5.18.3
2020-02-08T05:08:08.4973582Z ##[debug]explicit? true
2020-02-08T05:08:08.4976909Z ##[debug]Agent.Version=2.164.7
2020-02-08T05:08:08.4979204Z ##[debug]Agent.ToolsDirectory=/opt/myagent/_work/_tool
2020-02-08T05:08:08.4981330Z ##[debug]checking cache: /opt/myagent/_work/_tool/fake/5.18.3/x64
2020-02-08T05:08:08.5032363Z Found tool in cache: fake 5.18.3 x64
2020-02-08T05:08:08.5046124Z ##[debug]task.displayname=Execute the build.fsx FAKE 5 script
2020-02-08T05:08:08.5048303Z ##[debug]system.phaseName=Job_1
2020-02-08T05:08:08.5051234Z ##[debug]system.definitionName=The-Ego-CI
2020-02-08T05:08:08.5053168Z ##[debug]build.sourceVersionMessage=Removed some junk (not needed for now) and counter works
2020-02-08T05:08:08.5055531Z ##[debug]build.repository.uri=https://sergeysaleen@dev.azure.com/sergeysaleen/The-Ego/_git/The-Ego
2020-02-08T05:08:08.5057708Z ##[debug]build.sourcesdirectory=/opt/myagent/_work/1/s
2020-02-08T05:08:08.5059832Z ##[debug]system.jobAttempt=1
2020-02-08T05:08:08.5061986Z ##[debug]build.containerId=1794281
2020-02-08T05:08:08.5063908Z ##[debug]agent.workfolder=/opt/myagent/_work
2020-02-08T05:08:08.5065987Z ##[debug]system.teamProject=The-Ego
2020-02-08T05:08:08.5068222Z ##[debug]build.requestedForId=ee4b5751-a933-4d94-92a2-880370494fe1
2020-02-08T05:08:08.5072953Z ##[debug]system.culture=en-US
2020-02-08T05:08:08.5076630Z ##[debug]agent.acceptteeeula=True
2020-02-08T05:08:08.5080371Z ##[debug]agent.disablelogplugin.TestFilePublisherPlugin=true
2020-02-08T05:08:08.5084516Z ##[debug]GIT_TERMINAL_PROMPT=0
2020-02-08T05:08:08.5089003Z ##[debug]agent.osarchitecture=X64
2020-02-08T05:08:08.5097373Z ##[debug]system.servertype=Hosted
2020-02-08T05:08:08.5102175Z ##[debug]agent.machinename=ya
2020-02-08T05:08:08.5105977Z ##[debug]system.jobIdentifier=Job_1.__default
2020-02-08T05:08:08.5110505Z ##[debug]system.debug=True
2020-02-08T05:08:08.5113810Z ##[debug]build.repository.localpath=/opt/myagent/_work/1/s
2020-02-08T05:08:08.5117087Z ##[debug]system.definitionId=2
2020-02-08T05:08:08.5120474Z ##[debug]agent.id=10
2020-02-08T05:08:08.5123803Z ##[debug]build.stagingdirectory=/opt/myagent/_work/1/a
2020-02-08T05:08:08.5127080Z ##[debug]build.buildUri=vstfs:///Build/Build/25
2020-02-08T05:08:08.5129563Z ##[debug]agent.jobname=Build and run
2020-02-08T05:08:08.5132777Z ##[debug]system.collectionId=50a14eb7-3693-4421-8116-4581b1687e7f
2020-02-08T05:08:08.5136162Z ##[debug]agent.ToolsDirectory=/opt/myagent/_work/_tool
2020-02-08T05:08:08.5140133Z ##[debug]system.taskInstanceId=281fb954-634f-515e-8a6c-37ef435b970e
2020-02-08T05:08:08.5143645Z ##[debug]agent.TempDirectory=/opt/myagent/_work/_temp
2020-02-08T05:08:08.5146743Z ##[debug]agent.RootDirectory=/opt/myagent/_work
2020-02-08T05:08:08.5155280Z ##[debug]build.sourceBranch=refs/heads/dev
2020-02-08T05:08:08.5158994Z ##[debug]system.pipelineStartTime=2020-02-08 05:07:52+00:00
2020-02-08T05:08:08.5162192Z ##[debug]agent.readOnlyVariables=true
2020-02-08T05:08:08.5165160Z ##[debug]agent.builddirectory=/opt/myagent/_work/1
2020-02-08T05:08:08.5167369Z ##[debug]build.reason=Manual
2020-02-08T05:08:08.5170767Z ##[debug]system.timelineId=d86f7ac8-5fcf-456b-8bc6-0a22aa12aeb2
2020-02-08T05:08:08.5173347Z ##[debug]system.isScheduled=False
2020-02-08T05:08:08.5176058Z ##[debug]MSDEPLOY_HTTP_USER_AGENT=VSTS_50a14eb7-3693-4421-8116-4581b1687e7f_build_2_0
2020-02-08T05:08:08.5178322Z ##[debug]system.phaseDisplayName=Build and run
2020-02-08T05:08:08.5181383Z ##[debug]system.jobName=__default
2020-02-08T05:08:08.5183648Z ##[debug]system.jobDisplayName=Build and run
2020-02-08T05:08:08.5189608Z ##[debug]system.stageAttempt=1
2020-02-08T05:08:08.5192415Z ##[debug]system.artifactsdirectory=/opt/myagent/_work/1/a
2020-02-08T05:08:08.5195197Z ##[debug]build.requestedFor=Салин Сергей Александрович
2020-02-08T05:08:08.5198004Z ##[debug]build.binariesdirectory=/opt/myagent/_work/1/b
2020-02-08T05:08:08.5200501Z ##[debug]system.workfolder=/opt/myagent/_work
2020-02-08T05:08:08.5202976Z ##[debug]build.sourceVersionAuthor=Sergey
2020-02-08T05:08:08.5205216Z ##[debug]build.sourceBranchName=dev
2020-02-08T05:08:08.5207671Z ##[debug]agent.os=Linux
2020-02-08T05:08:08.5210631Z ##[debug]agent.version=2.164.7
2020-02-08T05:08:08.5213064Z ##[debug]system=build
2020-02-08T05:08:08.5215689Z ##[debug]build.Repository.name=The-Ego
2020-02-08T05:08:08.5218197Z ##[debug]build.buildNumber=25
2020-02-08T05:08:08.5221370Z ##[debug]system.stageId=96ac2280-8cb4-5df5-99de-dd2da759617d
2020-02-08T05:08:08.5223686Z ##[debug]system.taskInstanceName=FAKE5
2020-02-08T05:08:08.5226174Z ##[debug]System.JobPositionInPhase=1
2020-02-08T05:08:08.5228106Z ##[debug]build.sourceVersion=6369c19a50231c64815c7d6e4dee6347b4ddcf71
2020-02-08T05:08:08.5230700Z ##[debug]system.stageName=__default
2020-02-08T05:08:08.5233207Z ##[debug]agent.jobstatus=Succeeded
2020-02-08T05:08:08.5236555Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_50a14eb7-3693-4421-8116-4581b1687e7f_build_2_0
2020-02-08T05:08:08.5239639Z ##[debug]build.buildId=25
2020-02-08T05:08:08.5241585Z ##[debug]build.definitionVersion=24
2020-02-08T05:08:08.5243307Z ##[debug]build.queuedBy=Салин Сергей Александрович
2020-02-08T05:08:08.5246055Z ##[debug]system.hosttype=build
2020-02-08T05:08:08.5248804Z ##[debug]system.phaseId=2f97f1d8-943c-5cda-8782-cbcebf2b3d67
2020-02-08T05:08:08.5251673Z ##[debug]build.repository.id=60b64fae-1979-4bdd-9869-1125bdf2b50c
2020-02-08T05:08:08.5259948Z ##[debug]build.queuedById=ee4b5751-a933-4d94-92a2-880370494fe1
2020-02-08T05:08:08.5262631Z ##[debug]system.planId=d86f7ac8-5fcf-456b-8bc6-0a22aa12aeb2
2020-02-08T05:08:08.5264368Z ##[debug]System.TotalJobsInPhase=1
2020-02-08T05:08:08.5266060Z ##[debug]VSTS_PROCESS_LOOKUP_ID=vsts_91ca493d-7c01-4996-9b63-5afabaf88e7e
2020-02-08T05:08:08.5268194Z ##[debug]system.taskDisplayName=Execute the build.fsx FAKE 5 script
2020-02-08T05:08:08.5270433Z ##[debug]system.collectionUri=https://dev.azure.com/sergeysaleen/
2020-02-08T05:08:08.5272933Z ##[debug]agent.retainDefaultEncoding=false
2020-02-08T05:08:08.5274654Z ##[debug]build.artifactstagingdirectory=/opt/myagent/_work/1/a
2020-02-08T05:08:08.5278876Z ##[debug]system.pullRequest.isFork=False
2020-02-08T05:08:08.5282340Z ##[debug]system.jobParallelismTag=Private
2020-02-08T05:08:08.5286282Z ##[debug]system.jobId=275f1d19-1bd8-5591-b06b-07d489ea915a
2020-02-08T05:08:08.5303159Z ##[debug]agent.homedirectory=/opt/myagent
2020-02-08T05:08:08.5316523Z ##[debug]system.TeamFoundationServerUri=https://dev.azure.com/sergeysaleen/
2020-02-08T05:08:08.5320162Z ##[debug]system.taskDefinitionsUri=https://dev.azure.com/sergeysaleen/
2020-02-08T05:08:08.5323751Z ##[debug]build.repository.provider=TfsGit
2020-02-08T05:08:08.5327128Z ##[debug]system.stageDisplayName=__default
2020-02-08T05:08:08.5330832Z ##[debug]pipeline.workspace=/opt/myagent/_work/1
2020-02-08T05:08:08.5341038Z ##[debug]system.phaseAttempt=1
2020-02-08T05:08:08.5344557Z ##[debug]common.testresultsdirectory=/opt/myagent/_work/1/TestResults
2020-02-08T05:08:08.5347912Z ##[debug]system.defaultworkingdirectory=/opt/myagent/_work/1/s
2020-02-08T05:08:08.5351893Z ##[debug]build.requestedForEmail=sergeysaleen@outlook.com
2020-02-08T05:08:08.5355304Z ##[debug]system.teamFoundationCollectionUri=https://dev.azure.com/sergeysaleen/
2020-02-08T05:08:08.5358603Z ##[debug]agent.disablelogplugin.TestResultLogPlugin=true
2020-02-08T05:08:08.5362504Z ##[debug]build.definitionName=The-Ego-CI
2020-02-08T05:08:08.5366041Z ##[debug]system.teamProjectId=5cf371e1-400b-4778-9c9d-51e169b8d112
2020-02-08T05:08:08.5369243Z ##[debug]agent.name=agent
2020-02-08T05:08:08.5372564Z ##[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-08T05:08:08.5375082Z ##[debug]PAKET_VSS_NUGET_ACCESSTOKEN=***
2020-02-08T05:08:08.5389697Z ##[debug]FAKE_VSTS_VAULT_VARIABLES: {"keyFile":"/opt/myagent/_work/1/s/.fake/build.fsx/.secret","iv":"Mzg2JpompaxDFm6NFVXA1A==","values":[{"secret":false,"value":"Execute the build.fsx FAKE 5 script","name":"task.displayname"},{"secret":false,"value":"Job_1","name":"system.phaseName"},{"secret":false,"value":"The-Ego-CI","name":"system.definitionName"},{"secret":false,"value":"Removed some junk (not needed for now) and counter works","name":"build.sourceVersionMessage"},{"secret":false,"value":"https://sergeysaleen@dev.azure.com/sergeysaleen/The-Ego/_git/The-Ego","name":"build.repository.uri"},{"secret":false,"value":"/opt/myagent/_work/1/s","name":"build.sourcesdirectory"},{"secret":false,"value":"1","name":"system.jobAttempt"},{"secret":false,"value":"1794281","name":"build.containerId"},{"secret":false,"value":"/opt/myagent/_work","name":"agent.workfolder"},{"secret":false,"value":"The-Ego","name":"system.teamProject"},{"secret":false,"value":"ee4b5751-a933-4d94-92a2-880370494fe1","name":"build.requestedForId"},{"secret":false,"value":"en-US","name":"system.culture"},{"secret":false,"value":"True","name":"agent.acceptteeeula"},{"secret":false,"value":"true","name":"agent.disablelogplugin.TestFilePublisherPlugin"},{"secret":false,"value":"0","name":"GIT_TERMINAL_PROMPT"},{"secret":false,"value":"X64","name":"agent.osarchitecture"},{"secret":false,"value":"Hosted","name":"system.servertype"},{"secret":false,"value":"ya","name":"agent.machinename"},{"secret":false,"value":"Job_1.__default","name":"system.jobIdentifier"},{"secret":false,"value":"True","name":"system.debug"},{"secret":false,"value":"/opt/myagent/_work/1/s","name":"build.repository.localpath"},{"secret":false,"value":"2","name":"system.definitionId"},{"secret":false,"value":"10","name":"agent.id"},{"secret":false,"value":"/opt/myagent/_work/1/a","name":"build.stagingdirectory"},{"secret":false,"value":"vstfs:///Build/Build/25","name":"build.buildUri"},{"secret":false,"value":"Build and run","name":"agent.jobname"},{"secret":false,"value":"50a14eb7-3693-4421-8116-4581b1687e7f","name":"system.collectionId"},{"secret":false,"value":"/opt/myagent/_work/_tool","name":"agent.ToolsDirectory"},{"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","name":"agent.RootDirectory"},{"secret":false,"value":"refs/heads/dev","name":"build.sourceBranch"},{"secret":false,"value":"2020-02-08 05:07:52+00:00","name":"system.pipelineStartTime"},{"secret":false,"value":"true","name":"agent.readOnlyVariables"},{"secret":false,"value":"/opt/myagent/_work/1","name":"agent.builddirectory"},{"secret":false,"value":"Manual","name":"build.reason"},{"secret":false,"value":"d86f7ac8-5fcf-456b-8bc6-0a22aa12aeb2","name":"system.timelineId"},{"secret":false,"value":"False","name":"system.isScheduled"},{"secret":false,"value":"VSTS_50a14eb7-3693-4421-8116-4581b1687e7f_build_2_0","name":"MSDEPLOY_HTTP_USER_AGENT"},{"secret":false,"value":"Build and run","name":"system.phaseDisplayName"},{"secret":false,"value":"__default","name":"system.jobName"},{"secret":false,"value":"Build and run","name":"system.jobDisplayName"},{"secret":false,"value":"1","name":"system.stageAttempt"},{"secret":false,"value":"/opt/myagent/_work/1/a","name":"system.artifactsdirectory"},{"secret":false,"value":"Салин Сергей Александрович","name":"build.requestedFor"},{"secret":false,"value":"/opt/myagent/_work/1/b","name":"build.binariesdirectory"},{"secret":false,"value":"/opt/myagent/_work","name":"system.workfolder"},{"secret":false,"value":"Sergey","name":"build.sourceVersionAuthor"},{"secret":false,"value":"dev","name":"build.sourceBranchName"},{"secret":false,"value":"Linux","name":"agent.os"},{"secret":false,"value":"2.164.7","name":"agent.version"},{"secret":false,"value":"build","name":"system"},{"secret":false,"value":"The-Ego","name":"build.Repository.name"},{"secret":false,"value":"25","name":"build.buildNumber"},{"secret":false,"value":"96ac2280-8cb4-5df5-99de-dd2da759617d","name":"system.stageId"},{"secret":false,"value":"FAKE5","name":"system.taskInstanceName"},{"secret":false,"value":"1","name":"System.JobPositionInPhase"},{"secret":false,"value":"6369c19a50231c64815c7d6e4dee6347b4ddcf71","name":"build.sourceVersion"},{"secret":false,"value":"__default","name":"system.stageName"},{"secret":false,"value":"Succeeded","name":"agent.jobstatus"},{"secret":false,"value":"VSTS_50a14eb7-3693-4421-8116-4581b1687e7f_build_2_0","name":"AZURE_HTTP_USER_AGENT"},{"secret":false,"value":"25","name":"build.buildId"},{"secret":false,"value":"24","name":"build.definitionVersion"},{"secret":false,"value":"Салин Сергей Александрович","name":"build.queuedBy"},{"secret":false,"value":"build","name":"system.hosttype"},{"secret":false,"value":"2f97f1d8-943c-5cda-8782-cbcebf2b3d67","name":"system.phaseId"},{"secret":false,"value":"60b64fae-1979-4bdd-9869-1125bdf2b50c","name":"build.repository.id"},{"secret":false,"value":"ee4b5751-a933-4d94-92a2-880370494fe1","name":"build.queuedById"},{"secret":false,"value":"d86f7ac8-5fcf-456b-8bc6-0a22aa12aeb2","name":"system.planId"},{"secret":false,"value":"1","name":"System.TotalJobsInPhase"},{"secret":false,"value":"vsts_91ca493d-7c01-4996-9b63-5afabaf88e7e","name":"VSTS_PROCESS_LOOKUP_ID"},{"secret":false,"value":"Execute the build.fsx FAKE 5 script","name":"system.taskDisplayName"},{"secret":false,"value":"https://dev.azure.com/sergeysaleen/","name":"system.collectionUri"},{"secret":false,"value":"false","name":"agent.retainDefaultEncoding"},{"secret":false,"value":"/opt/myagent/_work/1/a","name":"build.artifactstagingdirectory"},{"secret":false,"value":"False","name":"system.pullRequest.isFork"},{"secret":false,"value":"Private","name":"system.jobParallelismTag"},{"secret":false,"value":"275f1d19-1bd8-5591-b06b-07d489ea915a","name":"system.jobId"},{"secret":false,"value":"/opt/myagent","name":"agent.homedirectory"},{"secret":false,"value":"https://dev.azure.com/sergeysaleen/","name":"system.TeamFoundationServerUri"},{"secret":false,"value":"https://dev.azure.com/sergeysaleen/","name":"system.taskDefinitionsUri"},{"secret":false,"value":"TfsGit","name":"build.repository.provider"},{"secret":false,"value":"__default","name":"system.stageDisplayName"},{"secret":false,"value":"/opt/myagent/_work/1","name":"pipeline.workspace"},{"secret":false,"value":"1","name":"system.phaseAttempt"},{"secret":false,"value":"/opt/myagent/_work/1/TestResults","name":"common.testresultsdirectory"},{"secret":false,"value":"/opt/myagent/_work/1/s","name":"system.defaultworkingdirectory"},{"secret":false,"value":"sergeysaleen@outlook.com","name":"build.requestedForEmail"},{"secret":false,"value":"https://dev.azure.com/sergeysaleen/","name":"system.teamFoundationCollectionUri"},{"secret":false,"value":"true","name":"agent.disablelogplugin.TestResultLogPlugin"},{"secret":false,"value":"The-Ego-CI","name":"build.definitionName"},{"secret":false,"value":"5cf371e1-400b-4778-9c9d-51e169b8d112","name":"system.teamProjectId"},{"secret":false,"value":"agent","name":"agent.name"},{"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-08T05:08:08.5397881Z ##[debug]which '/usr/bin/dotnet'
2020-02-08T05:08:08.5400452Z ##[debug]found: '/usr/bin/dotnet'
2020-02-08T05:08:08.5402516Z ##[debug]which '/usr/bin/dotnet'
2020-02-08T05:08:08.5432232Z ##[debug]found: '/usr/bin/dotnet'
2020-02-08T05:08:08.5437406Z ##[debug]/usr/bin/dotnet arg: /opt/myagent/_work/_tool/fake/5.18.3/x64/fake.dll run "build.fsx" --parallel 3 -t Build
2020-02-08T05:08:08.5440091Z ##[debug]/usr/bin/dotnet arg: /opt/myagent/_work/_tool/fake/5.18.3/x64/fake.dll run "build.fsx" --parallel 3 -t Build
2020-02-08T05:08:08.5451916Z ##[debug]exec tool: /usr/bin/dotnet
2020-02-08T05:08:08.5453711Z ##[debug]exec tool: /usr/bin/dotnet
2020-02-08T05:08:08.5455536Z ##[debug]arguments:
2020-02-08T05:08:08.5457233Z ##[debug]arguments:
2020-02-08T05:08:08.5459665Z ##[debug]   /opt/myagent/_work/_tool/fake/5.18.3/x64/fake.dll
2020-02-08T05:08:08.5461731Z ##[debug]   /opt/myagent/_work/_tool/fake/5.18.3/x64/fake.dll
2020-02-08T05:08:08.5463688Z ##[debug]   run
2020-02-08T05:08:08.5465360Z ##[debug]   run
2020-02-08T05:08:08.5467116Z ##[debug]   build.fsx
2020-02-08T05:08:08.5468994Z ##[debug]   build.fsx
2020-02-08T05:08:08.5471283Z ##[debug]   --parallel
2020-02-08T05:08:08.5474569Z ##[debug]   --parallel
2020-02-08T05:08:08.5477413Z ##[debug]   3
2020-02-08T05:08:08.5480388Z ##[debug]   3
2020-02-08T05:08:08.5483460Z ##[debug]   -t
2020-02-08T05:08:08.5486539Z ##[debug]   -t
2020-02-08T05:08:08.5489468Z ##[debug]   Build
2020-02-08T05:08:08.5492305Z ##[debug]   Build
2020-02-08T05:08:08.5501337Z [command]/usr/bin/dotnet /opt/myagent/_work/_tool/fake/5.18.3/x64/fake.dll run build.fsx --parallel 3 -t Build
2020-02-08T05:08:09.5687058Z Error while parsing command line, usage is:
2020-02-08T05:08:09.5702176Z 
2020-02-08T05:08:09.5702812Z General:
2020-02-08T05:08:09.5703187Z 
2020-02-08T05:08:09.5703600Z   Fake command line is devided into runtime and script arguments.
2020-02-08T05:08:09.5704434Z   Runtime arguments control compilation and processing of the script,
2020-02-08T05:08:09.5704839Z   while script arguments are specific for the script or provided by
2020-02-08T05:08:09.5705286Z   a NuGet package.
2020-02-08T05:08:09.5708234Z   In most use cases you use the "Fake.Core.Target"-Package and therefore
2020-02-08T05:08:09.5708707Z   inherit the corresponding command line interface. While these arguments
2020-02-08T05:08:09.5709265Z   are not strictly part of the runtime we still show both below to
2020-02-08T05:08:09.5709677Z   make it easier for newcomers.
2020-02-08T05:08:09.5710005Z 
2020-02-08T05:08:09.5713232Z  -- RUNTIME ARGUMENTS SECTION --
2020-02-08T05:08:09.5713708Z 
2020-02-08T05:08:09.5716488Z 
2020-02-08T05:08:09.5716925Z Usage:
2020-02-08T05:08:09.5717725Z   fake.exe [fake_opts] run [run_opts] [<script.fsx>] [--] [<scriptargs>...]
2020-02-08T05:08:09.5718492Z   fake.exe [fake_opts] build [build_opts] [--] [<scriptargs>...]
2020-02-08T05:08:09.5719323Z   fake.exe --version
2020-02-08T05:08:09.5720698Z   fake.exe --help | -h
2020-02-08T05:08:09.5721229Z 
2020-02-08T05:08:09.5721525Z Fake Options [fake_opts]:
2020-02-08T05:08:09.5726748Z   -v, --verbose [*]     Verbose (can be used multiple times)
2020-02-08T05:08:09.5727089Z                         Is ignored if -s is used.
2020-02-08T05:08:09.5727434Z                         * -v: Log verbose but only for FAKE
2020-02-08T05:08:09.5727763Z                         * -vv: Log verbose for Paket as well
2020-02-08T05:08:09.5785345Z   -s, --silent          Be silent, use this option if you need to pipe your output into another tool or need some additional processing.                  
2020-02-08T05:08:09.5785894Z 
2020-02-08T05:08:09.5786217Z Fake Run Options [run_opts]:
2020-02-08T05:08:09.5786783Z   -d, --debug           Debug the script.
2020-02-08T05:08:09.5787454Z   -n, --nocache         Disable fake cache for this run.
2020-02-08T05:08:09.5788050Z   -p, --partial-restore
2020-02-08T05:08:09.5788535Z                         Only restore the required group instead of a full restore, 
2020-02-08T05:08:09.5789265Z                         can be set globally by setting the environment variable FAKE_PARTIAL_RESTORE to true.
2020-02-08T05:08:09.5789914Z   --fsiargs <fsiargs> [*]  Arguments passed to the f# interactive.
2020-02-08T05:08:09.5790187Z 
2020-02-08T05:08:09.5790434Z Fake Build Options [build_opts]:
2020-02-08T05:08:09.5790993Z   -d, --debug           Debug the script.
2020-02-08T05:08:09.5791592Z   -n, --nocache         Disable fake cache for this run.
2020-02-08T05:08:09.5792160Z   -p, --partial-restore
2020-02-08T05:08:09.5792533Z                         Only restore the required group instead of a full restore, 
2020-02-08T05:08:09.5792774Z                         can be set globally by setting the environment variable FAKE_PARTIAL_RESTORE to true.
2020-02-08T05:08:09.5793330Z   --fsiargs <fsiargs> [*]  Arguments passed to the f# interactive.
2020-02-08T05:08:09.5793994Z   -f, --script <script.fsx>
2020-02-08T05:08:09.5794375Z                         The script to execute (defaults to `build.fsx`).
2020-02-08T05:08:09.5794706Z 
2020-02-08T05:08:09.5795000Z 
2020-02-08T05:08:09.5795548Z  -- SCRIPT ARGUMENTS SECTION --
2020-02-08T05:08:09.5795818Z 
2020-02-08T05:08:09.5796378Z THIS SECTION ONLY APPLIES IF YOU USE THE 'Fake.Core.Target' PACKAGE!
2020-02-08T05:08:09.5796754Z You can use the following arguments in place of `<scriptargs>`:
2020-02-08T05:08:09.5796965Z 
2020-02-08T05:08:09.5797198Z Usage:
2020-02-08T05:08:09.5797730Z   fake-run --list
2020-02-08T05:08:09.5798944Z   fake-run --write-info <file>
2020-02-08T05:08:09.5799359Z   fake-run --version
2020-02-08T05:08:09.5799734Z   fake-run --help | -h
2020-02-08T05:08:09.5800102Z   fake-run [target_opts] [target <target>] [--] [<targetargs>...]
2020-02-08T05:08:09.5800146Z 
2020-02-08T05:08:09.5800189Z Target Module Options [target_opts]:
2020-02-08T05:08:09.5800478Z     -t, --target <target>
2020-02-08T05:08:09.5800749Z                           Run the given target (ignored if positional
2020-02-08T05:08:09.5801087Z argument 'target' is given)
2020-02-08T05:08:09.5801394Z     -e, --environment-variable <keyval> [*]
2020-02-08T05:08:09.5801813Z                           Set an environment variable. Use 'key=val'.
2020-02-08T05:08:09.5802155Z Consider using regular arguments, see https://fake.build/core-targets.html
2020-02-08T05:08:09.5802485Z     -s, --single-target    Run only the specified target.
2020-02-08T05:08:09.5802859Z     -p, --parallel <num>  Run parallel with the given number of tasks.
2020-02-08T05:08:09.5802920Z 
2020-02-08T05:08:09.5802961Z Example:
2020-02-08T05:08:09.5802986Z 
2020-02-08T05:08:09.5803023Z To use verbose mode (from [fake_opts]) and print all
2020-02-08T05:08:09.5803408Z targets use "fake -v build -- --list". Because "--list" 
2020-02-08T05:08:09.5803728Z doesn't conflict with any of the [build_opts], you can use 
2020-02-08T05:08:09.5804012Z "fake -v build --list"
2020-02-08T05:08:09.6020501Z -> TypeInitializationException: The type initializer for '<StartupCode$Paket-Core>.$Paket.Utils' threw an exception.
2020-02-08T05:08:09.7384392Z -> ArgumentNullException: Value cannot be null.
2020-02-08T05:08:09.7384498Z    Parameter name: path1
2020-02-08T05:08:09.7385214Z ##[debug]rc:1
2020-02-08T05:08:09.7385342Z ##[debug]rc:1
2020-02-08T05:08:09.7385511Z ##[debug]success:false
2020-02-08T05:08:09.7385604Z ##[debug]success:false
2020-02-08T05:08:09.7448685Z ##[error]/usr/bin/dotnet failed with return code: 1
2020-02-08T05:08:09.7459904Z ##[debug]Processed: ##vso[task.issue type=error;]/usr/bin/dotnet failed with return code: 1
2020-02-08T05:08:09.7460122Z ##[debug]task result: Failed
2020-02-08T05:08:09.7460636Z ##[error]/usr/bin/dotnet failed with return code: 1
2020-02-08T05:08:09.7462078Z ##[debug]Processed: ##vso[task.issue type=error;]/usr/bin/dotnet failed with return code: 1
2020-02-08T05:08:09.7462819Z ##[debug]Processed: ##vso[task.complete result=Failed;]/usr/bin/dotnet failed with return code: 1
2020-02-08T05:08:09.7686970Z ##[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-08T05:08:09.7692194Z ##[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-08T05:08:09.7694264Z ##[section]Finishing: Execute the build.fsx FAKE 5 script
BlooDCrescent commented 4 years ago

I found a problem: I ran build agent from root user. When I created dedicated user for build agent only error disappeared

matthid commented 4 years ago

Interesting, the relevant output looks to be:


2020-02-08T05:08:09.6020501Z -> TypeInitializationException: The type initializer for '<StartupCode$Paket-Core>.$Paket.Utils' threw an exception.

2020-02-08T05:08:09.7384392Z -> ArgumentNullException: Value cannot be null.

2020-02-08T05:08:09.7384498Z    Parameter name: path1

Strange how an exception managed to print out the usage string. Can you please set the FAKE_DETAILED_ERRORS environment variable to 'true', to get more error details of what's happening?

BlooDCrescent commented 4 years ago

I've switched back to root build agent with FAKE_DETAILED_ERRORS and got the following. Doesn't seem like much changed (at least, to me)

2020-02-08T17:12:31.3302597Z ##[debug]Evaluating condition for step: 'Execute the build.fsx FAKE 5 script'
2020-02-08T17:12:31.3303377Z ##[debug]Evaluating: succeeded()
2020-02-08T17:12:31.3303524Z ##[debug]Evaluating succeeded:
2020-02-08T17:12:31.3303869Z ##[debug]=> True
2020-02-08T17:12:31.3304166Z ##[debug]Result: True
2020-02-08T17:12:31.3304524Z ##[section]Starting: Execute the build.fsx FAKE 5 script
2020-02-08T17:12:31.3309300Z ==============================================================================
2020-02-08T17:12:31.3309375Z Task         : FAKE 5 Runner
2020-02-08T17:12:31.3309411Z Description  : Runs a FAKE 5 build script.
2020-02-08T17:12:31.3309450Z Version      : 1.0.8
2020-02-08T17:12:31.3309663Z Author       : Matthias Dittrich
2020-02-08T17:12:31.3309712Z Help         : This task downloads and caches the FAKE runner and executes the FAKE 5 build script specified.
2020-02-08T17:12:31.3309748Z ==============================================================================
2020-02-08T17:12:31.4952863Z ##[debug]agent.TempDirectory=/opt/myagent/_work/_temp
2020-02-08T17:12:31.4987045Z ##[debug]loading inputs and endpoints
2020-02-08T17:12:31.4994370Z ##[debug]loading INPUT_FAKEVERSION
2020-02-08T17:12:31.5009914Z ##[debug]loading INPUT_FAKESCRIPT
2020-02-08T17:12:31.5015267Z ##[debug]loading INPUT_SCRIPTARGUMENTS
2020-02-08T17:12:31.5018828Z ##[debug]loading INPUT_WORKINGDIRECTORY
2020-02-08T17:12:31.5026835Z ##[debug]loading INPUT_PREVENTSECRETS
2020-02-08T17:12:31.5032620Z ##[debug]loading INPUT_FAILONSTDERROR
2020-02-08T17:12:31.5036583Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2020-02-08T17:12:31.5041478Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2020-02-08T17:12:31.5045285Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2020-02-08T17:12:31.5053172Z ##[debug]loaded 9
2020-02-08T17:12:31.5074177Z ##[debug]Agent.ProxyUrl=undefined
2020-02-08T17:12:31.5077659Z ##[debug]Agent.CAInfo=undefined
2020-02-08T17:12:31.5080006Z ##[debug]Agent.ClientCert=undefined
2020-02-08T17:12:31.5082319Z ##[debug]Agent.SkipCertValidation=undefined
2020-02-08T17:12:31.5544559Z ##[debug]Agent.ProxyUrl=undefined
2020-02-08T17:12:31.5552501Z ##[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-08T17:12:31.5556473Z ##[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-08T17:12:31.5559765Z ##[debug]system.culture=en-US
2020-02-08T17:12:31.5615528Z setup paket credential manager
2020-02-08T17:12:31.5632952Z ##[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-08T17:12:31.5637553Z ##[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-08T17:12:31.5672111Z ##[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-08T17:12:31.5685237Z SYSTEMVSSCONNECTION exists true
2020-02-08T17:12:31.5688420Z ##[debug]SYSTEMVSSCONNECTION exists true
2020-02-08T17:12:31.5692293Z ##[debug]set PAKET_VSS_NUGET_ACCESSTOKEN=***
2020-02-08T17:12:31.5697586Z ##[debug]Processed: ##vso[task.setvariable variable=PAKET_VSS_NUGET_ACCESSTOKEN;issecret=false;]***
2020-02-08T17:12:31.5718709Z (node:7421) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T17:12:31.5721944Z (node:7421) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T17:12:31.5724362Z (node:7421) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T17:12:31.5726970Z (node:7421) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T17:12:31.5729193Z (node:7421) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T17:12:31.5732235Z (node:7421) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T17:12:31.5737792Z (node:7421) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T17:12:31.5741987Z (node:7421) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T17:12:31.5745636Z (node:7421) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-08T17:12:31.5759202Z ##[debug]FakeScript=/opt/myagent/_work/1/s/build.fsx
2020-02-08T17:12:31.5762370Z ##[debug]Using scriptPath '/opt/myagent/_work/1/s/build.fsx'.
2020-02-08T17:12:31.5766750Z ##[debug]WorkingDirectory=/opt/myagent/_work/1/s
2020-02-08T17:12:31.5770986Z ##[debug]ScriptArguments=--parallel 3 -t Build
2020-02-08T17:12:31.5773315Z ##[debug]FakeArguments=null
2020-02-08T17:12:31.5776561Z ##[debug]FakeVersion=5.19.0
2020-02-08T17:12:31.5781927Z ##[debug]PreventSecrets=false
2020-02-08T17:12:31.5785084Z ##[debug]FailOnStdError=false
2020-02-08T17:12:31.5795919Z ##[debug]which 'dotnet'
2020-02-08T17:12:31.5805544Z ##[debug]found: '/usr/bin/dotnet'
2020-02-08T17:12:31.5811806Z ##[debug]isExplicit: 5.19.0
2020-02-08T17:12:31.5814662Z ##[debug]explicit? true
2020-02-08T17:12:31.5818751Z ##[debug]Agent.Version=2.164.7
2020-02-08T17:12:31.5821232Z ##[debug]Agent.ToolsDirectory=/opt/myagent/_work/_tool
2020-02-08T17:12:31.5823428Z ##[debug]checking cache: /opt/myagent/_work/_tool/fake/5.19.0/x64
2020-02-08T17:12:31.5878927Z Found tool in cache: fake 5.19.0 x64
2020-02-08T17:12:31.5895123Z ##[debug]system.taskDisplayName=Execute the build.fsx FAKE 5 script
2020-02-08T17:12:31.5897533Z ##[debug]build.requestedForEmail=sergeysaleen@outlook.com
2020-02-08T17:12:31.5899920Z ##[debug]system.defaultworkingdirectory=/opt/myagent/_work/1/s
2020-02-08T17:12:31.5902117Z ##[debug]agent.builddirectory=/opt/myagent/_work/1
2020-02-08T17:12:31.5904182Z ##[debug]build.repository.localpath=/opt/myagent/_work/1/s
2020-02-08T17:12:31.5906605Z ##[debug]system.pipelineStartTime=2020-02-08 17:12:18+00:00
2020-02-08T17:12:31.5908686Z ##[debug]build.binariesdirectory=/opt/myagent/_work/1/b
2020-02-08T17:12:31.5911278Z ##[debug]build.sourcesdirectory=/opt/myagent/_work/1/s
2020-02-08T17:12:31.5913338Z ##[debug]agent.disablelogplugin.TestFilePublisherPlugin=true
2020-02-08T17:12:31.5915636Z ##[debug]system.phaseId=2f97f1d8-943c-5cda-8782-cbcebf2b3d67
2020-02-08T17:12:31.5917675Z ##[debug]system.definitionId=2
2020-02-08T17:12:31.5921974Z ##[debug]system=build
2020-02-08T17:12:31.5925970Z ##[debug]agent.RootDirectory=/opt/myagent/_work
2020-02-08T17:12:31.5929311Z ##[debug]agent.name=agent
2020-02-08T17:12:31.5932913Z ##[debug]system.definitionName=The-Ego-CI
2020-02-08T17:12:31.5939613Z ##[debug]system.isScheduled=False
2020-02-08T17:12:31.5943356Z ##[debug]system.phaseName=Job_1
2020-02-08T17:12:31.5947305Z ##[debug]build.Repository.name=The-Ego
2020-02-08T17:12:31.5951166Z ##[debug]build.repository.uri=https://sergeysaleen@dev.azure.com/sergeysaleen/The-Ego/_git/The-Ego
2020-02-08T17:12:31.5954909Z ##[debug]build.sourceVersionAuthor=Sergey
2020-02-08T17:12:31.5957309Z ##[debug]System.JobPositionInPhase=1
2020-02-08T17:12:31.5959905Z ##[debug]system.jobName=__default
2020-02-08T17:12:31.5962912Z ##[debug]system.stageName=__default
2020-02-08T17:12:31.5965403Z ##[debug]build.sourceVersionMessage=Removed some junk (not needed for now) and counter works
2020-02-08T17:12:31.5967816Z ##[debug]system.taskDefinitionsUri=https://dev.azure.com/sergeysaleen/
2020-02-08T17:12:31.5970413Z ##[debug]build.containerId=1794295
2020-02-08T17:12:31.5973257Z ##[debug]system.TeamFoundationServerUri=https://dev.azure.com/sergeysaleen/
2020-02-08T17:12:31.5975666Z ##[debug]system.pullRequest.isFork=False
2020-02-08T17:12:31.5978050Z ##[debug]system.jobAttempt=1
2020-02-08T17:12:31.5981177Z ##[debug]system.stageId=96ac2280-8cb4-5df5-99de-dd2da759617d
2020-02-08T17:12:31.5987841Z ##[debug]system.jobId=275f1d19-1bd8-5591-b06b-07d489ea915a
2020-02-08T17:12:31.5990659Z ##[debug]system.collectionUri=https://dev.azure.com/sergeysaleen/
2020-02-08T17:12:31.5993597Z ##[debug]build.definitionName=The-Ego-CI
2020-02-08T17:12:31.5996591Z ##[debug]system.culture=en-US
2020-02-08T17:12:31.5999406Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_50a14eb7-3693-4421-8116-4581b1687e7f_build_2_0
2020-02-08T17:12:31.6002082Z ##[debug]task.displayname=Execute the build.fsx FAKE 5 script
2020-02-08T17:12:31.6004708Z ##[debug]system.taskInstanceName=FAKE5
2020-02-08T17:12:31.6007266Z ##[debug]MSDEPLOY_HTTP_USER_AGENT=VSTS_50a14eb7-3693-4421-8116-4581b1687e7f_build_2_0
2020-02-08T17:12:31.6010157Z ##[debug]system.teamProjectId=5cf371e1-400b-4778-9c9d-51e169b8d112
2020-02-08T17:12:31.6012728Z ##[debug]build.queuedById=ee4b5751-a933-4d94-92a2-880370494fe1
2020-02-08T17:12:31.6015136Z ##[debug]agent.readOnlyVariables=true
2020-02-08T17:12:31.6017661Z ##[debug]agent.ToolsDirectory=/opt/myagent/_work/_tool
2020-02-08T17:12:31.6023881Z ##[debug]system.teamProject=The-Ego
2020-02-08T17:12:31.6026608Z ##[debug]system.hosttype=build
2020-02-08T17:12:31.6029219Z ##[debug]agent.retainDefaultEncoding=false
2020-02-08T17:12:31.6031771Z ##[debug]pipeline.workspace=/opt/myagent/_work/1
2020-02-08T17:12:31.6035126Z ##[debug]build.requestedForId=ee4b5751-a933-4d94-92a2-880370494fe1
2020-02-08T17:12:31.6037628Z ##[debug]system.stageDisplayName=__default
2020-02-08T17:12:31.6040551Z ##[debug]VSTS_PROCESS_LOOKUP_ID=vsts_03841931-0eb2-4589-877b-b964873ad573
2020-02-08T17:12:31.6044226Z ##[debug]build.artifactstagingdirectory=/opt/myagent/_work/1/a
2020-02-08T17:12:31.6047075Z ##[debug]build.repository.id=60b64fae-1979-4bdd-9869-1125bdf2b50c
2020-02-08T17:12:31.6049686Z ##[debug]system.phaseDisplayName=Build and run
2020-02-08T17:12:31.6052252Z ##[debug]agent.acceptteeeula=True
2020-02-08T17:12:31.6055088Z ##[debug]build.definitionVersion=28
2020-02-08T17:12:31.6058007Z ##[debug]agent.machinename=ya
2020-02-08T17:12:31.6060894Z ##[debug]agent.osarchitecture=X64
2020-02-08T17:12:31.6064140Z ##[debug]agent.jobstatus=Succeeded
2020-02-08T17:12:31.6066847Z ##[debug]build.buildNumber=30
2020-02-08T17:12:31.6069082Z ##[debug]build.sourceVersion=6369c19a50231c64815c7d6e4dee6347b4ddcf71
2020-02-08T17:12:31.6072113Z ##[debug]build.repository.provider=TfsGit
2020-02-08T17:12:31.6074332Z ##[debug]GIT_TERMINAL_PROMPT=0
2020-02-08T17:12:31.6077484Z ##[debug]build.requestedFor=Салин Сергей Александрович
2020-02-08T17:12:31.6081252Z ##[debug]agent.workfolder=/opt/myagent/_work
2020-02-08T17:12:31.6083266Z ##[debug]system.timelineId=c8387c8c-9749-4e6f-92c7-a7045f3a0db3
2020-02-08T17:12:31.6084919Z ##[debug]agent.jobname=Build and run
2020-02-08T17:12:31.6086543Z ##[debug]system.jobDisplayName=Build and run
2020-02-08T17:12:31.6088324Z ##[debug]build.buildId=30
2020-02-08T17:12:31.6090054Z ##[debug]system.jobParallelismTag=Private
2020-02-08T17:12:31.6091595Z ##[debug]build.sourceBranch=refs/heads/dev
2020-02-08T17:12:31.6093375Z ##[debug]agent.homedirectory=/opt/myagent
2020-02-08T17:12:31.6094994Z ##[debug]system.workfolder=/opt/myagent/_work
2020-02-08T17:12:31.6096865Z ##[debug]system.taskInstanceId=281fb954-634f-515e-8a6c-37ef435b970e
2020-02-08T17:12:31.6098479Z ##[debug]agent.os=Linux
2020-02-08T17:12:31.6100230Z ##[debug]build.reason=Manual
2020-02-08T17:12:31.6101724Z ##[debug]System.TotalJobsInPhase=1
2020-02-08T17:12:31.6103352Z ##[debug]agent.version=2.164.7
2020-02-08T17:12:31.6106910Z ##[debug]system.jobIdentifier=Job_1.__default
2020-02-08T17:12:31.6110867Z ##[debug]system.phaseAttempt=1
2020-02-08T17:12:31.6128446Z ##[debug]system.artifactsdirectory=/opt/myagent/_work/1/a
2020-02-08T17:12:31.6143486Z ##[debug]system.planId=c8387c8c-9749-4e6f-92c7-a7045f3a0db3
2020-02-08T17:12:31.6147518Z ##[debug]common.testresultsdirectory=/opt/myagent/_work/1/TestResults
2020-02-08T17:12:31.6151612Z ##[debug]FAKE_DETAILED_ERRORS=True
2020-02-08T17:12:31.6155471Z ##[debug]agent.TempDirectory=/opt/myagent/_work/_temp
2020-02-08T17:12:31.6167708Z ##[debug]build.stagingdirectory=/opt/myagent/_work/1/a
2020-02-08T17:12:31.6171632Z ##[debug]system.servertype=Hosted
2020-02-08T17:12:31.6176291Z ##[debug]build.sourceBranchName=dev
2020-02-08T17:12:31.6180379Z ##[debug]system.stageAttempt=1
2020-02-08T17:12:31.6184305Z ##[debug]agent.disablelogplugin.TestResultLogPlugin=true
2020-02-08T17:12:31.6188151Z ##[debug]build.buildUri=vstfs:///Build/Build/30
2020-02-08T17:12:31.6191997Z ##[debug]agent.id=10
2020-02-08T17:12:31.6195904Z ##[debug]system.teamFoundationCollectionUri=https://dev.azure.com/sergeysaleen/
2020-02-08T17:12:31.6200078Z ##[debug]build.queuedBy=Салин Сергей Александрович
2020-02-08T17:12:31.6202055Z ##[debug]system.collectionId=50a14eb7-3693-4421-8116-4581b1687e7f
2020-02-08T17:12:31.6204183Z ##[debug]system.debug=true
2020-02-08T17:12:31.6206752Z ##[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-08T17:12:31.6210123Z ##[debug]PAKET_VSS_NUGET_ACCESSTOKEN=***
2020-02-08T17:12:31.6224205Z ##[debug]FAKE_VSTS_VAULT_VARIABLES: {"keyFile":"/opt/myagent/_work/1/s/.fake/build.fsx/.secret","iv":"IEliWIHx7hP048I3QF+tow==","values":[{"secret":false,"value":"Execute the build.fsx FAKE 5 script","name":"system.taskDisplayName"},{"secret":false,"value":"sergeysaleen@outlook.com","name":"build.requestedForEmail"},{"secret":false,"value":"/opt/myagent/_work/1/s","name":"system.defaultworkingdirectory"},{"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":"2020-02-08 17:12:18+00:00","name":"system.pipelineStartTime"},{"secret":false,"value":"/opt/myagent/_work/1/b","name":"build.binariesdirectory"},{"secret":false,"value":"/opt/myagent/_work/1/s","name":"build.sourcesdirectory"},{"secret":false,"value":"true","name":"agent.disablelogplugin.TestFilePublisherPlugin"},{"secret":false,"value":"2f97f1d8-943c-5cda-8782-cbcebf2b3d67","name":"system.phaseId"},{"secret":false,"value":"2","name":"system.definitionId"},{"secret":false,"value":"build","name":"system"},{"secret":false,"value":"/opt/myagent/_work","name":"agent.RootDirectory"},{"secret":false,"value":"agent","name":"agent.name"},{"secret":false,"value":"The-Ego-CI","name":"system.definitionName"},{"secret":false,"value":"False","name":"system.isScheduled"},{"secret":false,"value":"Job_1","name":"system.phaseName"},{"secret":false,"value":"The-Ego","name":"build.Repository.name"},{"secret":false,"value":"https://sergeysaleen@dev.azure.com/sergeysaleen/The-Ego/_git/The-Ego","name":"build.repository.uri"},{"secret":false,"value":"Sergey","name":"build.sourceVersionAuthor"},{"secret":false,"value":"1","name":"System.JobPositionInPhase"},{"secret":false,"value":"__default","name":"system.jobName"},{"secret":false,"value":"__default","name":"system.stageName"},{"secret":false,"value":"Removed some junk (not needed for now) and counter works","name":"build.sourceVersionMessage"},{"secret":false,"value":"https://dev.azure.com/sergeysaleen/","name":"system.taskDefinitionsUri"},{"secret":false,"value":"1794295","name":"build.containerId"},{"secret":false,"value":"https://dev.azure.com/sergeysaleen/","name":"system.TeamFoundationServerUri"},{"secret":false,"value":"False","name":"system.pullRequest.isFork"},{"secret":false,"value":"1","name":"system.jobAttempt"},{"secret":false,"value":"96ac2280-8cb4-5df5-99de-dd2da759617d","name":"system.stageId"},{"secret":false,"value":"275f1d19-1bd8-5591-b06b-07d489ea915a","name":"system.jobId"},{"secret":false,"value":"https://dev.azure.com/sergeysaleen/","name":"system.collectionUri"},{"secret":false,"value":"The-Ego-CI","name":"build.definitionName"},{"secret":false,"value":"en-US","name":"system.culture"},{"secret":false,"value":"VSTS_50a14eb7-3693-4421-8116-4581b1687e7f_build_2_0","name":"AZURE_HTTP_USER_AGENT"},{"secret":false,"value":"Execute the build.fsx FAKE 5 script","name":"task.displayname"},{"secret":false,"value":"FAKE5","name":"system.taskInstanceName"},{"secret":false,"value":"VSTS_50a14eb7-3693-4421-8116-4581b1687e7f_build_2_0","name":"MSDEPLOY_HTTP_USER_AGENT"},{"secret":false,"value":"5cf371e1-400b-4778-9c9d-51e169b8d112","name":"system.teamProjectId"},{"secret":false,"value":"ee4b5751-a933-4d94-92a2-880370494fe1","name":"build.queuedById"},{"secret":false,"value":"true","name":"agent.readOnlyVariables"},{"secret":false,"value":"/opt/myagent/_work/_tool","name":"agent.ToolsDirectory"},{"secret":false,"value":"The-Ego","name":"system.teamProject"},{"secret":false,"value":"build","name":"system.hosttype"},{"secret":false,"value":"false","name":"agent.retainDefaultEncoding"},{"secret":false,"value":"/opt/myagent/_work/1","name":"pipeline.workspace"},{"secret":false,"value":"ee4b5751-a933-4d94-92a2-880370494fe1","name":"build.requestedForId"},{"secret":false,"value":"__default","name":"system.stageDisplayName"},{"secret":false,"value":"vsts_03841931-0eb2-4589-877b-b964873ad573","name":"VSTS_PROCESS_LOOKUP_ID"},{"secret":false,"value":"/opt/myagent/_work/1/a","name":"build.artifactstagingdirectory"},{"secret":false,"value":"60b64fae-1979-4bdd-9869-1125bdf2b50c","name":"build.repository.id"},{"secret":false,"value":"Build and run","name":"system.phaseDisplayName"},{"secret":false,"value":"True","name":"agent.acceptteeeula"},{"secret":false,"value":"28","name":"build.definitionVersion"},{"secret":false,"value":"ya","name":"agent.machinename"},{"secret":false,"value":"X64","name":"agent.osarchitecture"},{"secret":false,"value":"Succeeded","name":"agent.jobstatus"},{"secret":false,"value":"30","name":"build.buildNumber"},{"secret":false,"value":"6369c19a50231c64815c7d6e4dee6347b4ddcf71","name":"build.sourceVersion"},{"secret":false,"value":"TfsGit","name":"build.repository.provider"},{"secret":false,"value":"0","name":"GIT_TERMINAL_PROMPT"},{"secret":false,"value":"Салин Сергей Александрович","name":"build.requestedFor"},{"secret":false,"value":"/opt/myagent/_work","name":"agent.workfolder"},{"secret":false,"value":"c8387c8c-9749-4e6f-92c7-a7045f3a0db3","name":"system.timelineId"},{"secret":false,"value":"Build and run","name":"agent.jobname"},{"secret":false,"value":"Build and run","name":"system.jobDisplayName"},{"secret":false,"value":"30","name":"build.buildId"},{"secret":false,"value":"Private","name":"system.jobParallelismTag"},{"secret":false,"value":"refs/heads/dev","name":"build.sourceBranch"},{"secret":false,"value":"/opt/myagent","name":"agent.homedirectory"},{"secret":false,"value":"/opt/myagent/_work","name":"system.workfolder"},{"secret":false,"value":"281fb954-634f-515e-8a6c-37ef435b970e","name":"system.taskInstanceId"},{"secret":false,"value":"Linux","name":"agent.os"},{"secret":false,"value":"Manual","name":"build.reason"},{"secret":false,"value":"1","name":"System.TotalJobsInPhase"},{"secret":false,"value":"2.164.7","name":"agent.version"},{"secret":false,"value":"Job_1.__default","name":"system.jobIdentifier"},{"secret":false,"value":"1","name":"system.phaseAttempt"},{"secret":false,"value":"/opt/myagent/_work/1/a","name":"system.artifactsdirectory"},{"secret":false,"value":"c8387c8c-9749-4e6f-92c7-a7045f3a0db3","name":"system.planId"},{"secret":false,"value":"/opt/myagent/_work/1/TestResults","name":"common.testresultsdirectory"},{"secret":false,"value":"True","name":"FAKE_DETAILED_ERRORS"},{"secret":false,"value":"/opt/myagent/_work/_temp","name":"agent.TempDirectory"},{"secret":false,"value":"/opt/myagent/_work/1/a","name":"build.stagingdirectory"},{"secret":false,"value":"Hosted","name":"system.servertype"},{"secret":false,"value":"dev","name":"build.sourceBranchName"},{"secret":false,"value":"1","name":"system.stageAttempt"},{"secret":false,"value":"true","name":"agent.disablelogplugin.TestResultLogPlugin"},{"secret":false,"value":"vstfs:///Build/Build/30","name":"build.buildUri"},{"secret":false,"value":"10","name":"agent.id"},{"secret":false,"value":"https://dev.azure.com/sergeysaleen/","name":"system.teamFoundationCollectionUri"},{"secret":false,"value":"Салин Сергей Александрович","name":"build.queuedBy"},{"secret":false,"value":"50a14eb7-3693-4421-8116-4581b1687e7f","name":"system.collectionId"},{"secret":false,"value":"true","name":"system.debug"},{"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-08T17:12:31.6233413Z ##[debug]which '/usr/bin/dotnet'
2020-02-08T17:12:31.6238575Z ##[debug]found: '/usr/bin/dotnet'
2020-02-08T17:12:31.6272114Z ##[debug]which '/usr/bin/dotnet'
2020-02-08T17:12:31.6274827Z ##[debug]found: '/usr/bin/dotnet'
2020-02-08T17:12:31.6306069Z ##[debug]/usr/bin/dotnet arg: /opt/myagent/_work/_tool/fake/5.19.0/x64/fake.dll run "build.fsx" --parallel 3 -t Build
2020-02-08T17:12:31.6309240Z ##[debug]/usr/bin/dotnet arg: /opt/myagent/_work/_tool/fake/5.19.0/x64/fake.dll run "build.fsx" --parallel 3 -t Build
2020-02-08T17:12:31.6322405Z ##[debug]exec tool: /usr/bin/dotnet
2020-02-08T17:12:31.6324382Z ##[debug]exec tool: /usr/bin/dotnet
2020-02-08T17:12:31.6326455Z ##[debug]arguments:
2020-02-08T17:12:31.6328348Z ##[debug]arguments:
2020-02-08T17:12:31.6331012Z ##[debug]   /opt/myagent/_work/_tool/fake/5.19.0/x64/fake.dll
2020-02-08T17:12:31.6332937Z ##[debug]   /opt/myagent/_work/_tool/fake/5.19.0/x64/fake.dll
2020-02-08T17:12:31.6335003Z ##[debug]   run
2020-02-08T17:12:31.6347400Z ##[debug]   run
2020-02-08T17:12:31.6351114Z ##[debug]   build.fsx
2020-02-08T17:12:31.6354146Z ##[debug]   build.fsx
2020-02-08T17:12:31.6357692Z ##[debug]   --parallel
2020-02-08T17:12:31.6361321Z ##[debug]   --parallel
2020-02-08T17:12:31.6364072Z ##[debug]   3
2020-02-08T17:12:31.6366542Z ##[debug]   3
2020-02-08T17:12:31.6369145Z ##[debug]   -t
2020-02-08T17:12:31.6371768Z ##[debug]   -t
2020-02-08T17:12:31.6373974Z ##[debug]   Build
2020-02-08T17:12:31.6376613Z ##[debug]   Build
2020-02-08T17:12:31.6386144Z [command]/usr/bin/dotnet /opt/myagent/_work/_tool/fake/5.19.0/x64/fake.dll run build.fsx --parallel 3 -t Build
2020-02-08T17:12:33.3383583Z Error while parsing command line, usage is:
2020-02-08T17:12:33.3398037Z 
2020-02-08T17:12:33.3398525Z General:
2020-02-08T17:12:33.3398877Z 
2020-02-08T17:12:33.3399375Z   Fake command line is devided into runtime and script arguments.
2020-02-08T17:12:33.3400278Z   Runtime arguments control compilation and processing of the script,
2020-02-08T17:12:33.3400678Z   while script arguments are specific for the script or provided by
2020-02-08T17:12:33.3401304Z   a NuGet package.
2020-02-08T17:12:33.3404108Z   In most use cases you use the "Fake.Core.Target"-Package and therefore
2020-02-08T17:12:33.3404572Z   inherit the corresponding command line interface. While these arguments
2020-02-08T17:12:33.3405031Z   are not strictly part of the runtime we still show both below to
2020-02-08T17:12:33.3405387Z   make it easier for newcomers.
2020-02-08T17:12:33.3405706Z 
2020-02-08T17:12:33.3408261Z  -- RUNTIME ARGUMENTS SECTION --
2020-02-08T17:12:33.3408677Z 
2020-02-08T17:12:33.3411475Z 
2020-02-08T17:12:33.3411905Z Usage:
2020-02-08T17:12:33.3412669Z   fake.exe [fake_opts] run [run_opts] [<script.fsx>] [--] [<scriptargs>...]
2020-02-08T17:12:33.3413413Z   fake.exe [fake_opts] build [build_opts] [--] [<scriptargs>...]
2020-02-08T17:12:33.3414128Z   fake.exe --version
2020-02-08T17:12:33.3414886Z   fake.exe --help | -h
2020-02-08T17:12:33.3415276Z 
2020-02-08T17:12:33.3415651Z Fake Options [fake_opts]:
2020-02-08T17:12:33.3420138Z   -v, --verbose [*]     Verbose (can be used multiple times)
2020-02-08T17:12:33.3420507Z                         Is ignored if -s is used.
2020-02-08T17:12:33.3420804Z                         * -v: Log verbose but only for FAKE
2020-02-08T17:12:33.3421096Z                         * -vv: Log verbose for Paket as well
2020-02-08T17:12:33.3485393Z   -s, --silent          Be silent, use this option if you need to pipe your output into another tool or need some additional processing.                  
2020-02-08T17:12:33.3485904Z 
2020-02-08T17:12:33.3486215Z Fake Run Options [run_opts]:
2020-02-08T17:12:33.3486904Z   -d, --debug           Debug the script.
2020-02-08T17:12:33.3487536Z   -n, --nocache         Disable fake cache for this run.
2020-02-08T17:12:33.3488425Z   -p, --partial-restore
2020-02-08T17:12:33.3488936Z                         Only restore the required group instead of a full restore, 
2020-02-08T17:12:33.3489213Z                         can be set globally by setting the environment variable FAKE_PARTIAL_RESTORE to true.
2020-02-08T17:12:33.3489754Z   --fsiargs <fsiargs> [*]  Arguments passed to the f# interactive.
2020-02-08T17:12:33.3490143Z 
2020-02-08T17:12:33.3490415Z Fake Build Options [build_opts]:
2020-02-08T17:12:33.3490930Z   -d, --debug           Debug the script.
2020-02-08T17:12:33.3491574Z   -n, --nocache         Disable fake cache for this run.
2020-02-08T17:12:33.3492195Z   -p, --partial-restore
2020-02-08T17:12:33.3492951Z                         Only restore the required group instead of a full restore, 
2020-02-08T17:12:33.3493244Z                         can be set globally by setting the environment variable FAKE_PARTIAL_RESTORE to true.
2020-02-08T17:12:33.3493811Z   --fsiargs <fsiargs> [*]  Arguments passed to the f# interactive.
2020-02-08T17:12:33.3494640Z   -f, --script <script.fsx>
2020-02-08T17:12:33.3495045Z                         The script to execute (defaults to `build.fsx`).
2020-02-08T17:12:33.3495257Z 
2020-02-08T17:12:33.3495463Z 
2020-02-08T17:12:33.3495969Z  -- SCRIPT ARGUMENTS SECTION --
2020-02-08T17:12:33.3496255Z 
2020-02-08T17:12:33.3496792Z THIS SECTION ONLY APPLIES IF YOU USE THE 'Fake.Core.Target' PACKAGE!
2020-02-08T17:12:33.3497085Z You can use the following arguments in place of `<scriptargs>`:
2020-02-08T17:12:33.3497403Z 
2020-02-08T17:12:33.3498156Z Usage:
2020-02-08T17:12:33.3498500Z   fake-run --list
2020-02-08T17:12:33.3498769Z   fake-run --write-info <file>
2020-02-08T17:12:33.3499133Z   fake-run --version
2020-02-08T17:12:33.3499391Z   fake-run --help | -h
2020-02-08T17:12:33.3499690Z   fake-run [target_opts] [target <target>] [--] [<targetargs>...]
2020-02-08T17:12:33.3499731Z 
2020-02-08T17:12:33.3499850Z Target Module Options [target_opts]:
2020-02-08T17:12:33.3500243Z     -t, --target <target>
2020-02-08T17:12:33.3500353Z                           Run the given target (ignored if positional
2020-02-08T17:12:33.3500936Z argument 'target' is given)
2020-02-08T17:12:33.3501259Z     -e, --environment-variable <keyval> [*]
2020-02-08T17:12:33.3501567Z                           Set an environment variable. Use 'key=val'.
2020-02-08T17:12:33.3501875Z Consider using regular arguments, see https://fake.build/core-targets.html
2020-02-08T17:12:33.3502192Z     -s, --single-target    Run only the specified target.
2020-02-08T17:12:33.3502494Z     -p, --parallel <num>  Run parallel with the given number of tasks.
2020-02-08T17:12:33.3502534Z 
2020-02-08T17:12:33.3502574Z Example:
2020-02-08T17:12:33.3502685Z 
2020-02-08T17:12:33.3502728Z To use verbose mode (from [fake_opts]) and print all
2020-02-08T17:12:33.3503024Z targets use "fake -v build -- --list". Because "--list" 
2020-02-08T17:12:33.3503319Z doesn't conflict with any of the [build_opts], you can use 
2020-02-08T17:12:33.3503604Z "fake -v build --list"
2020-02-08T17:12:33.3708178Z -> TypeInitializationException: The type initializer for '<StartupCode$Paket-Core>.$Paket.Utils' threw an exception.
2020-02-08T17:12:33.4888801Z -> ArgumentNullException: Value cannot be null.
2020-02-08T17:12:33.4889831Z    Parameter name: path1
2020-02-08T17:12:33.4986483Z ##[debug]rc:1
2020-02-08T17:12:33.4988770Z ##[debug]rc:1
2020-02-08T17:12:33.4991082Z ##[debug]success:false
2020-02-08T17:12:33.4993030Z ##[debug]success:false
2020-02-08T17:12:33.5160383Z ##[error]/usr/bin/dotnet failed with return code: 1
2020-02-08T17:12:33.5176838Z ##[debug]Processed: ##vso[task.issue type=error;]/usr/bin/dotnet failed with return code: 1
2020-02-08T17:12:33.5177210Z ##[debug]task result: Failed
2020-02-08T17:12:33.5177741Z ##[error]/usr/bin/dotnet failed with return code: 1
2020-02-08T17:12:33.5178106Z ##[debug]Processed: ##vso[task.issue type=error;]/usr/bin/dotnet failed with return code: 1
2020-02-08T17:12:33.5178937Z ##[debug]Processed: ##vso[task.complete result=Failed;]/usr/bin/dotnet failed with return code: 1
2020-02-08T17:12:33.5427007Z ##[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-08T17:12:33.5432483Z ##[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-08T17:12:33.5435027Z ##[section]Finishing: Execute the build.fsx FAKE 5 script
matthid commented 4 years ago

Sorry, can you try with a lower case 't' in 'true'?

2020-02-08T17:12:31.6151612Z ##[debug]FAKE_DETAILED_ERRORS=True

Sadly it didn't include any additional output

BlooDCrescent commented 4 years ago

Sure

2020-02-09T09:48:45.8385659Z ##[debug]Evaluating condition for step: 'Execute the build.fsx FAKE 5 script'
2020-02-09T09:48:45.8386499Z ##[debug]Evaluating: succeeded()
2020-02-09T09:48:45.8386698Z ##[debug]Evaluating succeeded:
2020-02-09T09:48:45.8386918Z ##[debug]=> True
2020-02-09T09:48:45.8387286Z ##[debug]Result: True
2020-02-09T09:48:45.8387568Z ##[section]Starting: Execute the build.fsx FAKE 5 script
2020-02-09T09:48:45.8393126Z ==============================================================================
2020-02-09T09:48:45.8393192Z Task         : FAKE 5 Runner
2020-02-09T09:48:45.8393309Z Description  : Runs a FAKE 5 build script.
2020-02-09T09:48:45.8393358Z Version      : 1.0.8
2020-02-09T09:48:45.8393396Z Author       : Matthias Dittrich
2020-02-09T09:48:45.8393494Z Help         : This task downloads and caches the FAKE runner and executes the FAKE 5 build script specified.
2020-02-09T09:48:45.8393551Z ==============================================================================
2020-02-09T09:48:46.0043545Z ##[debug]agent.TempDirectory=/opt/myagent/_work/_temp
2020-02-09T09:48:46.0077307Z ##[debug]loading inputs and endpoints
2020-02-09T09:48:46.0083824Z ##[debug]loading INPUT_FAKEVERSION
2020-02-09T09:48:46.0099125Z ##[debug]loading INPUT_FAKESCRIPT
2020-02-09T09:48:46.0103921Z ##[debug]loading INPUT_SCRIPTARGUMENTS
2020-02-09T09:48:46.0107718Z ##[debug]loading INPUT_WORKINGDIRECTORY
2020-02-09T09:48:46.0114695Z ##[debug]loading INPUT_PREVENTSECRETS
2020-02-09T09:48:46.0118459Z ##[debug]loading INPUT_FAILONSTDERROR
2020-02-09T09:48:46.0122057Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2020-02-09T09:48:46.0125934Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2020-02-09T09:48:46.0129178Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2020-02-09T09:48:46.0136857Z ##[debug]loaded 9
2020-02-09T09:48:46.0155121Z ##[debug]Agent.ProxyUrl=undefined
2020-02-09T09:48:46.0158415Z ##[debug]Agent.CAInfo=undefined
2020-02-09T09:48:46.0160560Z ##[debug]Agent.ClientCert=undefined
2020-02-09T09:48:46.0162881Z ##[debug]Agent.SkipCertValidation=undefined
2020-02-09T09:48:46.0606160Z ##[debug]Agent.ProxyUrl=undefined
2020-02-09T09:48:46.0614032Z ##[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-09T09:48:46.0617615Z ##[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-09T09:48:46.0620172Z ##[debug]system.culture=en-US
2020-02-09T09:48:46.0669508Z setup paket credential manager
2020-02-09T09:48:46.0684446Z ##[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-09T09:48:46.0688537Z ##[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-09T09:48:46.0720555Z ##[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-09T09:48:46.0731479Z SYSTEMVSSCONNECTION exists true
2020-02-09T09:48:46.0733439Z ##[debug]SYSTEMVSSCONNECTION exists true
2020-02-09T09:48:46.0736092Z ##[debug]set PAKET_VSS_NUGET_ACCESSTOKEN=***
2020-02-09T09:48:46.0740337Z ##[debug]Processed: ##vso[task.setvariable variable=PAKET_VSS_NUGET_ACCESSTOKEN;issecret=false;]***
2020-02-09T09:48:46.0757894Z (node:15403) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-09T09:48:46.0760661Z (node:15403) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-09T09:48:46.0762976Z (node:15403) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-09T09:48:46.0765155Z (node:15403) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-09T09:48:46.0767224Z (node:15403) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-09T09:48:46.0770156Z (node:15403) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-09T09:48:46.0772632Z (node:15403) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-09T09:48:46.0775018Z (node:15403) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-09T09:48:46.0777342Z (node:15403) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-02-09T09:48:46.0788361Z ##[debug]FakeScript=/opt/myagent/_work/1/s/build.fsx
2020-02-09T09:48:46.0790957Z ##[debug]Using scriptPath '/opt/myagent/_work/1/s/build.fsx'.
2020-02-09T09:48:46.0794783Z ##[debug]WorkingDirectory=/opt/myagent/_work/1/s
2020-02-09T09:48:46.0798239Z ##[debug]ScriptArguments=--parallel 3 -t Build
2020-02-09T09:48:46.0800232Z ##[debug]FakeArguments=null
2020-02-09T09:48:46.0803316Z ##[debug]FakeVersion=5.19.0
2020-02-09T09:48:46.0807660Z ##[debug]PreventSecrets=false
2020-02-09T09:48:46.0810390Z ##[debug]FailOnStdError=false
2020-02-09T09:48:46.0819213Z ##[debug]which 'dotnet'
2020-02-09T09:48:46.0827944Z ##[debug]found: '/usr/bin/dotnet'
2020-02-09T09:48:46.0833601Z ##[debug]isExplicit: 5.19.0
2020-02-09T09:48:46.0836132Z ##[debug]explicit? true
2020-02-09T09:48:46.0839430Z ##[debug]Agent.Version=2.164.7
2020-02-09T09:48:46.0841796Z ##[debug]Agent.ToolsDirectory=/opt/myagent/_work/_tool
2020-02-09T09:48:46.0843764Z ##[debug]checking cache: /opt/myagent/_work/_tool/fake/5.19.0/x64
2020-02-09T09:48:46.0897290Z Found tool in cache: fake 5.19.0 x64
2020-02-09T09:48:46.0910985Z ##[debug]agent.acceptteeeula=True
2020-02-09T09:48:46.0922147Z ##[debug]agent.osarchitecture=X64
2020-02-09T09:48:46.0924320Z ##[debug]agent.TempDirectory=/opt/myagent/_work/_temp
2020-02-09T09:48:46.0926223Z ##[debug]system.collectionUri=https://dev.azure.com/sergeysaleen/
2020-02-09T09:48:46.0928651Z ##[debug]agent.os=Linux
2020-02-09T09:48:46.0930782Z ##[debug]System.TotalJobsInPhase=1
2020-02-09T09:48:46.0933232Z ##[debug]build.sourceVersion=6369c19a50231c64815c7d6e4dee6347b4ddcf71
2020-02-09T09:48:46.0935459Z ##[debug]system.teamFoundationCollectionUri=https://dev.azure.com/sergeysaleen/
2020-02-09T09:48:46.0938323Z ##[debug]system.stageId=96ac2280-8cb4-5df5-99de-dd2da759617d
2020-02-09T09:48:46.0940625Z ##[debug]system.jobIdentifier=Job_1.__default
2020-02-09T09:48:46.0942801Z ##[debug]agent.ToolsDirectory=/opt/myagent/_work/_tool
2020-02-09T09:48:46.0945138Z ##[debug]system.pullRequest.isFork=False
2020-02-09T09:48:46.0947592Z ##[debug]build.buildId=31
2020-02-09T09:48:46.0949887Z ##[debug]system.definitionName=The-Ego-CI
2020-02-09T09:48:46.0951259Z ##[debug]agent.RootDirectory=/opt/myagent/_work
2020-02-09T09:48:46.0957056Z ##[debug]System.JobPositionInPhase=1
2020-02-09T09:48:46.0959253Z ##[debug]system.phaseDisplayName=Build and run
2020-02-09T09:48:46.0960587Z ##[debug]agent.name=agent
2020-02-09T09:48:46.0962442Z ##[debug]system.jobDisplayName=Build and run
2020-02-09T09:48:46.0963852Z ##[debug]agent.homedirectory=/opt/myagent
2020-02-09T09:48:46.0965607Z ##[debug]MSDEPLOY_HTTP_USER_AGENT=VSTS_50a14eb7-3693-4421-8116-4581b1687e7f_build_2_0
2020-02-09T09:48:46.0966933Z ##[debug]system.defaultworkingdirectory=/opt/myagent/_work/1/s
2020-02-09T09:48:46.0968335Z ##[debug]system.stageName=__default
2020-02-09T09:48:46.0969703Z ##[debug]agent.jobname=Build and run
2020-02-09T09:48:46.0971029Z ##[debug]system.jobName=__default
2020-02-09T09:48:46.0972292Z ##[debug]system.artifactsdirectory=/opt/myagent/_work/1/a
2020-02-09T09:48:46.0973621Z ##[debug]system.debug=true
2020-02-09T09:48:46.0975228Z ##[debug]build.repository.uri=https://sergeysaleen@dev.azure.com/sergeysaleen/The-Ego/_git/The-Ego
2020-02-09T09:48:46.0976871Z ##[debug]build.requestedForId=ee4b5751-a933-4d94-92a2-880370494fe1
2020-02-09T09:48:46.0978420Z ##[debug]system.culture=en-US
2020-02-09T09:48:46.0983333Z ##[debug]system.teamProject=The-Ego
2020-02-09T09:48:46.0984784Z ##[debug]agent.id=10
2020-02-09T09:48:46.0986180Z ##[debug]build.requestedForEmail=sergeysaleen@outlook.com
2020-02-09T09:48:46.0987452Z ##[debug]common.testresultsdirectory=/opt/myagent/_work/1/TestResults
2020-02-09T09:48:46.0989399Z ##[debug]build.binariesdirectory=/opt/myagent/_work/1/b
2020-02-09T09:48:46.0990906Z ##[debug]VSTS_PROCESS_LOOKUP_ID=vsts_7dcee1a6-9dc0-4c03-af09-d63e86f11e81
2020-02-09T09:48:46.0992494Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_50a14eb7-3693-4421-8116-4581b1687e7f_build_2_0
2020-02-09T09:48:46.0993782Z ##[debug]system.servertype=Hosted
2020-02-09T09:48:46.0995495Z ##[debug]build.definitionName=The-Ego-CI
2020-02-09T09:48:46.0996785Z ##[debug]agent.version=2.164.7
2020-02-09T09:48:46.0998379Z ##[debug]system.pipelineStartTime=2020-02-09 09:48:35+00:00
2020-02-09T09:48:46.1000193Z ##[debug]build.queuedBy=Салин Сергей Александрович
2020-02-09T09:48:46.1005065Z ##[debug]system.workfolder=/opt/myagent/_work
2020-02-09T09:48:46.1006451Z ##[debug]agent.retainDefaultEncoding=false
2020-02-09T09:48:46.1007823Z ##[debug]system.jobAttempt=1
2020-02-09T09:48:46.1009164Z ##[debug]system.phaseName=Job_1
2020-02-09T09:48:46.1010982Z ##[debug]system.timelineId=08d4728a-f7f1-437d-8c31-bcce5ba83593
2020-02-09T09:48:46.1012876Z ##[debug]system.jobId=275f1d19-1bd8-5591-b06b-07d489ea915a
2020-02-09T09:48:46.1014173Z ##[debug]agent.machinename=ya
2020-02-09T09:48:46.1015664Z ##[debug]GIT_TERMINAL_PROMPT=0
2020-02-09T09:48:46.1016989Z ##[debug]system.taskDefinitionsUri=https://dev.azure.com/sergeysaleen/
2020-02-09T09:48:46.1018368Z ##[debug]build.repository.provider=TfsGit
2020-02-09T09:48:46.1019909Z ##[debug]build.requestedFor=Салин Сергей Александрович
2020-02-09T09:48:46.1021518Z ##[debug]FAKE_DETAILED_ERRORS=true
2020-02-09T09:48:46.1022792Z ##[debug]system.taskDisplayName=Execute the build.fsx FAKE 5 script
2020-02-09T09:48:46.1024457Z ##[debug]system.phaseId=2f97f1d8-943c-5cda-8782-cbcebf2b3d67
2020-02-09T09:48:46.1025813Z ##[debug]build.containerId=1794303
2020-02-09T09:48:46.1027173Z ##[debug]build.buildUri=vstfs:///Build/Build/31
2020-02-09T09:48:46.1028653Z ##[debug]build.queuedById=ee4b5751-a933-4d94-92a2-880370494fe1
2020-02-09T09:48:46.1030107Z ##[debug]agent.readOnlyVariables=true
2020-02-09T09:48:46.1031398Z ##[debug]build.buildNumber=31
2020-02-09T09:48:46.1032969Z ##[debug]build.sourceVersionMessage=Removed some junk (not needed for now) and counter works
2020-02-09T09:48:46.1034543Z ##[debug]system.planId=08d4728a-f7f1-437d-8c31-bcce5ba83593
2020-02-09T09:48:46.1035993Z ##[debug]system.taskInstanceName=FAKE5
2020-02-09T09:48:46.1037265Z ##[debug]build.definitionVersion=29
2020-02-09T09:48:46.1038607Z ##[debug]system.definitionId=2
2020-02-09T09:48:46.1039989Z ##[debug]task.displayname=Execute the build.fsx FAKE 5 script
2020-02-09T09:48:46.1044885Z ##[debug]build.repository.localpath=/opt/myagent/_work/1/s
2020-02-09T09:48:46.1046193Z ##[debug]build.reason=Manual
2020-02-09T09:48:46.1047787Z ##[debug]system.teamProjectId=5cf371e1-400b-4778-9c9d-51e169b8d112
2020-02-09T09:48:46.1049136Z ##[debug]pipeline.workspace=/opt/myagent/_work/1
2020-02-09T09:48:46.1050487Z ##[debug]system.hosttype=build
2020-02-09T09:48:46.1051741Z ##[debug]system.phaseAttempt=1
2020-02-09T09:48:46.1053229Z ##[debug]build.sourceBranch=refs/heads/dev
2020-02-09T09:48:46.1055028Z ##[debug]system.taskInstanceId=281fb954-634f-515e-8a6c-37ef435b970e
2020-02-09T09:48:46.1056494Z ##[debug]build.sourceBranchName=dev
2020-02-09T09:48:46.1057753Z ##[debug]system=build
2020-02-09T09:48:46.1059188Z ##[debug]system.stageDisplayName=__default
2020-02-09T09:48:46.1071674Z ##[debug]agent.jobstatus=Succeeded
2020-02-09T09:48:46.1083670Z ##[debug]system.jobParallelismTag=Private
2020-02-09T09:48:46.1086199Z ##[debug]system.collectionId=50a14eb7-3693-4421-8116-4581b1687e7f
2020-02-09T09:48:46.1087653Z ##[debug]agent.disablelogplugin.TestResultLogPlugin=true
2020-02-09T09:48:46.1089179Z ##[debug]build.repository.id=60b64fae-1979-4bdd-9869-1125bdf2b50c
2020-02-09T09:48:46.1098311Z ##[debug]build.sourceVersionAuthor=Sergey
2020-02-09T09:48:46.1100452Z ##[debug]system.stageAttempt=1
2020-02-09T09:48:46.1102396Z ##[debug]agent.builddirectory=/opt/myagent/_work/1
2020-02-09T09:48:46.1103760Z ##[debug]agent.workfolder=/opt/myagent/_work
2020-02-09T09:48:46.1105592Z ##[debug]build.artifactstagingdirectory=/opt/myagent/_work/1/a
2020-02-09T09:48:46.1107276Z ##[debug]build.Repository.name=The-Ego
2020-02-09T09:48:46.1108580Z ##[debug]system.isScheduled=False
2020-02-09T09:48:46.1109908Z ##[debug]system.TeamFoundationServerUri=https://dev.azure.com/sergeysaleen/
2020-02-09T09:48:46.1111179Z ##[debug]agent.disablelogplugin.TestFilePublisherPlugin=true
2020-02-09T09:48:46.1112585Z ##[debug]build.sourcesdirectory=/opt/myagent/_work/1/s
2020-02-09T09:48:46.1113845Z ##[debug]build.stagingdirectory=/opt/myagent/_work/1/a
2020-02-09T09:48:46.1115578Z ##[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-09T09:48:46.1117848Z ##[debug]PAKET_VSS_NUGET_ACCESSTOKEN=***
2020-02-09T09:48:46.1129751Z ##[debug]FAKE_VSTS_VAULT_VARIABLES: {"keyFile":"/opt/myagent/_work/1/s/.fake/build.fsx/.secret","iv":"S+yXdq3/uKyxXLFl1AEuaA==","values":[{"secret":false,"value":"True","name":"agent.acceptteeeula"},{"secret":false,"value":"X64","name":"agent.osarchitecture"},{"secret":false,"value":"/opt/myagent/_work/_temp","name":"agent.TempDirectory"},{"secret":false,"value":"https://dev.azure.com/sergeysaleen/","name":"system.collectionUri"},{"secret":false,"value":"Linux","name":"agent.os"},{"secret":false,"value":"1","name":"System.TotalJobsInPhase"},{"secret":false,"value":"6369c19a50231c64815c7d6e4dee6347b4ddcf71","name":"build.sourceVersion"},{"secret":false,"value":"https://dev.azure.com/sergeysaleen/","name":"system.teamFoundationCollectionUri"},{"secret":false,"value":"96ac2280-8cb4-5df5-99de-dd2da759617d","name":"system.stageId"},{"secret":false,"value":"Job_1.__default","name":"system.jobIdentifier"},{"secret":false,"value":"/opt/myagent/_work/_tool","name":"agent.ToolsDirectory"},{"secret":false,"value":"False","name":"system.pullRequest.isFork"},{"secret":false,"value":"31","name":"build.buildId"},{"secret":false,"value":"The-Ego-CI","name":"system.definitionName"},{"secret":false,"value":"/opt/myagent/_work","name":"agent.RootDirectory"},{"secret":false,"value":"1","name":"System.JobPositionInPhase"},{"secret":false,"value":"Build and run","name":"system.phaseDisplayName"},{"secret":false,"value":"agent","name":"agent.name"},{"secret":false,"value":"Build and run","name":"system.jobDisplayName"},{"secret":false,"value":"/opt/myagent","name":"agent.homedirectory"},{"secret":false,"value":"VSTS_50a14eb7-3693-4421-8116-4581b1687e7f_build_2_0","name":"MSDEPLOY_HTTP_USER_AGENT"},{"secret":false,"value":"/opt/myagent/_work/1/s","name":"system.defaultworkingdirectory"},{"secret":false,"value":"__default","name":"system.stageName"},{"secret":false,"value":"Build and run","name":"agent.jobname"},{"secret":false,"value":"__default","name":"system.jobName"},{"secret":false,"value":"/opt/myagent/_work/1/a","name":"system.artifactsdirectory"},{"secret":false,"value":"true","name":"system.debug"},{"secret":false,"value":"https://sergeysaleen@dev.azure.com/sergeysaleen/The-Ego/_git/The-Ego","name":"build.repository.uri"},{"secret":false,"value":"ee4b5751-a933-4d94-92a2-880370494fe1","name":"build.requestedForId"},{"secret":false,"value":"en-US","name":"system.culture"},{"secret":false,"value":"The-Ego","name":"system.teamProject"},{"secret":false,"value":"10","name":"agent.id"},{"secret":false,"value":"sergeysaleen@outlook.com","name":"build.requestedForEmail"},{"secret":false,"value":"/opt/myagent/_work/1/TestResults","name":"common.testresultsdirectory"},{"secret":false,"value":"/opt/myagent/_work/1/b","name":"build.binariesdirectory"},{"secret":false,"value":"vsts_7dcee1a6-9dc0-4c03-af09-d63e86f11e81","name":"VSTS_PROCESS_LOOKUP_ID"},{"secret":false,"value":"VSTS_50a14eb7-3693-4421-8116-4581b1687e7f_build_2_0","name":"AZURE_HTTP_USER_AGENT"},{"secret":false,"value":"Hosted","name":"system.servertype"},{"secret":false,"value":"The-Ego-CI","name":"build.definitionName"},{"secret":false,"value":"2.164.7","name":"agent.version"},{"secret":false,"value":"2020-02-09 09:48:35+00:00","name":"system.pipelineStartTime"},{"secret":false,"value":"Салин Сергей Александрович","name":"build.queuedBy"},{"secret":false,"value":"/opt/myagent/_work","name":"system.workfolder"},{"secret":false,"value":"false","name":"agent.retainDefaultEncoding"},{"secret":false,"value":"1","name":"system.jobAttempt"},{"secret":false,"value":"Job_1","name":"system.phaseName"},{"secret":false,"value":"08d4728a-f7f1-437d-8c31-bcce5ba83593","name":"system.timelineId"},{"secret":false,"value":"275f1d19-1bd8-5591-b06b-07d489ea915a","name":"system.jobId"},{"secret":false,"value":"ya","name":"agent.machinename"},{"secret":false,"value":"0","name":"GIT_TERMINAL_PROMPT"},{"secret":false,"value":"https://dev.azure.com/sergeysaleen/","name":"system.taskDefinitionsUri"},{"secret":false,"value":"TfsGit","name":"build.repository.provider"},{"secret":false,"value":"Салин Сергей Александрович","name":"build.requestedFor"},{"secret":false,"value":"true","name":"FAKE_DETAILED_ERRORS"},{"secret":false,"value":"Execute the build.fsx FAKE 5 script","name":"system.taskDisplayName"},{"secret":false,"value":"2f97f1d8-943c-5cda-8782-cbcebf2b3d67","name":"system.phaseId"},{"secret":false,"value":"1794303","name":"build.containerId"},{"secret":false,"value":"vstfs:///Build/Build/31","name":"build.buildUri"},{"secret":false,"value":"ee4b5751-a933-4d94-92a2-880370494fe1","name":"build.queuedById"},{"secret":false,"value":"true","name":"agent.readOnlyVariables"},{"secret":false,"value":"31","name":"build.buildNumber"},{"secret":false,"value":"Removed some junk (not needed for now) and counter works","name":"build.sourceVersionMessage"},{"secret":false,"value":"08d4728a-f7f1-437d-8c31-bcce5ba83593","name":"system.planId"},{"secret":false,"value":"FAKE5","name":"system.taskInstanceName"},{"secret":false,"value":"29","name":"build.definitionVersion"},{"secret":false,"value":"2","name":"system.definitionId"},{"secret":false,"value":"Execute the build.fsx FAKE 5 script","name":"task.displayname"},{"secret":false,"value":"/opt/myagent/_work/1/s","name":"build.repository.localpath"},{"secret":false,"value":"Manual","name":"build.reason"},{"secret":false,"value":"5cf371e1-400b-4778-9c9d-51e169b8d112","name":"system.teamProjectId"},{"secret":false,"value":"/opt/myagent/_work/1","name":"pipeline.workspace"},{"secret":false,"value":"build","name":"system.hosttype"},{"secret":false,"value":"1","name":"system.phaseAttempt"},{"secret":false,"value":"refs/heads/dev","name":"build.sourceBranch"},{"secret":false,"value":"281fb954-634f-515e-8a6c-37ef435b970e","name":"system.taskInstanceId"},{"secret":false,"value":"dev","name":"build.sourceBranchName"},{"secret":false,"value":"build","name":"system"},{"secret":false,"value":"__default","name":"system.stageDisplayName"},{"secret":false,"value":"Succeeded","name":"agent.jobstatus"},{"secret":false,"value":"Private","name":"system.jobParallelismTag"},{"secret":false,"value":"50a14eb7-3693-4421-8116-4581b1687e7f","name":"system.collectionId"},{"secret":false,"value":"true","name":"agent.disablelogplugin.TestResultLogPlugin"},{"secret":false,"value":"60b64fae-1979-4bdd-9869-1125bdf2b50c","name":"build.repository.id"},{"secret":false,"value":"Sergey","name":"build.sourceVersionAuthor"},{"secret":false,"value":"1","name":"system.stageAttempt"},{"secret":false,"value":"/opt/myagent/_work/1","name":"agent.builddirectory"},{"secret":false,"value":"/opt/myagent/_work","name":"agent.workfolder"},{"secret":false,"value":"/opt/myagent/_work/1/a","name":"build.artifactstagingdirectory"},{"secret":false,"value":"The-Ego","name":"build.Repository.name"},{"secret":false,"value":"False","name":"system.isScheduled"},{"secret":false,"value":"https://dev.azure.com/sergeysaleen/","name":"system.TeamFoundationServerUri"},{"secret":false,"value":"true","name":"agent.disablelogplugin.TestFilePublisherPlugin"},{"secret":false,"value":"/opt/myagent/_work/1/s","name":"build.sourcesdirectory"},{"secret":false,"value":"/opt/myagent/_work/1/a","name":"build.stagingdirectory"},{"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-09T09:48:46.1137619Z ##[debug]which '/usr/bin/dotnet'
2020-02-09T09:48:46.1139963Z ##[debug]found: '/usr/bin/dotnet'
2020-02-09T09:48:46.1186189Z ##[debug]which '/usr/bin/dotnet'
2020-02-09T09:48:46.1188750Z ##[debug]found: '/usr/bin/dotnet'
2020-02-09T09:48:46.1217463Z ##[debug]/usr/bin/dotnet arg: /opt/myagent/_work/_tool/fake/5.19.0/x64/fake.dll run "build.fsx" --parallel 3 -t Build
2020-02-09T09:48:46.1220006Z ##[debug]/usr/bin/dotnet arg: /opt/myagent/_work/_tool/fake/5.19.0/x64/fake.dll run "build.fsx" --parallel 3 -t Build
2020-02-09T09:48:46.1231903Z ##[debug]exec tool: /usr/bin/dotnet
2020-02-09T09:48:46.1233606Z ##[debug]exec tool: /usr/bin/dotnet
2020-02-09T09:48:46.1235437Z ##[debug]arguments:
2020-02-09T09:48:46.1237036Z ##[debug]arguments:
2020-02-09T09:48:46.1239380Z ##[debug]   /opt/myagent/_work/_tool/fake/5.19.0/x64/fake.dll
2020-02-09T09:48:46.1241243Z ##[debug]   /opt/myagent/_work/_tool/fake/5.19.0/x64/fake.dll
2020-02-09T09:48:46.1243066Z ##[debug]   run
2020-02-09T09:48:46.1244755Z ##[debug]   run
2020-02-09T09:48:46.1246445Z ##[debug]   build.fsx
2020-02-09T09:48:46.1248013Z ##[debug]   build.fsx
2020-02-09T09:48:46.1249928Z ##[debug]   --parallel
2020-02-09T09:48:46.1252552Z ##[debug]   --parallel
2020-02-09T09:48:46.1254817Z ##[debug]   3
2020-02-09T09:48:46.1256746Z ##[debug]   3
2020-02-09T09:48:46.1258884Z ##[debug]   -t
2020-02-09T09:48:46.1261106Z ##[debug]   -t
2020-02-09T09:48:46.1263089Z ##[debug]   Build
2020-02-09T09:48:46.1265154Z ##[debug]   Build
2020-02-09T09:48:46.1272462Z [command]/usr/bin/dotnet /opt/myagent/_work/_tool/fake/5.19.0/x64/fake.dll run build.fsx --parallel 3 -t Build
2020-02-09T09:48:47.1959542Z Error while parsing command line, usage is:
2020-02-09T09:48:47.1974829Z 
2020-02-09T09:48:47.1975214Z General:
2020-02-09T09:48:47.1975603Z 
2020-02-09T09:48:47.1975915Z   Fake command line is devided into runtime and script arguments.
2020-02-09T09:48:47.1976662Z   Runtime arguments control compilation and processing of the script,
2020-02-09T09:48:47.1977319Z   while script arguments are specific for the script or provided by
2020-02-09T09:48:47.1977655Z   a NuGet package.
2020-02-09T09:48:47.1980580Z   In most use cases you use the "Fake.Core.Target"-Package and therefore
2020-02-09T09:48:47.1980992Z   inherit the corresponding command line interface. While these arguments
2020-02-09T09:48:47.1981234Z   are not strictly part of the runtime we still show both below to
2020-02-09T09:48:47.1981468Z   make it easier for newcomers.
2020-02-09T09:48:47.1981917Z 
2020-02-09T09:48:47.1984792Z  -- RUNTIME ARGUMENTS SECTION --
2020-02-09T09:48:47.1985210Z 
2020-02-09T09:48:47.1987996Z 
2020-02-09T09:48:47.1988397Z Usage:
2020-02-09T09:48:47.1989034Z   fake.exe [fake_opts] run [run_opts] [<script.fsx>] [--] [<scriptargs>...]
2020-02-09T09:48:47.1989645Z   fake.exe [fake_opts] build [build_opts] [--] [<scriptargs>...]
2020-02-09T09:48:47.1990318Z   fake.exe --version
2020-02-09T09:48:47.1990876Z   fake.exe --help | -h
2020-02-09T09:48:47.1991136Z 
2020-02-09T09:48:47.1991534Z Fake Options [fake_opts]:
2020-02-09T09:48:47.1994746Z   -v, --verbose [*]     Verbose (can be used multiple times)
2020-02-09T09:48:47.1995106Z                         Is ignored if -s is used.
2020-02-09T09:48:47.1995409Z                         * -v: Log verbose but only for FAKE
2020-02-09T09:48:47.1995844Z                         * -vv: Log verbose for Paket as well
2020-02-09T09:48:47.1998927Z   -s, --silent          Be silent, use this option if you need to pipe your output into another tool or need some additional processing.                  
2020-02-09T09:48:47.1998996Z 
2020-02-09T09:48:47.1999142Z Fake Run Options [run_opts]:
2020-02-09T09:48:47.1999470Z   -d, --debug           Debug the script.
2020-02-09T09:48:47.1999772Z   -n, --nocache         Disable fake cache for this run.
2020-02-09T09:48:47.2000348Z   -p, --partial-restore
2020-02-09T09:48:47.2003284Z                         Only restore the required group instead of a full restore, 
2020-02-09T09:48:47.2003362Z                         can be set globally by setting the environment variable FAKE_PARTIAL_RESTORE to true.
2020-02-09T09:48:47.2003771Z   --fsiargs <fsiargs> [*]  Arguments passed to the f# interactive.
2020-02-09T09:48:47.2003913Z 
2020-02-09T09:48:47.2006653Z Fake Build Options [build_opts]:
2020-02-09T09:48:47.2007093Z   -d, --debug           Debug the script.
2020-02-09T09:48:47.2007484Z   -n, --nocache         Disable fake cache for this run.
2020-02-09T09:48:47.2007807Z   -p, --partial-restore
2020-02-09T09:48:47.2007869Z                         Only restore the required group instead of a full restore, 
2020-02-09T09:48:47.2009550Z                         can be set globally by setting the environment variable FAKE_PARTIAL_RESTORE to true.
2020-02-09T09:48:47.2010061Z   --fsiargs <fsiargs> [*]  Arguments passed to the f# interactive.
2020-02-09T09:48:47.2010376Z   -f, --script <script.fsx>
2020-02-09T09:48:47.2012242Z                         The script to execute (defaults to `build.fsx`).
2020-02-09T09:48:47.2013936Z 
2020-02-09T09:48:47.2014014Z 
2020-02-09T09:48:47.2014387Z  -- SCRIPT ARGUMENTS SECTION --
2020-02-09T09:48:47.2014433Z 
2020-02-09T09:48:47.2014942Z THIS SECTION ONLY APPLIES IF YOU USE THE 'Fake.Core.Target' PACKAGE!
2020-02-09T09:48:47.2015029Z You can use the following arguments in place of `<scriptargs>`:
2020-02-09T09:48:47.2015061Z 
2020-02-09T09:48:47.2015101Z Usage:
2020-02-09T09:48:47.2015459Z   fake-run --list
2020-02-09T09:48:47.2015866Z   fake-run --write-info <file>
2020-02-09T09:48:47.2016388Z   fake-run --version
2020-02-09T09:48:47.2018458Z   fake-run --help | -h
2020-02-09T09:48:47.2018911Z   fake-run [target_opts] [target <target>] [--] [<targetargs>...]
2020-02-09T09:48:47.2018961Z 
2020-02-09T09:48:47.2019007Z Target Module Options [target_opts]:
2020-02-09T09:48:47.2019271Z     -t, --target <target>
2020-02-09T09:48:47.2019735Z                           Run the given target (ignored if positional
2020-02-09T09:48:47.2020057Z argument 'target' is given)
2020-02-09T09:48:47.2030002Z     -e, --environment-variable <keyval> [*]
2020-02-09T09:48:47.2030581Z                           Set an environment variable. Use 'key=val'.
2020-02-09T09:48:47.2031345Z Consider using regular arguments, see https://fake.build/core-targets.html
2020-02-09T09:48:47.2031734Z     -s, --single-target    Run only the specified target.
2020-02-09T09:48:47.2042389Z     -p, --parallel <num>  Run parallel with the given number of tasks.
2020-02-09T09:48:47.2042564Z 
2020-02-09T09:48:47.2042616Z Example:
2020-02-09T09:48:47.2042644Z 
2020-02-09T09:48:47.2042686Z To use verbose mode (from [fake_opts]) and print all
2020-02-09T09:48:47.2043219Z targets use "fake -v build -- --list". Because "--list" 
2020-02-09T09:48:47.2043525Z doesn't conflict with any of the [build_opts], you can use 
2020-02-09T09:48:47.2043790Z "fake -v build --list"
2020-02-09T09:48:47.2308821Z -> TypeInitializationException: The type initializer for '<StartupCode$Paket-Core>.$Paket.Utils' threw an exception.
2020-02-09T09:48:47.3564561Z    StackTrace:
2020-02-09T09:48:47.3595630Z         at Program.handleAction(VerboseLevel verboseLevel, CliAction action) in D:\a\1\s\src\app\Fake.netcore\Program.fs:line 216
2020-02-09T09:48:47.3595998Z         at Program.main(String[] args) in D:\a\1\s\src\app\Fake.netcore\Program.fs:line 314
2020-02-09T09:48:47.3600278Z -> ArgumentNullException: Value cannot be null.
2020-02-09T09:48:47.3600708Z    Parameter name: path1
2020-02-09T09:48:47.3611176Z    StackTrace:
2020-02-09T09:48:47.3614438Z         at System.IO.Path.Combine(String path1, String path2)
2020-02-09T09:48:47.3615615Z         at <StartupCode$Paket-Core>.$Paket.Utils..cctor()
2020-02-09T09:48:47.3715616Z ##[debug]rc:1
2020-02-09T09:48:47.3717642Z ##[debug]rc:1
2020-02-09T09:48:47.3719515Z ##[debug]success:false
2020-02-09T09:48:47.3762334Z ##[debug]success:false
2020-02-09T09:48:47.3888274Z ##[error]/usr/bin/dotnet failed with return code: 1
2020-02-09T09:48:47.3900955Z ##[debug]Processed: ##vso[task.issue type=error;]/usr/bin/dotnet failed with return code: 1
2020-02-09T09:48:47.3901282Z ##[debug]task result: Failed
2020-02-09T09:48:47.3901835Z ##[error]/usr/bin/dotnet failed with return code: 1
2020-02-09T09:48:47.3902131Z ##[debug]Processed: ##vso[task.issue type=error;]/usr/bin/dotnet failed with return code: 1
2020-02-09T09:48:47.3902716Z ##[debug]Processed: ##vso[task.complete result=Failed;]/usr/bin/dotnet failed with return code: 1
2020-02-09T09:48:47.4225758Z ##[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-09T09:48:47.4231763Z ##[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-09T09:48:47.4234335Z ##[section]Finishing: Execute the build.fsx FAKE 5 script
matthid commented 4 years ago

I went through the corresponding code-paths. There is not anything suspicious there but given what we know (that it works as non-root) and the linux specific code-path I'd say the most likely scenario is that HOME is unset. Can you please try setting the HOME environment variable to some valid file path and see if that helps and report back? If yes, we maybe need to consider this variable not being available (or at least report a better error). Once confirmed I will move this issue to Paket as I'm pretty sure this will happen with plain paket.exe as well.

Thanks for the quick follow-ups!

BlooDCrescent commented 4 years ago

On my build agent machine HOME is set to /root for root user but when using build agent the variable is not set. After setting HOME variable in Azure DevOps pipeline the error disappears (and after removing paket.lock)

matthid commented 4 years ago

@BlooDCrescent Thanks for confirming. I reported the issue https://github.com/fsprojects/Paket/issues/3791, so I'll close this here.

We could add a workaround here, but we should really fix this at the root. Additionally, I added some logic to FAKE itself to report better errors when paket initialization failed, so it shouldn't take as long in the future to find the root cause.

Again thanks for reporting :)