Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Initial check-in for supporting telemetry in vscode #6123

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
comment some pipeline for verifying the change (will revert after test)
  • Loading branch information
RodgeFu committed Feb 27, 2025
commit 9927ec61587297810fd94021d236701bbc9cab61
170 changes: 85 additions & 85 deletions eng/tsp-core/pipelines/publish.yml
Original file line number Diff line number Diff line change
@@ -32,88 +32,88 @@ extends:
- template: /eng/tsp-core/pipelines/jobs/build-for-publish.yml@self
- template: /eng/tsp-core/pipelines/jobs/cli/build-tsp-cli-all.yml@self

- stage: publish_npm
displayName: Publish Npm Packages
dependsOn: build

pool:
name: $(LINUXPOOL)
image: $(LINUXVMIMAGE)
os: linux

jobs:
- template: /eng/tsp-core/pipelines/jobs/publish-npm.yml
parameters:
artifactName: npm-packages-stable
tag: latest
publishGithubRelease: true

- template: /eng/tsp-core/pipelines/jobs/publish-npm.yml
parameters:
artifactName: npm-packages-next
tag: next

- stage: publish_vscode
displayName: Publish VSCode extension
dependsOn: build
jobs:
- template: /eng/tsp-core/pipelines/jobs/publish-vscode.yml

- stage: publish_vs
displayName: Publish VS extension
dependsOn: build
jobs:
- template: /eng/tsp-core/pipelines/jobs/publish-vs.yml

- template: /eng/tsp-core/pipelines/stages/sign-publish-tsp-cli.yml@self

- stage: docker
displayName: Docker
dependsOn: []
jobs:
- job: docker
displayName: Build and publish
variables:
imageName: "azsdkengsys.azurecr.io/typespec"
pool:
name: $(LINUXPOOL)
image: $(LINUXVMIMAGE)
os: linux
steps:
- task: Docker@1
displayName: login
inputs:
azureSubscriptionEndpoint: "AzureSDKEngKeyVault Secrets"
azureContainerRegistry: azsdkengsys.azurecr.io
command: login

- script: |
docker build -f ./docker/Dockerfile \
-t $(imageName):latest \
-t $(imageName):alpine \
.
displayName: "Build"
- script: docker push $(imageName) --all-tags
displayName: "Push"

- stage: validate_manifest
displayName: Validate Manifest
dependsOn: build
jobs:
- job: validate_manifest
displayName: Validate Manifest
pool:
name: $(WINDOWSPOOL)
image: $(WINDOWSVMIMAGE)
os: windows
variables:
TYPESPEC_SKIP_DOCUSAURUS_BUILD: true # Disable docusaurus build
steps:
- template: /eng/tsp-core/pipelines/templates/install.yml
- template: /eng/tsp-core/pipelines/templates/build.yml

- script: pnpm run validate-scenarios --debug
displayName: Validate Scenarios

- script: pnpm run validate-mock-apis --debug
displayName: Validate mock apis
# - stage: publish_npm
# displayName: Publish Npm Packages
# dependsOn: build

# pool:
# name: $(LINUXPOOL)
# image: $(LINUXVMIMAGE)
# os: linux

# jobs:
# - template: /eng/tsp-core/pipelines/jobs/publish-npm.yml
# parameters:
# artifactName: npm-packages-stable
# tag: latest
# publishGithubRelease: true

# - template: /eng/tsp-core/pipelines/jobs/publish-npm.yml
# parameters:
# artifactName: npm-packages-next
# tag: next

# - stage: publish_vscode
# displayName: Publish VSCode extension
# dependsOn: build
# jobs:
# - template: /eng/tsp-core/pipelines/jobs/publish-vscode.yml

# - stage: publish_vs
# displayName: Publish VS extension
# dependsOn: build
# jobs:
# - template: /eng/tsp-core/pipelines/jobs/publish-vs.yml

# - template: /eng/tsp-core/pipelines/stages/sign-publish-tsp-cli.yml@self

# - stage: docker
# displayName: Docker
# dependsOn: []
# jobs:
# - job: docker
# displayName: Build and publish
# variables:
# imageName: "azsdkengsys.azurecr.io/typespec"
# pool:
# name: $(LINUXPOOL)
# image: $(LINUXVMIMAGE)
# os: linux
# steps:
# - task: Docker@1
# displayName: login
# inputs:
# azureSubscriptionEndpoint: "AzureSDKEngKeyVault Secrets"
# azureContainerRegistry: azsdkengsys.azurecr.io
# command: login

# - script: |
# docker build -f ./docker/Dockerfile \
# -t $(imageName):latest \
# -t $(imageName):alpine \
# .
# displayName: "Build"
# - script: docker push $(imageName) --all-tags
# displayName: "Push"

# - stage: validate_manifest
# displayName: Validate Manifest
# dependsOn: build
# jobs:
# - job: validate_manifest
# displayName: Validate Manifest
# pool:
# name: $(WINDOWSPOOL)
# image: $(WINDOWSVMIMAGE)
# os: windows
# variables:
# TYPESPEC_SKIP_DOCUSAURUS_BUILD: true # Disable docusaurus build
# steps:
# - template: /eng/tsp-core/pipelines/templates/install.yml
# - template: /eng/tsp-core/pipelines/templates/build.yml

# - script: pnpm run validate-scenarios --debug
# displayName: Validate Scenarios

# - script: pnpm run validate-mock-apis --debug
# displayName: Validate mock apis
Loading
Oops, something went wrong.