Azure pipeline Unexpected end of JSON input - azure

I got an Azure yaml pipeline in which there is this step:
- task: QueryAzureDevOpsExtensionVersion#3
displayName: 'Query Extension Version'
inputs:
connectTo: 'VsTeam'
connectedServiceName: 'Marketplace-Admin'
publisherId: '$(publisherId)'
extensionId: '$(extensionId)'
versionAction: 'Patch'
outputVariable: 'Task.Extension.Version'
cwd: '$(Build.SourcesDirectory)/AzurePipelinesTasks'
This step returns the error
##[error]SyntaxError: Unexpected end of JSON input
As far as I know, this error means that a user is trying to parse a response in a wrong way or there might not even be a response, but this is just an already made pipeline step.
How can I fix this issue?
EDIT: this is the output:
##[debug]Evaluating condition for step:
'Query Extension Version'
##[debug]Evaluating: SucceededNode()
##[debug]Evaluating SucceededNode:
##[debug]=> True
##[debug]Result: True
##[section]Starting: Query Extension Version ==============================================================================
Task : Query Extension Version
Description : Queries the current version from the Visual Studio Marketplace
Version : 3.1.119
Author : Microsoft Corporation
Help :
==============================================================================
##[debug]Using node path: /home/vsts/agents/2.209.0/externals/node10/bin/node
##[debug]agent.TempDirectory=/home/vsts/work/_temp
##[debug]loading inputs and endpoints
##[debug]loading INPUT_CONNECTTO
##[debug]loading INPUT_CONNECTEDSERVICENAME
##[debug]loading INPUT_PUBLISHERID
##[debug]loading INPUT_EXTENSIONID
##[debug]loading INPUT_VERSIONACTION
##[debug]loading INPUT_OUTPUTVARIABLE
##[debug]loading INPUT_SETBUILDNUMBER
##[debug]loading INPUT_EXTENSIONVERSIONOVERRIDE
##[debug]loading INPUT_CWD
##[debug]loading ENDPOINT_AUTH_a6d7d10f-44f1-4c21-8e52-1d28bce44589
##[debug]loading ENDPOINT_AUTH_SCHEME_a6d7d10f-44f1-4c21-8e52-1d28bce44589
##[debug]loading ENDPOINT_AUTH_PARAMETER_a6d7d10f-44f1-4c21-8e52-1d28bce44589_PASSWORD
##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
##[debug]loaded 16
##[debug]Agent.ProxyUrl=undefined
##[debug]Agent.CAInfo=undefined
##[debug]Agent.ClientCert=undefined
##[debug]Agent.SkipCertValidation=undefined ##[debug]extensionVersionOverride=Extension.VersionOverride
##[debug]Override variable specified checking for value.
##[debug]Extension.VersionOverride=undefined
##[debug]__tfxpath=/opt/hostedtoolcache/tfx/0.7.11/x64/bin
##[debug]which '/opt/hostedtoolcache/tfx/0.7.11/x64/bin/tfx'
##[debug]found: '/opt/hostedtoolcache/tfx/0.7.11/x64/bin/tfx'
##[debug]using: /opt/hostedtoolcache/tfx/0.7.11/x64/bin/tfx
##[debug]which '/opt/hostedtoolcache/tfx/0.7.11/x64/bin/tfx'
##[debug]found: '/opt/hostedtoolcache/tfx/0.7.11/x64/bin/tfx'
##[debug]cwd=/home/vsts/work/1/s
##[debug]connectTo=VsTeam
##[debug]connectedServiceName=a6d7d10f-44f1-4c21-8e52-1d28bce44589
##[debug]a6d7d10f-44f1-4c21-8e52-1d28bce44589=https://marketplace.visualstudio.com/
##[debug]a6d7d10f-44f1-4c21-8e52-1d28bce44589 exists true
##[debug]rootFolder=undefined
##[debug]patternManifest=undefined
##[debug]localizationRoot=undefined
##[debug]extensionTag=undefined
##[debug]method=undefined
##[debug]fileType=undefined
##[debug]extensionName=undefined
##[debug]extensionVisibility=undefined
##[debug]extensionPricing=undefined
##[debug]extensionVersion=undefined
##[debug]noWaitValidation=undefined
##[debug]bypassLocalValidation=undefined
##[debug]arguments=undefined
##[debug]versionAction=Patch
(node:1810) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency 0 [ '(node:1810) Warning: Accessing non-existent property \'padLevels\' of module exports inside circular dependency',
'(Use `node --trace-warnings ...` to show where the warning was created)',
'' ]
(Use `node --trace-warnings ...` to show where the warning was created) 1 [ '(node:1810) Warning: Accessing non-existent property \'padLevels\' of module exports inside circular dependency',
'(Use `node --trace-warnings ...` to show where the warning was created)',
'' ]
2 [ '(node:1810) Warning: Accessing non-existent property \'padLevels\' of module exports inside circular dependency',
'(Use `node --trace-warnings ...` to show where the warning was created)',
'' ]
null 0 [ 'null', '' ]
1 [ 'null', '' ]
##[debug]task result: Failed
##[error]SyntaxError: Unexpected end of JSON input
##[debug]Processed: ##vso[task.issue type=error;]SyntaxError: Unexpected end of JSON input
##[debug]Processed: ##vso[task.complete result=Failed;]SyntaxError: Unexpected end of JSON input
##[section]Finishing: Query Extension Version

It looks like TFX returned null, meaning the extension doesn't exist yet and it can't query the version. in that case the task should fail.
Check that the extension id you provided as an input is the one from the vss extension file and NOT the one from task.json file.
There is a way to provide an override variable for cases like this (or when you want to bump the major version number):
- task: ms-devlabs.vsts-developer-tools-build-tasks.extension-version-build-task.QueryAzureDevOpsExtensionVersion#3
displayName: 'Query Extension Version: jessehouwing.$(ExtensionId)'
inputs:
connectedServiceName: 'Jesse Houwing'
publisherId: jessehouwing
extensionId: '$(ExtensionId)'
extensionVersionOverride: Extension.VersionOverride
Then make sure you have a Settable at queuetime variable called Extension.VersionOverride.
When queueing your very first run, override the version and set it to whatever the very first version should be, e.g. 1.0.0:
This should use the override and ignore the version on the marketplace (or the lack thereof) for this run and this run only.
If you later want to increase the version to say 2.0.0, you can use the same override to have it skip to the next major version.

Related

NDK is not installed, Android artifact creation fails in Azure Pipeline

Ive used the following YAML config:
Gradle
Build your Java project and run tests with Gradle using a Gradle wrapper script.
Add steps that analyze code, save build artifacts, deploy, and more:
https://learn.microsoft.com/azure/devops/pipelines/languages/java
trigger:
develop
pool:
vmImage: 'macOS-10.14'
steps:
task: Gradle#2
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
testResultsFiles: '**/TEST-*.xml'
tasks: 'build'
I see the issue mentioned below:
Task :app:compileLiasDevReleaseSources
Task :app:lintVitalLiasDevRelease SKIPPED
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Task :app:extractLiasDevReleaseNativeSymbolTables FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:extractLiasDevReleaseNativeSymbolTables'.
NDK is not installed
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec:command_line_warnings
213 actionable tasks: 213 executed
in 7m 37s
Error: The process '/Users/runner/work/1/s/gradlew' failed with exit code 1
at ExecState._setResult (/Users/runner/work/_tasks/Gradle_8d8eebd8-2b94-4c97-85af-839254cc6da4/2.191.0/node_modules/azure-pipelines-task-lib/toolrunner.js:944:25)
at ExecState.CheckComplete (/Users/runner/work/_tasks/Gradle_8d8eebd8-2b94-4c97-85af-839254cc6da4/2.191.0/node_modules/azure-pipelines-task-lib/toolrunner.js:927:18)
at ChildProcess.<anonymous> (/Users/runner/work/_tasks/Gradle_8d8eebd8-2b94-4c97-85af-839254cc6da4/2.191.0/node_modules/azure-pipelines-task-lib/toolrunner.js:840:19)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Socket.stream.socket.on (internal/child_process.js:389:11)
at Socket.emit (events.js:198:13)
at Pipe._handle.close (net.js:607:12)
[error]Error: The process '/Users/runner/work/1/s/gradlew' failed with exit code 1
Finishing: Gradle

Getting ETIMEOUT error while integrating sonarqube with azure

I am trying to integrate sonarqube (enterprise version) with my azure. I am working on an iOS Mobile application Project.
I have added following task for preparing to do sonar analysis in my azure pipeline.
- task: SonarQubePrepare#4
displayName: 'Prepare for Sonar'
inputs:
SonarQube: 'SONARSERVICECONNECTION'
scannerMode: 'CLI'
configMode: 'manual'
cliProjectKey: 'com.ios.demoapp'
cliProjectName: 'com.ios.demo'
cliSources: '.'
extraProperties: |
# Additional properties that will be passed to the scanner,
# Put one key=value per line, example:
sonar.host.url=https://sonarprod.abc.xyz
sonar.login=d8s902h3hhh3jkl2kl2bn2j2l2b2kk2bn2
sonar.test.inclusions=**/*Test*/**
sonar.test.inclusions=*.swift
sonar.exclusions=Pods/**/*
The azure build pipeline fails on this task with the following error:
Starting: Prepare for Sonar
==============================================================================
Task : Prepare Analysis Configuration
Description : Prepare SonarQube analysis configuration
Version : 4.21.0
Author : sonarsource
Help : Version: 4.21.0. [More Information](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html)
==============================================================================
##[debug]Using node path: /Users/runner/runners/2.189.0/externals/node/bin/node
##[debug]agent.TempDirectory=/Users/runner/work/_temp
##[debug]loading inputs and endpoints
##[debug]loading INPUT_SONARQUBE
##[debug]loading INPUT_SCANNERMODE
##[debug]loading INPUT_CONFIGMODE
##[debug]loading INPUT_CONFIGFILE
##[debug]loading INPUT_CLIPROJECTKEY
##[debug]loading INPUT_CLIPROJECTNAME
##[debug]loading INPUT_CLIPROJECTVERSION
##[debug]loading INPUT_PROJECTVERSION
##[debug]loading INPUT_CLISOURCES
##[debug]loading INPUT_EXTRAPROPERTIES
##[debug]loading ENDPOINT_AUTH_c36045b9-93fa-4ab7-95d0-205b5621232e
##[debug]loading ENDPOINT_AUTH_SCHEME_c36045b9-93fa-4ab7-95d0-205b5621232e
##[debug]loading ENDPOINT_AUTH_PARAMETER_c36045b9-93fa-4ab7-95d0-205b5621232e_USERNAME
##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
##[debug]loading SECRET_P12PASSWORD
##[debug]loading SECRET_KEYCHAINPASSWORD
##[debug]loaded 19
##[debug]Agent.ProxyUrl=undefined
##[debug]Agent.CAInfo=undefined
##[debug]Agent.ClientCert=undefined
##[debug]Agent.SkipCertValidation=undefined
##[debug]SonarQube=c36045b9-93fa-4ab7-95d0-205b5621232e
##[debug]c36045b9-93fa-4ab7-95d0-205b5621232e=https://sonarprod.abc.xyz
##[debug]c36045b9-93fa-4ab7-95d0-205b5621232e auth param apitoken = null
##[debug]c36045b9-93fa-4ab7-95d0-205b5621232e auth param username = ***
##[debug]c36045b9-93fa-4ab7-95d0-205b5621232e auth param password = null
##[debug]organization=null
##[debug]scannerMode=CLI
##[debug]configMode=manual
##[debug]cliProjectKey=com.ios.demoapp
##[debug]cliProjectName=com.ios.demo
##[debug]cliProjectVersion=1.0
##[debug]cliSources=/Users/runner/work/1/s
##[debug][SQ] API GET: '/api/server/version' with query "undefined"
##[debug][SQ] API GET '/api/server/version' failed, error was: {"code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"connect","address":"***.**.***.**","port":443}
##[debug]task result: Failed
##[error][SQ] API GET '/api/server/version' failed, error was: {"code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"connect","address":"***.**.***.**","port":443}
##[debug]Processed: ##vso[task.issue type=error;][SQ] API GET '/api/server/version' failed, error was: {"code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"connect","address":"***.**.***.**","port":443}
##[debug]Processed: ##vso[task.complete result=Failed;][SQ] API GET '/api/server/version' failed, error was: {"code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"connect","address":"57.188.3.133","port":443}
I am unable to understand why it is failing?
I haven't installed any sonar scanner. Do I really need to install one? If yes, then where should it be installed?
I was using an entreprise version of Sonar and it failed to connect to MAC systems.
So, I created a separate job for sonar and assigned the agent machine as WINDOWS. Since sonar runs static analysis, it doesn't require a mac machine to do an analysis of my iOS App code.
- job: Sonar_Analysis
pool:
vmImage: 'windows-2019'
steps:
- task: SonarQubePrepare#4
displayName: 'Prepare for Sonar'
and so on...

Cannot find downloaded artifact in DownloadBuildArtifact task

I created a pipeline to download and install an artifact from another pipeline. I used DownloadPipelineArtifact task. Here is my yaml:
jobs:
- job: DownloadLeaf
timeoutInMinutes: 180
pool:
vmImage: 'vs2017-win2016'
steps:
- task: DownloadBuildArtifacts#0
inputs:
buildType: 'current'
project: 'Leaf'
pipeline: 'Leaf'
buildVersionToDownload: 'latest'
branchName: 'refs/heads/develop'
downloadType: 'specific'
itemPattern: '**/*.exe'
downloadPath: $(Build.ArtifactStagingDirectory)
- task: CmdLine#2
inputs:
script: |
cd $(Build.ArtifactStagingDirectory)
dir
Apparently the download worked, because using the dir command the artifact has been identified in the folder where the download was made.
However, I switched the download task to DownloadBuildArtifact # 0 because of the warning:##[warning]Please use Download Build Artifact task for downloading Build Artifact type artifact. After this, despite being displayed in a log that the download was successful, I can't find the artifact using the dir command. I cannot identify what I may be doing wrong. Am i doing something wrong?
Here is my DownloadBuildArtifact task:
steps:
- task: DownloadBuildArtifacts#0
inputs:
buildType: 'current'
project: 'Leaf'
pipeline: 'Leaf'
buildVersionToDownload: 'latest'
branchName: 'refs/heads/develop'
downloadType: 'specific'
itemPattern: '**/*.exe'
downloadPath: $(Build.ArtifactStagingDirectory)
- task: CmdLine#2
inputs:
script: |
cd $(Build.ArtifactStagingDirectory)
dir
Raw log:
*2020-10-24T22:25:44.6766419Z ==============================================================================
2020-10-24T22:25:44.6766756Z Task : Download build artifacts
2020-10-24T22:25:44.6767272Z Description : Download files that were saved as artifacts of a completed build
2020-10-24T22:25:44.6767721Z Version : 0.167.2
2020-10-24T22:25:44.6767954Z Author : Microsoft Corporation
2020-10-24T22:25:44.6768343Z Help : https://learn.microsoft.com/azure/devops/pipelines/tasks/utility/download-build-artifacts
2020-10-24T22:25:44.6768815Z ==============================================================================
2020-10-24T22:25:44.7132255Z ##[debug]Using node path: C:\agents\2.175.2\externals\node\bin\node.exe
2020-10-24T22:25:45.6767362Z ##[debug]agent.TempDirectory=D:\a\_temp
2020-10-24T22:25:45.6799878Z ##[debug]loading inputs and endpoints
2020-10-24T22:25:45.6809455Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2020-10-24T22:25:45.6830354Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2020-10-24T22:25:45.6834904Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2020-10-24T22:25:45.6838469Z ##[debug]loading INPUT_ALLOWPARTIALLYSUCCEEDEDBUILDS
2020-10-24T22:25:45.6841199Z ##[debug]loading INPUT_BRANCHNAME
2020-10-24T22:25:45.6843928Z ##[debug]loading INPUT_BUILDTYPE
2020-10-24T22:25:45.6846813Z ##[debug]loading INPUT_BUILDVERSIONTODOWNLOAD
2020-10-24T22:25:45.6849185Z ##[debug]loading INPUT_DEFINITION
2020-10-24T22:25:45.6851986Z ##[debug]loading INPUT_DOWNLOADPATH
2020-10-24T22:25:45.6854370Z ##[debug]loading INPUT_DOWNLOADTYPE
2020-10-24T22:25:45.6855945Z ##[debug]loading INPUT_ITEMPATTERN
2020-10-24T22:25:45.6859404Z ##[debug]loading INPUT_PARALLELIZATIONLIMIT
2020-10-24T22:25:45.6873519Z ##[debug]loading INPUT_PROJECT
2020-10-24T22:25:45.6876551Z ##[debug]loading INPUT_SPECIFICBUILDWITHTRIGGERING
2020-10-24T22:25:45.6882628Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2020-10-24T22:25:45.6890968Z ##[debug]loaded 15
2020-10-24T22:25:45.6933342Z ##[debug]Agent.ProxyUrl=undefined
2020-10-24T22:25:45.6934438Z ##[debug]Agent.CAInfo=undefined
2020-10-24T22:25:45.6935114Z ##[debug]Agent.ClientCert=undefined
2020-10-24T22:25:45.6935697Z ##[debug]Agent.SkipCertValidation=undefined
2020-10-24T22:25:45.9788900Z ##[debug]check path : D:\a\_tasks\DownloadBuildArtifacts_a433f589-fce1-4460-9ee6-44a624aeb1fb\0.167.2\node_modules\artifact-engine\lib.json
2020-10-24T22:25:45.9790062Z ##[debug]adding resource file: D:\a\_tasks\DownloadBuildArtifacts_a433f589-fce1-4460-9ee6-44a624aeb1fb\0.167.2\node_modules\artifact-engine\lib.json
2020-10-24T22:25:45.9790858Z ##[debug]system.culture=en-US
2020-10-24T22:25:46.1254482Z ##[debug]check path : D:\a\_tasks\DownloadBuildArtifacts_a433f589-fce1-4460-9ee6-44a624aeb1fb\0.167.2\task.json
2020-10-24T22:25:46.1255912Z ##[debug]adding resource file: D:\a\_tasks\DownloadBuildArtifacts_a433f589-fce1-4460-9ee6-44a624aeb1fb\0.167.2\task.json
2020-10-24T22:25:46.1258030Z ##[debug]system.culture=en-US
2020-10-24T22:25:46.4230574Z ##[debug]buildType=current
2020-10-24T22:25:46.4234210Z ##[debug]specificBuildWithTriggering=false
2020-10-24T22:25:46.4237891Z ##[debug]buildVersionToDownload=latest
2020-10-24T22:25:46.4240323Z ##[debug]allowPartiallySucceededBuilds=false
2020-10-24T22:25:46.4243177Z ##[debug]branchName=refs/heads/develop
2020-10-24T22:25:46.4246085Z ##[debug]downloadPath=D:\a\1\a
2020-10-24T22:25:46.4250041Z ##[debug]downloadType=specific
2020-10-24T22:25:46.4250962Z ##[debug]tags=null
2020-10-24T22:25:46.4253431Z ##[debug]System.TeamFoundationCollectionUri=https://dev.azure.com/isystemsbr/
2020-10-24T22:25:46.4260547Z ##[debug]SYSTEMVSSCONNECTION auth param AccessToken = ***
2020-10-24T22:25:46.4347429Z ##[debug]VSTS_HTTP_RETRY=undefined
2020-10-24T22:25:46.8211875Z ##[debug]System.TeamProjectId=8c3c84b6-802b-4187-a1bb-b75ac9c7d48e
2020-10-24T22:25:46.8212703Z ##[debug]Build.BuildId=265
2020-10-24T22:25:46.8258573Z Downloading artifacts for build: 265
2020-10-24T22:25:46.8262012Z ##[debug]set BuildNumber=265
2020-10-24T22:25:46.8291773Z ##[debug]Processed: ##vso[task.setvariable variable=BuildNumber;issecret=false;]265
2020-10-24T22:25:46.8987923Z Linked artifacts count: 0
2020-10-24T22:25:46.8992590Z Successfully downloaded artifacts to D:\a\1\a
2020-10-24T22:25:46.8994991Z ##[debug]task result: Succeeded
2020-10-24T22:25:46.9008324Z ##[debug]Processed: ##vso[task.complete result=Succeeded;]
2020-10-24T22:25:46.9143509Z ##[section]Finishing: DownloadBuildArtifacts
2020-10-24T22:25:46.9183934Z ##[debug]Evaluating condition for step: 'CmdLine'
2020-10-24T22:25:46.9186164Z ##[debug]Evaluating: SucceededNode()
2020-10-24T22:25:46.9187490Z ##[debug]Evaluating SucceededNode:
2020-10-24T22:25:46.9188768Z ##[debug]=> True
2020-10-24T22:25:46.9189395Z ##[debug]Result: True
2020-10-24T22:25:46.9189994Z ##[section]Starting: CmdLine
2020-10-24T22:25:46.9610741Z ==============================================================================
2020-10-24T22:25:46.9611091Z Task : Command line
2020-10-24T22:25:46.9611430Z Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2020-10-24T22:25:46.9611980Z Version : 2.177.1
2020-10-24T22:25:46.9612217Z Author : Microsoft Corporation
2020-10-24T22:25:46.9612579Z Help : https://learn.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
2020-10-24T22:25:46.9612967Z ==============================================================================
2020-10-24T22:25:48.2360119Z ##[debug]VstsTaskSdk 0.9.0 commit 6c48b16164b9a1c9548776ad2062dad5cd543352
2020-10-24T22:25:48.4556832Z ##[debug]Entering D:\a\_tasks\CmdLine_d9bafed4-0b18-4f58-968d-86655b4d2ce9\2.177.1\cmdline.ps1.
2020-10-24T22:25:48.4707161Z ##[debug]Loading resource strings from: D:\a\_tasks\CmdLine_d9bafed4-0b18-4f58-968d-86655b4d2ce9\2.177.1\task.json
2020-10-24T22:25:48.5034641Z ##[debug]Loaded 6 strings.
2020-10-24T22:25:48.5099803Z ##[debug]SYSTEM_CULTURE: 'en-US'
2020-10-24T22:25:48.5132208Z ##[debug]Loading resource strings from: D:\a\_tasks\CmdLine_d9bafed4-0b18-4f58-968d-86655b4d2ce9\2.177.1\Strings\resources.resjson\en-US\resources.resjson
2020-10-24T22:25:48.5393625Z ##[debug]Loaded 6 strings.
2020-10-24T22:25:48.5873858Z ##[debug]INPUT_FAILONSTDERR: 'false'
2020-10-24T22:25:48.5923127Z ##[debug] Converted to bool: False
2020-10-24T22:25:48.5982469Z ##[debug]INPUT_SCRIPT: 'cd D:\a\1\a
2020-10-24T22:25:48.6062147Z ##[debug]dir'
2020-10-24T22:25:48.6109157Z ##[debug]INPUT_WORKINGDIRECTORY: 'D:\a\1\s'
2020-10-24T22:25:48.6346759Z ##[debug]Asserting container path exists: 'D:\a\1\s'
2020-10-24T22:25:48.6430456Z Generating script.
2020-10-24T22:25:48.6693519Z ##[debug]AGENT_VERSION: '2.175.2'
2020-10-24T22:25:48.6827782Z ##[debug]AGENT_TEMPDIRECTORY: 'D:\a\_temp'
2020-10-24T22:25:48.6866567Z ##[debug]Asserting container path exists: 'D:\a\_temp'
2020-10-24T22:25:48.7195168Z ##[debug]Asserting leaf path exists: 'C:\windows\system32\cmd.exe'
2020-10-24T22:25:48.7219612Z ========================== Starting Command Output ===========================
2020-10-24T22:25:48.7415327Z ##[debug]Entering Invoke-VstsTool.
2020-10-24T22:25:48.7529249Z ##[debug] Arguments: '/D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\34a60bd8-2b0b-4817-a73f-9a15c7a05e67.cmd""'
2020-10-24T22:25:48.7616224Z ##[debug] FileName: 'C:\windows\system32\cmd.exe'
2020-10-24T22:25:48.7648172Z ##[debug] WorkingDirectory: 'D:\a\1\s'
2020-10-24T22:25:48.7742359Z ##[command]"C:\windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\34a60bd8-2b0b-4817-a73f-9a15c7a05e67.cmd""
2020-10-24T22:25:48.7991894Z Volume in drive D is Temp
2020-10-24T22:25:48.7992528Z Volume Serial Number is F090-063D
2020-10-24T22:25:48.7993309Z
2020-10-24T22:25:48.7993950Z Directory of D:\a\1\a
2020-10-24T22:25:48.7994230Z
2020-10-24T22:25:48.7994896Z 10/24/2020 10:24 PM <DIR> .
2020-10-24T22:25:48.7995491Z 10/24/2020 10:24 PM <DIR> ..
2020-10-24T22:25:48.7999544Z 0 File(s) 0 bytes
2020-10-24T22:25:48.8000346Z 2 Dir(s) 11,552,690,176 bytes free
2020-10-24T22:25:48.8061024Z ##[debug]Exit code: 0
2020-10-24T22:25:48.8122555Z ##[debug]Leaving Invoke-VstsTool.
2020-10-24T22:25:48.8169679Z ##[debug]Leaving D:\a\_tasks\CmdLine_d9bafed4-0b18-4f58-968d-86655b4d2ce9\2.177.1\cmdline.ps1.
2020-10-24T22:25:48.8756691Z ##[section]Finishing: CmdLine
2020-10-24T22:25:48.8903823Z ##[debug]Evaluating condition for step: 'Checkout core_is/leaf-flowe#leaf/qa to s'
2020-10-24T22:25:48.8909144Z ##[debug]Evaluating: AlwaysNode()
2020-10-24T22:25:48.8910130Z ##[debug]Evaluating AlwaysNode:
2020-10-24T22:25:48.8912646Z ##[debug]=> True
2020-10-24T22:25:48.8913941Z ##[debug]Result: True
2020-10-24T22:25:48.8915107Z ##[section]Starting: Checkout core_is/leaf-flowe#leaf/qa to s
2020-10-24T22:25:48.9124816Z ==============================================================================
2020-10-24T22:25:48.9125153Z Task : Get sources
2020-10-24T22:25:48.9125469Z Description : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-10-24T22:25:48.9125797Z Version : 1.0.0
2020-10-24T22:25:48.9126173Z Author : Microsoft
2020-10-24T22:25:48.9127181Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-10-24T22:25:48.9127812Z ==============================================================================
2020-10-24T22:25:49.5279710Z Cleaning any cached credential from repository: core_is/leaf-flowe (Bitbucket)
2020-10-24T22:25:49.5286724Z ##[debug]Repository url=https://bitbucket.org/core_is/leaf-flowe
2020-10-24T22:25:49.5287323Z ##[debug]targetPath=D:\a\1\s
2020-10-24T22:25:49.5403584Z ##[section]Finishing: Checkout core_is/leaf-flowe#leaf/qa to s
2020-10-24T22:25:49.5493692Z ##[section]Starting: Finalize Job
2020-10-24T22:25:49.5536041Z Cleaning up task key
2020-10-24T22:25:49.5537617Z Start cleaning up orphan processes.
2020-10-24T22:25:49.5637572Z ##[section]Finishing: Finalize Job
2020-10-24T22:25:49.5741505Z ##[debug]Starting diagnostic file upload.
2020-10-24T22:25:49.5741821Z ##[debug]Setting up diagnostic log folders.
2020-10-24T22:25:49.5750076Z ##[debug]Creating diagnostic log files folder.
2020-10-24T22:25:49.5751523Z ##[debug]Creating diagnostic log environment file.
2020-10-24T22:25:50.0152319Z ##[debug]Creating capabilities file.
2020-10-24T22:25:50.0262750Z ##[debug]Copying 1 worker diag logs.
2020-10-24T22:25:50.0330190Z ##[debug]Copying 1 agent diag logs.
2020-10-24T22:25:50.0334272Z ##[debug]Zipping diagnostic files.
2020-10-24T22:25:50.0388793Z ##[debug]Uploading diagnostic metadata file.
2020-10-24T22:25:50.0490506Z ##[debug]Diagnostic file upload complete.
2020-10-24T22:25:50.0565102Z ##[section]Finishing: DownloadLeaf*
#Anton Sizikov,
Thanks for reply, but my problem was another. Unlike Downloadpipelineartifact#2, the DownloadBuildArtifacts#0 task did not work by entering the project name and pipeline for me:
- task: DownloadBuildArtifacts#0
inputs:
buildType: 'current'
project: 'Leaf'
pipeline: 'Leaf'
buildVersionToDownload: 'latest'
branchName: 'refs/heads/develop'
downloadType: 'specific'
itemPattern: '**/*.exe'
downloadPath: $(Build.ArtifactStagingDirectory)
By chance I decided to create the download task through the azure interface, that made the value of the "pipeline" and "project" fields change their value (would it be the ID?).
Anyway, the task looked like this:
- task: DownloadBuildArtifacts#0
inputs:
buildType: 'specific'
project: '8c3c84b6-802b-4187-a1bb-b75ac9c7d48e'
pipeline: '4'
specificBuildWithTriggering: true
buildVersionToDownload: 'latest'
allowPartiallySucceededBuilds: true
downloadType: 'specific'
itemPattern: '**/*.exe'
downloadPath: '$(System.ArtifactsDirectory)'
Know, I can identify my artifact downloaded using dir command.
Based on your log I can see that your artifact was downloaded to $(Build.ArtifactStagingDirectory) directory, which is D:\a\1\a in your case. Then you run dir command there:
Successfully downloaded artifacts to D:\a\1\a
2020-10-24T22:25:48.7993950Z Directory of D:\a\1\a
2020-10-24T22:25:48.7994230Z
2020-10-24T22:25:48.7994896Z 10/24/2020 10:24 PM <DIR> .
2020-10-24T22:25:48.7995491Z 10/24/2020 10:24 PM <DIR> ..
2020-10-24T22:25:48.7999544Z 0 File(s) 0 bytes
2020-10-24T22:25:48.8000346Z 2 Dir(s) 11,552,690,176 bytes free
Download Build Artifacts task works slightly differently comparing to the old task.
It puts the files into a <downloadPath>/<artifact-name> directory. You can see there you've got two of them in your expected path.
This is a known issue.

VSTS Azure App Service Deploy release task doesn't update files

In my release definition, I have a step to deploy Azure web app service.
The step is finished without any errors, however, the application files inside the wwroot folder aren't changed.
Below are the logs for this step:
2018-06-04T11:33:58.6519687Z ##[debug]Evaluating condition for step: 'Deploy Azure App Service'
2018-06-04T11:33:58.6520505Z ##[debug]Evaluating: succeeded()
2018-06-04T11:33:58.6521823Z ##[debug]Evaluating succeeded:
2018-06-04T11:33:58.6522364Z ##[debug]=> True
2018-06-04T11:33:58.6522960Z ##[debug]Result: True
2018-06-04T11:33:58.6523283Z ##[section]Starting: Deploy Azure App Service
2018-06-04T11:33:58.6532729Z ==============================================================================
2018-06-04T11:33:58.6532941Z Task : Azure App Service Deploy
2018-06-04T11:33:58.6533434Z Description : Update Azure WebApp Services On Windows, Web App On Linux with built-in images or docker containers, ASP.NET, .NET Core, PHP, Python or Node based Web applications, Function Apps, Mobile Apps, Api applications, Web Jobs using Web Deploy / Kudu REST APIs
2018-06-04T11:33:58.6533758Z Version : 3.3.47
2018-06-04T11:33:58.6533900Z Author : Microsoft Corporation
2018-06-04T11:33:58.6534147Z Help : [More Information](https://aka.ms/azurermwebdeployreadme)
2018-06-04T11:33:58.6534361Z ==============================================================================
2018-06-04T11:33:59.3700194Z ##[debug]agent.workFolder=D:\a
2018-06-04T11:33:59.3728077Z ##[debug]loading inputs and endpoints
2018-06-04T11:33:59.3733912Z ##[debug]loading ENDPOINT_AUTH_82e35813-117a-4528-8bdc-11c81d0ff34f
2018-06-04T11:33:59.3743052Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_82e35813-117a-4528-8bdc-11c81d0ff34f_SERVICEPRINCIPALID
2018-06-04T11:33:59.3744991Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_82e35813-117a-4528-8bdc-11c81d0ff34f_SERVICEPRINCIPALKEY
2018-06-04T11:33:59.3747384Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_82e35813-117a-4528-8bdc-11c81d0ff34f_TENANTID
2018-06-04T11:33:59.3748988Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2018-06-04T11:33:59.3752177Z ##[debug]loading ENDPOINT_AUTH_SCHEME_82e35813-117a-4528-8bdc-11c81d0ff34f
2018-06-04T11:33:59.3753927Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2018-06-04T11:33:59.3762167Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2018-06-04T11:33:59.3764454Z ##[debug]loading INPUT_BUILTINLINUXPACKAGE
2018-06-04T11:33:59.3766013Z ##[debug]loading INPUT_CONNECTEDSERVICENAME
2018-06-04T11:33:59.3769223Z ##[debug]loading INPUT_DEPLOYTOSLOTFLAG
2018-06-04T11:33:59.3770780Z ##[debug]loading INPUT_DOCKERIMAGETAG
2018-06-04T11:33:59.3772243Z ##[debug]loading INPUT_DOCKERREPOSITORYACCESS
2018-06-04T11:33:59.3773874Z ##[debug]loading INPUT_EXCLUDEFILESFROMAPPDATAFLAG
2018-06-04T11:33:59.3776019Z ##[debug]loading INPUT_GENERATEWEBCONFIG
2018-06-04T11:33:59.3778404Z ##[debug]loading INPUT_IMAGESOURCE
2018-06-04T11:33:59.3782399Z ##[debug]loading INPUT_PACKAGE
2018-06-04T11:33:59.3785149Z ##[debug]loading INPUT_REMOVEADDITIONALFILESFLAG
2018-06-04T11:33:59.3787205Z ##[debug]loading INPUT_RENAMEFILESFLAG
2018-06-04T11:33:59.3788675Z ##[debug]loading INPUT_SCRIPTPATH
2018-06-04T11:33:59.3792890Z ##[debug]loading INPUT_SETPARAMETERSFILE
2018-06-04T11:33:59.3794770Z ##[debug]loading INPUT_TAKEAPPOFFLINEFLAG
2018-06-04T11:33:59.3796033Z ##[debug]loading INPUT_USEWEBDEPLOY
2018-06-04T11:33:59.3797768Z ##[debug]loading INPUT_WEBAPPKIND
2018-06-04T11:33:59.3799792Z ##[debug]loading INPUT_WEBAPPNAME
2018-06-04T11:33:59.3801422Z ##[debug]loading INPUT_XMLTRANSFORMATION
2018-06-04T11:33:59.3802688Z ##[debug]loading INPUT_XMLVARIABLESUBSTITUTION
2018-06-04T11:33:59.3813905Z ##[debug]loaded 27
2018-06-04T11:33:59.4137921Z ##[debug]agent.proxyurl=undefined
2018-06-04T11:33:59.4139193Z ##[debug]VSTS_ARM_REST_IGNORE_SSL_ERRORS=undefined
2018-06-04T11:33:59.4139704Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_e9a6b698-6440-443e-a398-c358fe7b1c29_release_4_304_2030_1
2018-06-04T11:33:59.6358043Z ##[debug]check path : D:\a\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\3.3.47\task.json
2018-06-04T11:33:59.6361018Z ##[debug]set resource file to: D:\a\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\3.3.47\task.json
2018-06-04T11:33:59.6362477Z ##[debug]system.culture=en-US
2018-06-04T11:33:59.6498166Z ##[debug]ConnectedServiceName=82e35813-117a-4528-8bdc-11c81d0ff34f
2018-06-04T11:33:59.6501539Z ##[debug]WebAppName=XXXXXAPP
2018-06-04T11:33:59.6502672Z ##[debug]WebAppKind=app
2018-06-04T11:33:59.6504365Z ##[debug]DeployToSlotFlag=false
2018-06-04T11:33:59.6505866Z ##[debug]VirtualApplication=null
2018-06-04T11:33:59.6508534Z ##[debug]Package=D:\a\r1\a\XXXXX_Build\XXXXX\XXXXX.zip
2018-06-04T11:33:59.6510245Z ##[debug]GenerateWebConfig=false
2018-06-04T11:33:59.6510679Z ##[debug]WebConfigParameters=null
2018-06-04T11:33:59.6512305Z ##[debug]XmlTransformation=false
2018-06-04T11:33:59.6513464Z ##[debug]JSONFiles=null
2018-06-04T11:33:59.6514797Z ##[debug]XmlVariableSubstitution=false
2018-06-04T11:33:59.6516893Z ##[debug]UseWebDeploy=true
2018-06-04T11:33:59.6518387Z ##[debug]TakeAppOfflineFlag=false
2018-06-04T11:33:59.6519647Z ##[debug]RenameFilesFlag=true
2018-06-04T11:33:59.6520311Z ##[debug]AdditionalArguments=null
2018-06-04T11:33:59.6520595Z ##[debug]ScriptType=null
2018-06-04T11:33:59.6520882Z ##[debug]InlineScript=null
2018-06-04T11:33:59.6521833Z ##[debug]ScriptPath=D:\a\r1\a
2018-06-04T11:33:59.6522120Z ##[debug]DockerNamespace=null
2018-06-04T11:33:59.6522450Z ##[debug]AppSettings=null
2018-06-04T11:33:59.6524040Z ##[debug]ImageSource=Registry
2018-06-04T11:33:59.6524356Z ##[debug]StartupCommand=null
2018-06-04T11:33:59.6524701Z ##[debug]WebAppUri=null
2018-06-04T11:33:59.6524980Z ##[debug]ConfigurationSettings=null
2018-06-04T11:33:59.6527601Z ##[debug]RemoveAdditionalFilesFlag=false
2018-06-04T11:33:59.6535376Z ##[debug]SetParametersFile=D:\a\r1\a\XXXXX_Build\XXXXX\XXXXX.SetParameters.xml
2018-06-04T11:33:59.6541101Z ##[debug]ExcludeFilesFromAppDataFlag=false
2018-06-04T11:33:59.6541333Z ##[debug]AdditionalArguments=null
2018-06-04T11:33:59.6550903Z ##[debug]82e35813-117a-4528-8bdc-11c81d0ff34f data subscriptionid = GUID
2018-06-04T11:33:59.6551349Z ##[debug]82e35813-117a-4528-8bdc-11c81d0ff34f data subscriptionname = Pay-As-You-Go
2018-06-04T11:33:59.6553543Z ##[debug]82e35813-117a-4528-8bdc-11c81d0ff34f auth param serviceprincipalid = ***
2018-06-04T11:33:59.6555106Z ##[debug]82e35813-117a-4528-8bdc-11c81d0ff34f auth param serviceprincipalkey = ***
2018-06-04T11:33:59.6555509Z ##[debug]82e35813-117a-4528-8bdc-11c81d0ff34f data environmentAuthorityUrl = https://login.windows.net/
2018-06-04T11:33:59.6557905Z ##[debug]82e35813-117a-4528-8bdc-11c81d0ff34f auth param tenantid = ***
2018-06-04T11:33:59.6559149Z ##[debug]82e35813-117a-4528-8bdc-11c81d0ff34f=https://management.azure.com/
2018-06-04T11:33:59.6559716Z ##[debug]82e35813-117a-4528-8bdc-11c81d0ff34f data environment = AzureCloud
2018-06-04T11:33:59.6560423Z ##[debug]82e35813-117a-4528-8bdc-11c81d0ff34f data activeDirectoryServiceEndpointResourceId = https://management.core.windows.net/
2018-06-04T11:33:59.6596130Z Got connection details for Azure App Service:'XXXXXAPP'
2018-06-04T11:33:59.6634436Z ##[debug][POST]https://login.windows.net/***/oauth2/token/
2018-06-04T11:33:59.8009164Z ##[debug][GET]https://management.azure.com/subscriptions/GUID/resources?$filter=resourceType EQ 'Microsoft.Web/Sites' AND name EQ 'XXXXXAPP'&api-version=2016-07-01
2018-06-04T11:33:59.9987632Z ##[debug]Resource Group: XXXXXAPP_RG
2018-06-04T11:34:00.0004240Z ##[debug][POST]https://login.windows.net/***/oauth2/token/
2018-06-04T11:34:00.1632760Z ##[debug][POST]https://management.azure.com/subscriptions/GUID/resourceGroups/XXXXXAPP_RG/providers/Microsoft.Web/sites/XXXXXAPP/publishxml?api-version=2016-08-01
2018-06-04T11:34:00.6677707Z ##[debug][GET]http://XXXXXAPP.azurewebsites.net
2018-06-04T11:34:00.9414300Z ##[debug]App Service status Code: '301'. Status Message: 'Moved Permanently'
2018-06-04T11:34:00.9425111Z ##[debug][POST]https://management.azure.com/subscriptions/GUID/resourceGroups/XXXXXAPP_RG/providers/Microsoft.Web/sites/XXXXXAPP/config/publishingcredentials/list?api-version=2016-08-01
2018-06-04T11:34:01.4434508Z ##[debug]set AZURE_APP_SERVICE_KUDU_production_PASSWORD=********
2018-06-04T11:34:01.4438825Z ##[debug]Processed: ##vso[task.setvariable variable=AZURE_APP_SERVICE_KUDU_production_PASSWORD;issecret=true;]***
2018-06-04T11:34:01.4443201Z ##[debug]Finding files matching input: D:\a\r1\a\XXXXX_Build\XXXXX\XXXXX.zip
2018-06-04T11:34:01.4451380Z ##[debug]File Tranformation not enabled
2018-06-04T11:34:01.4452315Z ##[debug]Performing the deployment of webapp.
2018-06-04T11:34:01.4461073Z ##[debug][POST]https://management.azure.com/subscriptions/GUID/resourceGroups/XXXXXAPP_RG/providers/Microsoft.Web/sites/XXXXXAPP/config/appsettings/list?api-version=2016-08-01
2018-06-04T11:34:01.8391847Z ##[debug]Rename locked files is already enabled in App Service
2018-06-04T11:34:01.8847713Z ##[debug]SetParametersFile=D:\a\r1\a\XXXXX_Build\XXXXX\XXXXX.SetParameters.xml
2018-06-04T11:34:01.8850767Z ##[debug]Absolute path for pathSegments: D:\a\r1\a\XXXXX_Build\XXXXX\XXXXX.SetParameters.xml = D:\a\r1\a\XXXXX_Build\XXXXX\XXXXX.SetParameters.xml
2018-06-04T11:34:01.8851284Z ##[debug]build.sourcesDirectory=undefined
2018-06-04T11:34:01.8851635Z ##[debug]system.defaultWorkingDirectory=D:\a\r1\a
2018-06-04T11:34:01.8852006Z ##[debug]Absolute path for pathSegments: D:\a\r1\a = D:\a\r1\a
2018-06-04T11:34:01.8852331Z ##[debug]SetParametersFilepath supplied :true
2018-06-04T11:34:01.8852652Z ##[debug]System.DefaultWorkingDirectory=D:\a\r1\a
2018-06-04T11:34:01.8853824Z ##[debug]System.DefaultWorkingDirectory=D:\a\r1\a
2018-06-04T11:34:02.2282477Z ##[debug]Is the package an msdeploy package : true
2018-06-04T11:34:02.2284526Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_e9a6b698-6440-443e-a398-c358fe7b1c29_release_4_304_2030_1
2018-06-04T11:34:02.2284827Z ##[debug]Constructed msDeploy comamnd line arguments
2018-06-04T11:34:02.2285471Z ##[debug]appservice.msdeployretrycount=undefined
2018-06-04T11:34:02.2289929Z ##[debug]System.DefaultWorkingDirectory=D:\a\r1\a
2018-06-04T11:34:02.2296111Z ##[debug]the argument string is:
2018-06-04T11:34:02.2297010Z ##[debug] -verb:sync -source:package="'D:\a\r1\a\XXXXX_Build\XXXXX\XXXXX.zip'" -dest:auto,ComputerName="'https://XXXXXAPP.scm.azurewebsites.net:443/msdeploy.axd?site=XXXXXAPP'",UserName="'$XXXXXAPP'",Password="'***'",AuthType="'Basic'" -setParam:name="'IIS Web Application Name'",value="'XXXXXAPP'" -setParamFile=tempSetParameters.xml -enableRule:DoNotDeleteRule -userAgent:VSTS_e9a6b698-6440-443e-a398-c358fe7b1c29_release_4_304_2030_1
2018-06-04T11:34:02.2297695Z ##[debug]converting the argument string into an array of arguments
2018-06-04T11:34:02.2300188Z ##[debug]the array of arguments is:
2018-06-04T11:34:02.2300675Z ##[debug]arg#0: -verb:sync
2018-06-04T11:34:02.2301040Z ##[debug]arg#1: -source:package='D:\a\r1\a\XXXXX_Build\XXXXX\XXXXX.zip'
2018-06-04T11:34:02.2334815Z ##[debug]arg#2: -dest:auto,ComputerName='https://XXXXXAPP.scm.azurewebsites.net:443/msdeploy.axd?site=XXXXXAPP',UserName='$XXXXXAPP',Password='***',AuthType='Basic'
2018-06-04T11:34:02.2338746Z ##[debug]arg#3: -setParam:name='IIS Web Application Name',value='XXXXXAPP'
2018-06-04T11:34:02.2339153Z ##[debug]arg#4: -setParamFile=tempSetParameters.xml
2018-06-04T11:34:02.2339861Z ##[debug]arg#5: -enableRule:DoNotDeleteRule
2018-06-04T11:34:02.2340493Z ##[debug]arg#6: -userAgent:VSTS_e9a6b698-6440-443e-a398-c358fe7b1c29_release_4_304_2030_1
2018-06-04T11:34:02.2340789Z ##[debug]which 'msdeploy'
2018-06-04T11:34:02.2816090Z ##[debug]found: 'C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe'
2018-06-04T11:34:02.2816460Z ##[debug]which 'msdeploy'
2018-06-04T11:34:02.2818602Z ##[debug]found: 'C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe'
2018-06-04T11:34:02.2822414Z ##[debug]C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe arg: ["-verb:sync","-source:package='D:\\a\\r1\\a\\XXXXX_Build\\XXXXX\\XXXXX.zip'","-dest:auto,ComputerName='https://XXXXXAPP.scm.azurewebsites.net:443/msdeploy.axd?site=XXXXXAPP',UserName='$XXXXXAPP',Password='***',AuthType='Basic'","-setParam:name='IIS Web Application Name',value='XXXXXAPP'","-setParamFile=tempSetParameters.xml","-enableRule:DoNotDeleteRule","-userAgent:VSTS_e9a6b698-6440-443e-a398-c358fe7b1c29_release_4_304_2030_1"]
2018-06-04T11:34:02.2823546Z ##[debug]C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe arg: ["-verb:sync","-source:package='D:\\a\\r1\\a\\XXXXX_Build\\XXXXX\\XXXXX.zip'","-dest:auto,ComputerName='https://XXXXXAPP.scm.azurewebsites.net:443/msdeploy.axd?site=XXXXXAPP',UserName='$XXXXXAPP',Password='***',AuthType='Basic'","-setParam:name='IIS Web Application Name',value='XXXXXAPP'","-setParamFile=tempSetParameters.xml","-enableRule:DoNotDeleteRule","-userAgent:VSTS_e9a6b698-6440-443e-a398-c358fe7b1c29_release_4_304_2030_1"]
2018-06-04T11:34:02.2828281Z ##[debug]exec tool: C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe
2018-06-04T11:34:02.2828862Z ##[debug]exec tool: C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe
2018-06-04T11:34:02.2829408Z ##[debug]arguments:
2018-06-04T11:34:02.2829692Z ##[debug]arguments:
2018-06-04T11:34:02.2829997Z ##[debug] -verb:sync
2018-06-04T11:34:02.2834934Z ##[debug] -verb:sync
2018-06-04T11:34:02.2846041Z ##[debug] -source:package='D:\a\r1\a\XXXXX_Build\XXXXX\XXXXX.zip'
2018-06-04T11:34:02.2846989Z ##[debug] -source:package='D:\a\r1\a\XXXXX_Build\XXXXX\XXXXX.zip'
2018-06-04T11:34:02.2847664Z ##[debug] -dest:auto,ComputerName='https://XXXXXAPP.scm.azurewebsites.net:443/msdeploy.axd?site=XXXXXAPP',UserName='$XXXXXAPP',Password='***',AuthType='Basic'
2018-06-04T11:34:02.2848357Z ##[debug] -dest:auto,ComputerName='https://XXXXXAPP.scm.azurewebsites.net:443/msdeploy.axd?site=XXXXXAPP',UserName='$XXXXXAPP',Password='***',AuthType='Basic'
2018-06-04T11:34:02.2848923Z ##[debug] -setParam:name='IIS Web Application Name',value='XXXXXAPP'
2018-06-04T11:34:02.2849502Z ##[debug] -setParam:name='IIS Web Application Name',value='XXXXXAPP'
2018-06-04T11:34:02.2850030Z ##[debug] -setParamFile=tempSetParameters.xml
2018-06-04T11:34:02.2850362Z ##[debug] -setParamFile=tempSetParameters.xml
2018-06-04T11:34:02.2850908Z ##[debug] -enableRule:DoNotDeleteRule
2018-06-04T11:34:02.2851263Z ##[debug] -enableRule:DoNotDeleteRule
2018-06-04T11:34:02.2851635Z ##[debug] -userAgent:VSTS_e9a6b698-6440-443e-a398-c358fe7b1c29_release_4_304_2030_1
2018-06-04T11:34:02.2852040Z ##[debug] -userAgent:VSTS_e9a6b698-6440-443e-a398-c358fe7b1c29_release_4_304_2030_1
2018-06-04T11:34:02.2872121Z [command]"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package='D:\a\r1\a\XXXXX_Build\XXXXX\XXXXX.zip' -dest:auto,ComputerName='https://XXXXXAPP.scm.azurewebsites.net:443/msdeploy.axd?site=XXXXXAPP',UserName='$XXXXXAPP',Password='***',AuthType='Basic' -setParam:name='IIS Web Application Name',value='XXXXXAPP' -setParamFile=tempSetParameters.xml -enableRule:DoNotDeleteRule -userAgent:VSTS_e9a6b698-6440-443e-a398-c358fe7b1c29_release_4_304_2030_1
2018-06-04T11:34:05.0759932Z Info: Using ID '1463afeb-f397-49f5-9860-b8c3f3592a8c' for connections to the remote server.
2018-06-04T11:34:07.8631955Z Info: Adding ACLs for path (XXXXXAPP)
2018-06-04T11:34:07.8632751Z Info: Adding ACLs for path (XXXXXAPP)
2018-06-04T11:34:07.8898015Z Info: Using ID '6754ac43-0b17-4852-b068-be1040bbc09c' for connections to the remote server.
2018-06-04T11:34:08.9107837Z Info: Adding ACLs for path (XXXXXAPP)
2018-06-04T11:34:08.9108873Z Info: Adding ACLs for path (XXXXXAPP)
2018-06-04T11:34:09.0365187Z Total changes: 4 (0 added, 0 deleted, 4 updated, 0 parameters changed, 0 bytes copied)
2018-06-04T11:34:09.0987232Z ##[debug]rc:0
2018-06-04T11:34:09.0987527Z ##[debug]rc:0
2018-06-04T11:34:09.0987908Z ##[debug]success:true
2018-06-04T11:34:09.0988126Z ##[debug]success:true
2018-06-04T11:34:09.0995926Z Successfully deployed web package to App Service.
2018-06-04T11:34:09.0996686Z ##[debug]rm -rf D:\a\r1\a\tempSetParameters.xml
2018-06-04T11:34:09.0998262Z ##[debug]removing file
2018-06-04T11:34:09.1026443Z ##[debug][GET]https://management.azure.com/subscriptions/GUID/resourceGroups/XXXXXAPP_RG/providers/Microsoft.Web/sites/XXXXXAPP/config/web?api-version=2016-08-01
2018-06-04T11:34:09.8306183Z ##[debug]Skipped updating the SCM value. Value: VSTSRM
2018-06-04T11:34:09.8323287Z ##[debug][GET]https://management.azure.com/subscriptions/GUID/providers/microsoft.insights/components?$filter=InstrumentationKey eq 'bbf98e17-8af5-495d-a013-9e14966f8b24'&api-version=2015-05-01
2018-06-04T11:34:10.3035682Z ##[debug]Release.ReleaseUri=vstfs:///ReleaseManagement/Release/304
2018-06-04T11:34:10.3036084Z ##[debug]Build.BuildUri=vstfs:///Build/Build/151
2018-06-04T11:34:10.3037014Z ##[debug]Release.DefinitionName=XXXXX_Release
2018-06-04T11:34:10.3037317Z ##[debug]Release.ReleaseName=Release-204
2018-06-04T11:34:10.3037980Z ##[debug]Build.BuildUri=vstfs:///Build/Build/151
2018-06-04T11:34:10.3038676Z ##[debug]Release.ReleaseWebUrl=https://YYYYY.visualstudio.com/1591217f-c442-4ac1-8afd-072c15f20d59/_release?releaseId=304&_a=release-summary
2018-06-04T11:34:10.3039189Z ##[debug]System.TeamFoundationCollectionUri=https://YYYYY.visualstudio.com/
2018-06-04T11:34:10.3039661Z ##[debug]System.TeamProjectId=1591217f-c442-4ac1-8afd-072c15f20d59
2018-06-04T11:34:10.3040063Z ##[debug]build.buildId=151
2018-06-04T11:34:10.3049416Z ##[debug][PUT]https://management.azure.com/subscriptions/GUID/resourceGroups/XXXXXAPP_RG/providers/microsoft.insights/components/XXXXXAPP/Annotations?api-version=2015-05-01
2018-06-04T11:34:11.1136052Z ##[debug]addReleaseAnnotation. Data : {"statusCode":200,"statusMessage":"OK","headers":{"cache-control":"no-cache","pragma":"no-cache","content-length":"353","content-type":"application/json; charset=utf-8","expires":"-1","x-ms-request-id":"195f5969-0b0c-4da3-bec2-323d858cba7c","x-content-type-options":"nosniff","strict-transport-security":"max-age=31536000; includeSubDomains","x-ms-ratelimit-remaining-subscription-writes":"1199","server":"Microsoft-IIS/8.5","x-powered-by":"ASP.NET","x-ms-correlation-request-id":"e3f218c9-cf92-43f9-a8a0-638343cd7177","x-ms-routing-request-id":"NORTHCENTRALUS:20180604T113411Z:e3f218c9-cf92-43f9-a8a0-638343cd7177","date":"Mon, 04 Jun 2018 11:34:10 GMT","connection":"close"},"body":[{"AnnotationName":"XXXXX_Release - Release-204","Id":"1df1e49f-6eca-4c77-87a1-b8dc22e180c0","Category":"Text","Properties":"{\"Label\":\"Success\",\"Deployment Uri\":\"https://YYYYY.visualstudio.com/1591217f-c442-4ac1-8afd-072c15f20d59/_release?releaseId=304&_a=release-summary\"}","EventTime":"2018-06-04T11:34:10.303+00:00","RelatedAnnotation":null}]}
2018-06-04T11:34:11.1138848Z Successfully added release annotation to the Application Insight : XXXXXAPP
2018-06-04T11:34:11.1142961Z ##[debug]build.sourceVersionAuthor=undefined
2018-06-04T11:34:11.1143466Z ##[debug]build.requestedfor=Sergey
2018-06-04T11:34:11.1143817Z ##[debug]build.buildUri=vstfs:///Build/Build/151
2018-06-04T11:34:11.1144142Z ##[debug]release.releaseUri=vstfs:///ReleaseManagement/Release/304
2018-06-04T11:34:11.1144511Z ##[debug]build.buildId=151
2018-06-04T11:34:11.1145581Z ##[debug]release.releaseId=304
2018-06-04T11:34:11.1146548Z ##[debug]build.buildNumber=R1.4_20180529
2018-06-04T11:34:11.1147174Z ##[debug]release.releaseName=Release-204
2018-06-04T11:34:11.1152875Z ##[debug]system.TeamFoundationCollectionUri=https://YYYYY.visualstudio.com/
2018-06-04T11:34:11.1153437Z ##[debug]system.teamProjectId=1591217f-c442-4ac1-8afd-072c15f20d59
2018-06-04T11:34:11.1153914Z ##[debug]build.sourceVersion=939
2018-06-04T11:34:11.1154283Z ##[debug]build.repository.name=XXXXX Application
2018-06-04T11:34:11.1155329Z ##[debug]build.repository.provider=TfsVersionControl
2018-06-04T11:34:11.1155740Z ##[debug]build.buildUri=vstfs:///Build/Build/151
2018-06-04T11:34:11.1156109Z ##[debug]release.releaseUri=vstfs:///ReleaseManagement/Release/304
2018-06-04T11:34:11.1156447Z ##[debug]build.buildId=151
2018-06-04T11:34:11.1157196Z ##[debug]release.releaseId=304
2018-06-04T11:34:11.1157610Z ##[debug]build.buildNumber=R1.4_20180529
2018-06-04T11:34:11.1158002Z ##[debug]release.releaseName=Release-204
2018-06-04T11:34:11.1158414Z ##[debug]system.TeamFoundationCollectionUri=https://YYYYY.visualstudio.com/
2018-06-04T11:34:11.1158848Z ##[debug]system.teamProjectId=1591217f-c442-4ac1-8afd-072c15f20d59
2018-06-04T11:34:11.1159230Z ##[debug]build.sourceVersion=939
2018-06-04T11:34:11.1159674Z ##[debug]build.repository.name=XXXXX Application
2018-06-04T11:34:11.1160241Z ##[debug]build.repository.provider=TfsVersionControl
2018-06-04T11:34:11.1165194Z ##[debug][PUT]https://$XXXXXAPP:***#XXXXXAPP.scm.azurewebsites.net/api/deployments/3041528112051114
2018-06-04T11:34:12.7504296Z ##[debug]updateDeployment. Data: {"statusCode":200,"statusMessage":"OK","headers":{"cache-control":"no-cache","pragma":"no-cache","content-length":"933","content-type":"application/json; charset=utf-8","expires":"-1","server":"Microsoft-IIS/10.0","x-ms-request-id":"9ad3446c-7bad-4d11-a827-d4f74de4c5e9","x-aspnet-version":"4.0.30319","x-powered-by":"ASP.NET","set-cookie":["ARRAffinity=8a8d8dd9156bbc837a024bd4b077d8299002a88a7be8967241d8478205e5f430;Path=/;HttpOnly;Domain=XXXXXAPP.scm.azurewebsites.net"],"date":"Mon, 04 Jun 2018 11:34:12 GMT","connection":"close"},"body":{"id":"3041528112051114","status":4,"status_text":null,"author_email":null,"author":"Sergey ","deployer":"VSTS","message":"{\"type\":\"Deployment\",\"commitId\":\"939\",\"buildId\":\"151\",\"releaseId\":\"304\",\"buildNumber\":\"R1.4_20180529\",\"releaseName\":\"Release-204\",\"repoProvider\":\"TfsVersionControl\",\"repoName\":\"XXXXX Application\",\"collectionUrl\":\"https://YYYYY.visualstudio.com/\",\"teamProject\":\"1591217f-c442-4ac1-8afd-072c15f20d59\",\"slotName\":\"production\"}","progress":null,"received_time":"0001-01-01T00:00:00","start_time":"2018-06-04T11:34:12.546166Z","end_time":"2018-06-04T11:34:12.546166Z","last_success_end_time":null,"complete":false,"active":true,"is_temp":false,"is_readonly":false,"url":"https://XXXXXAPP.scm.azurewebsites.net/api/deployments/3041528112051114","log_url":"https://XXXXXAPP.scm.azurewebsites.net/api/deployments/3041528112051114/log","site_name":null}}
2018-06-04T11:34:12.7506684Z Successfully updated deployment History at https://XXXXXAPP.scm.azurewebsites.net/api/deployments/3041528112051114
2018-06-04T11:34:12.7647383Z ##[section]Finishing: Deploy Azure App Service
I've added the step to clean the wwwroot folder content (using Kudu REST API and COMMAND verb).
After completion, the directory looks like:
After clean, the deploy is performed correctly.
I am wondering why application redeploy (update) doesn't change the necessary files.
Please try with the Azure App Service Deploy task with 4.* (preview) version, and select your App Service type correspondingly.

Gitlab runner artifacts : 405 Method Not allowed

I try to use artifacts on my Gitlab and when my runner try to put my artifact file on Giltlab, i have this message :
WARNING: Uploading artifacts to coordinator... failed id=504 responseStatus=405 Method Not Allowed status=405 Method Not Allowed token=HebbSqMD
WARNING: Retrying...
WARNING: Uploading artifacts to coordinator... failed id=504 responseStatus=405 Method Not Allowed status=405 Method Not Allowed token=HebbSqMD
WARNING: Retrying...
WARNING: Uploading artifacts to coordinator... failed id=504 responseStatus=405 Method Not Allowed status=405 Method Not Allowed token=HebbSqMD
FATAL: invalid argument
ERROR: Job failed: exit code 1
My job is :
build:
stage: build
script:
- echo "Building the app" > out.txt
artifacts:
paths:
- out.txt
Gitlab 8.16 or 8.17 : same probleme
Gitlab runner on other host (docker executor) : 1.11.0 o 1.10.4 : same probleme
Simply, verified artifacts enabled in /etc/gitlab/gitlab.rb file:
## Build Artifacts
# gitlab_rails['artifacts_enabled'] = true
# gitlab_rails['artifacts_path'] = "/mnt/storage/artifacts"

Resources