microsoft / tfs-cli

Cross-platform CLI for Microsoft Team Foundation Server and Visual Studio Team Services
MIT License
370 stars 131 forks source link

tfx command line publish issue for Azure DevOps Server 2022 RC1 #423

Open KubratK opened 1 year ago

KubratK commented 1 year ago

Hi everyone, I have the same bug that is described by @Shahyads in #416, also having the issue with tfx-cli for Azure DevOps Server 2022 RC1. Not only is the pipeline not working, but also fails with the command line tfx extension publish

Here is the part of the pipeline: npx tfx-cli extension publish^ --publisher "$(publisher)"^ --manifest-globs azure-devops-extension.json^ --overrides-file configs/test.json^ --override "{\"version\": \"$(ext_version)\"}"^ --trace-level debug^ --service-url ${{ parameters.serviceUrl }}^ --auth-type pat --token ${{ parameters.token }}^ --trace-level debug^ --output-path deploy\extension_${{ parameters.mode }}^ --nowait-validation displayName: 'Publish Extension'

Here is the log:

2022-12-12T13:54:13.974Z : -- export-test-protocol-history
2022-12-12T13:54:13.974Z : Path 'C:\agents\ABC_work\1\s\dist\export-test-protocol-history is a directory. Adding all contained files (recursive). 2022-12-12T13:54:13.974Z : -- export-test-protocol-history.html 2022-12-12T13:54:13.975Z : -- export-test-protocol-history.js 2022-12-12T13:54:13.975Z : -- export-test-protocol-history.js.LICENSE.txt 2022-12-12T13:54:13.975Z : -- export-test-protocol-history.js.map 2022-12-12T13:54:13.975Z : -- export-test-specification 2022-12-12T13:54:13.975Z : Path 'C:\agents\ABC\_work\1\s\dist\export-test-specification is a directory. Adding all contained files (recursive).
2022-12-12T13:54:13.975Z : -- export-test-specification.html
2022-12-12T13:54:13.976Z : -- export-test-specification.js
2022-12-12T13:54:13.976Z : -- export-test-specification.js.LICENSE.txt
2022-12-12T13:54:13.976Z : -- export-test-specification.js.map
2022-12-12T13:54:13.976Z : -- organization-settings
2022-12-12T13:54:13.976Z : Path 'C:\agents\ABC_work\1\s\dist\organization-settings is a directory. Adding all contained files (recursive). 2022-12-12T13:54:13.977Z : -- organization-settings.html 2022-12-12T13:54:13.977Z : -- organization-settings.js 2022-12-12T13:54:13.977Z : -- organization-settings.js.LICENSE.txt 2022-12-12T13:54:13.977Z : -- organization-settings.js.map 2022-12-12T13:54:13.977Z : -- projectnumber-select-panel 2022-12-12T13:54:13.977Z : Path 'C:\agents\ABC\_work\1\s\dist\projectnumber-select-panel is a directory. Adding all contained files (recursive).
2022-12-12T13:54:13.978Z : -- projectnumber-select-panel.html
2022-12-12T13:54:13.978Z : -- projectnumber-select-panel.js
2022-12-12T13:54:13.978Z : -- projectnumber-select-panel.js.LICENSE.txt
2022-12-12T13:54:13.978Z : -- projectnumber-select-panel.js.map
2022-12-12T13:54:13.978Z : Path 'C:\agents\ABC_work\1\s\resources` is a directory. Adding all contained files (recursive).
2022-12-12T13:54:13.978Z : -- logo.png
2022-12-12T13:54:13.979Z : -- prot-black.png
2022-12-12T13:54:13.979Z : -- prot-white.png
2022-12-12T13:54:13.979Z : -- spec-black.png
2022-12-12T13:54:13.979Z : -- spec-white.png
2022-12-12T13:54:13.979Z : -- test-protocol-template.docx
2022-12-12T13:54:13.979Z : -- test-specification-template.docx
2022-12-12T13:54:13.983Z : Generating [Content_Types].xml

warning: Could not determine content type for extension .docx. Defaulting to application/octet-stream. To override this, add a contentType property to this file entry in the manifest.

2022-12-12T13:54:14.012Z : Found content type for .txt: text/plain.

2022-12-12T13:54:14.037Z : Writing vsix to: C:\agents\ABC_work\1\s\deploy\extension_test\ABC-azure-devops-powertools-test-1.0.157.vsix

2022-12-12T13:54:15.127Z : Publishing C:\agents\ABC_work\1\s\deploy\extension_test\ABC-azure-devops-powertools-test-1.0.157.vsix

Checking if this extension is already published

2022-12-12T13:54:15.131Z : Read vsix as zip... Size (bytes): 3133301

2022-12-12T13:54:15.139Z : Files in the zip: ......

(node:20328) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.

(Use node --trace-warnings ... to show where the warning was created)

It is, update the extension

error: The given key was not present in the dictionary.

##[error]Cmd.exe exited with code '-1'.

Finishing: Publish Extension
ivanduplenskikh commented 1 year ago

Hi, @KubratK thanks for reporting! We are working on more prioritized issues at the moment but will get back to this one soon.