22set -e
33
44cd $BUILD_STAGINGDIRECTORY
5- git clone https://github.com/microsoft/vscode-telemetry-extractor.git
6- cd vscode-telemetry-extractor
7- git checkout 4e64f3de30f8fccb58ebdc0d85c4861a135d46cf
8- npm i
9- npm run compile
10- cd src
11- mkdir telemetry-sources
12- cd telemetry-sources
5+ mkdir extraction
6+ cd extraction
137git clone --depth 1 https://github.com/Microsoft/vscode-extension-telemetry.git
148git clone --depth 1 https://github.com/Microsoft/vscode-chrome-debug-core.git
15- git clone --depth 1 https://github.com/Microsoft/vscode-chrome-debug.git
169git clone --depth 1 https://github.com/Microsoft/vscode-node-debug2.git
1710git clone --depth 1 https://github.com/Microsoft/vscode-node-debug.git
18- git clone --depth 1 https://github.com/Microsoft/vscode-docker.git
19- git clone --depth 1 https://github.com/Microsoft/vscode-go.git
20- git clone --depth 1 https://github.com/Microsoft/vscode-azure-account.git
2111git clone --depth 1 https://github.com/Microsoft/vscode-html-languageservice.git
2212git clone --depth 1 https://github.com/Microsoft/vscode-json-languageservice.git
23- git clone --depth 1 https://github.com/Microsoft/vscode-mono-debug.git
24- git clone --depth 1 https://github.com/Microsoft/TypeScript.git
25- cd ../../
26- node ./out/cli-extract.js --sourceDir $BUILD_SOURCESDIRECTORY --excludedDirPattern extensions --outputDir . --applyEndpoints --includeIsMeasurement
27- node ./out/cli-extract-extensions.js --sourceDir ./src/telemetry-sources --outputDir . --applyEndpoints --includeIsMeasurement
13+ $BUILD_SOURCESDIRECTORY /build/node_modules/.bin/vscode-telemetry-extractor --sourceDir $BUILD_SOURCESDIRECTORY --excludedDir $BUILD_SOURCESDIRECTORY /extensions --outputDir . --applyEndpoints
14+ $BUILD_SOURCESDIRECTORY /build/node_modules/.bin/vscode-telemetry-extractor --config $BUILD_SOURCESDIRECTORY /build/azure-pipelines/common/telemetry-config.json -o .
2815mkdir -p $BUILD_SOURCESDIRECTORY /.build/telemetry
2916mv declarations-resolved.json $BUILD_SOURCESDIRECTORY /.build/telemetry/telemetry-core.json
30- mv declarations-extensions-resolved.json $BUILD_SOURCESDIRECTORY /.build/telemetry/telemetry-extensions.json
17+ mv config-resolved.json $BUILD_SOURCESDIRECTORY /.build/telemetry/telemetry-extensions.json
18+ cd ..
19+ rm -rf extraction
0 commit comments