We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4aadfda commit cf5de9cCopy full SHA for cf5de9c
1 file changed
Build/cg/cg.yml
@@ -98,9 +98,20 @@ extends:
98
- script: mkdir $(Build.ArtifactStagingDirectory)\Extension
99
displayName: Create Extension Staging Directory
100
101
- - script: yarn run vsix-prepublish
+ - task: Bash@3
102
displayName: Build files
103
- workingDirectory: $(Build.SourcesDirectory)\Extension
+ inputs:
104
+ targetType: 'inline'
105
+ script: |
106
+ export SRC_DIR=$(echo $BUILD_SOURCESDIRECTORY | sed 's|\\|/|g')
107
+ cd "$SRC_DIR/Extension"
108
+ yarn run vsix-prepublish
109
+ if [ $? -ne 0 ]; then
110
+ echo "yarn run vsix-prepublish failed, sleeping for 30s before retrying..."
111
+ sleep 30
112
+ exit 1
113
+ fi
114
+ retryCountOnTaskFailure: 3
115
116
- script: |
117
cd $(Build.SourcesDirectory)\Extension
0 commit comments