After updating QueryAzureDevOpsExtensionVersion@3
to version 4 and the same for PackageAzureDevOpsExtension
, I started getting errors in PackageAzureDevOpsExtension
.
All errors looked something like that:
error: Error: Part Name 'Myproject/node_modules/azure-pipelines-tasks-azure-arm-rest-v2/openssl/OpenSSL License.txt' is invalid. Please check the following: 0 [
"error: Error: Part Name 'Myproject/node_modules/azure-pipelines-tasks-azure-arm-rest-v2/openssl/OpenSSL License.txt' is invalid. Please check the following: ",
'error: 1. No whitespace or any of these characters: #^[]<>?',
'error: 2. Cannot end with a period.',
'error: 3. No percent-encoded / or \\ characters. Additionally, % must be followed by two hex characters.',
''
That part of the pipeline now looks like this:
- task: QueryAzureDevOpsExtensionVersion@4
name: QueryVersion
displayName: 'Query Extension Version'
inputs:
connectTo: 'VsTeam'
connectedServiceName: 'Clipper-Marketplace-Admin'
publisherId: '$(publisherId)'
extensionId: '$(extensionId)'
versionAction: ${{ parameters.updateKind }}
- task: PackageAzureDevOpsExtension@4
inputs:
rootFolder: '$(Build.SourcesDirectory)/AzurePipelinesTasks'
patternManifest: 'my-project-vss-extension.json'
publisherId: '$(publisherId)'
extensionId: '$(extensionId)'
extensionName: '$(extensionName)'
extensionVersion: '$(QueryVersion.Extension.Version)'
updateTasksVersion: true
updateTasksVersionType: ${{ parameters.updateKind }}
extensionVisibility: 'private' # Change to public if you're publishing to the marketplace
extensionPricing: 'free'
What can cause these errors in the pipeline? The reason why I'm updating the pipeline is because there's some issue with the latest typescript version which causes an issue with compiling the code. After updating packages, I started failing in the package stage because of errors like the above.