File tree Expand file tree Collapse file tree 2 files changed +24
-40
lines changed Expand file tree Collapse file tree 2 files changed +24
-40
lines changed Original file line number Diff line number Diff line change @@ -42,24 +42,16 @@ extends:
4242 downloadType : specific
4343 targetPath : ' $(Build.SourcesDirectory)'
4444 steps :
45- - task : AzureCLI@2
46- displayName : ' VSCE Publish '
45+ - task : Bash@3
46+ displayName : Build Toolkit Libs@$(TOOLKIT_BRANCH)
4747 inputs :
48- azureSubscription : ' VSCode-Ext-Publishing'
49- scriptType : pscore
50- scriptLocation : inlineScript
51- inlineScript : |
52- $files = Get-ChildItem -Path "$(Build.SourcesDirectory)" -Recurse -Filter "azure-toolkit-for-intellij-*.zip"
53-
54- foreach ($file in $files) {
55- $headers = @{
56- "Authorization" = "Bearer $(TOKEN)"
57- }
58- $form = @{
59- "pluginId" = "8053"
60- "file" = Get-Item $file.FullName
61- "channel" = "dev"
62- }
63-
64- Invoke-RestMethod -Uri "https://plugins.jetbrains.com/plugin/uploadPlugin" -Method Post -Headers $headers -Form $form -Verbose
65- }
48+ targetType : inline
49+ script : |-
50+ # Write your commands here
51+ files=$(find $(Build.SourcesDirectory) -type f -iname "azure-toolkit-for-intellij-*.zip")
52+ echo "Found files: $files"
53+ for file in $files;
54+ do
55+ echo "Processing file: $file"
56+ # curl -i --header "Authorization: Bearer $(TOKEN)" -F pluginId=8053 -F file=@$file -F channel=dev https://plugins.jetbrains.com/plugin/uploadPlugin;
57+ done
Original file line number Diff line number Diff line change @@ -42,24 +42,16 @@ extends:
4242 downloadType : specific
4343 targetPath : ' $(Build.SourcesDirectory)'
4444 steps :
45- - task : AzureCLI@2
46- displayName : ' VSCE Publish '
45+ - task : Bash@3
46+ displayName : Build Toolkit Libs@$(TOOLKIT_BRANCH)
4747 inputs :
48- azureSubscription : ' VSCode-Ext-Publishing'
49- scriptType : pscore
50- scriptLocation : inlineScript
51- inlineScript : |
52- $files = Get-ChildItem -Path "$(Build.SourcesDirectory)" -Recurse -Filter "azure-toolkit-for-intellij-*.zip"
53-
54- foreach ($file in $files) {
55- $headers = @{
56- "Authorization" = "Bearer $(TOKEN)"
57- }
58- $form = @{
59- "pluginId" = "8053"
60- "file" = Get-Item $file.FullName
61- "channel" = "stable"
62- }
63-
64- Invoke-RestMethod -Uri "https://plugins.jetbrains.com/plugin/uploadPlugin" -Method Post -Headers $headers -Form $form -Verbose
65- }
48+ targetType : inline
49+ script : |-
50+ # Write your commands here
51+ files=$(find $(Build.SourcesDirectory) -type f -iname "azure-toolkit-for-intellij-*.zip")
52+ echo "Found files: $files"
53+ for file in $files;
54+ do
55+ echo "Processing file: $file"
56+ # curl -i --header "Authorization: Bearer $(TOKEN)" -F pluginId=8053 -F file=@$file -F channel=stable https://plugins.jetbrains.com/plugin/uploadPlugin;
57+ done
You can’t perform that action at this time.
0 commit comments