Skip to content

Commit

Permalink
CI: Set vstsFeed with an environment variable
Browse files Browse the repository at this point in the history
Visit "https://feeds.dev.azure.com/${YOUR_ORGANIZATION_HERE}/_apis/packaging/feeds"
to find the "fullyQualifiedId" of your organization's
default artifact feed. That value is what you should set
the "ARTIFACT_FEED" environment variable to in Azure DevOps UI.

(IDs are formatted like this: "af6c77da-ef34-bcde-daaf-e2b489a23b2c")

The "description" for the feed should say "Default feed for ${organization}",
e.g. "Default feed for atomcommunity". If the description says something else,
or "null", then it's the wrong feed.
  • Loading branch information
DeeDeeG committed Jul 8, 2020
1 parent adaefd5 commit 53b6523
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions script/vsts/platforms/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
inputs:
keyfile: 'package.json, script/vsts/platforms/linux.yml, **/package-lock.json, !**/node_modules/**/package-lock.json, !**/.*/**/package-lock.json'
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
vstsFeed: 'bae1bc26-220d-43c7-a955-4de039370de2'
vstsFeed: $(ARTIFACT_FEED)

- script: script/bootstrap
displayName: Bootstrap build environment
Expand All @@ -52,7 +52,7 @@ jobs:
inputs:
keyfile: 'package.json, script/vsts/platforms/linux.yml, **/package-lock.json, !**/node_modules/**/package-lock.json, !**/.*/**/package-lock.json'
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
vstsFeed: 'bae1bc26-220d-43c7-a955-4de039370de2'
vstsFeed: $(ARTIFACT_FEED)

- script: script/lint
displayName: Run linter
Expand Down
6 changes: 3 additions & 3 deletions script/vsts/platforms/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
inputs:
keyfile: 'package.json, script/vsts/platforms/macos.yml, **/package-lock.json, !**/node_modules/**/package-lock.json, !**/.*/**/package-lock.json'
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
vstsFeed: 'bae1bc26-220d-43c7-a955-4de039370de2'
vstsFeed: $(ARTIFACT_FEED)

- script: script/bootstrap
displayName: Bootstrap build environment
Expand All @@ -41,7 +41,7 @@ jobs:
inputs:
keyfile: 'package.json, script/vsts/platforms/macos.yml, **/package-lock.json, !**/node_modules/**/package-lock.json, !**/.*/**/package-lock.json'
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
vstsFeed: 'bae1bc26-220d-43c7-a955-4de039370de2'
vstsFeed: $(ARTIFACT_FEED)

- script: script/lint
displayName: Run linter
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
inputs:
keyfile: 'package.json, script/vsts/platforms/macos.yml, **/package-lock.json, !**/node_modules/**/package-lock.json, !**/.*/**/package-lock.json'
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
vstsFeed: 'bae1bc26-220d-43c7-a955-4de039370de2'
vstsFeed: $(ARTIFACT_FEED)

# The artifact caching task does not work on forks, so we need to
# bootstrap again for pull requests coming from forked repositories.
Expand Down
8 changes: 4 additions & 4 deletions script/vsts/platforms/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ jobs:
inputs:
keyfile: 'package.json, script/vsts/platforms/windows.yml, **/package-lock.json, !**/node_modules/**/package-lock.json, !**/.*/**/package-lock.json, script/vsts/x64-cache-key'
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
vstsFeed: 'bae1bc26-220d-43c7-a955-4de039370de2'
vstsFeed: $(ARTIFACT_FEED)
condition: eq(variables['buildArch'], 'x64')

- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
displayName: Restore node_modules cache (x86)
inputs:
keyfile: 'package.json, script/vsts/platforms/windows.yml, **/package-lock.json, !**/node_modules/**/package-lock.json, !**/.*/**/package-lock.json, script/vsts/x86-cache-key'
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
vstsFeed: 'bae1bc26-220d-43c7-a955-4de039370de2'
vstsFeed: $(ARTIFACT_FEED)
condition: eq(variables['buildArch'], 'x86')

- script: |
Expand All @@ -80,15 +80,15 @@ jobs:
inputs:
keyfile: 'package.json, script/vsts/platforms/windows.yml, **/package-lock.json, !**/node_modules/**/package-lock.json, !**/.*/**/package-lock.json, script/vsts/x64-cache-key'
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
vstsFeed: 'bae1bc26-220d-43c7-a955-4de039370de2'
vstsFeed: $(ARTIFACT_FEED)
condition: eq(variables['buildArch'], 'x64')

- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
displayName: Save node_modules cache (x86)
inputs:
keyfile: 'package.json, script/vsts/platforms/windows.yml, **/package-lock.json, !**/node_modules/**/package-lock.json, !**/.*/**/package-lock.json, script/vsts/x86-cache-key'
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
vstsFeed: 'bae1bc26-220d-43c7-a955-4de039370de2'
vstsFeed: $(ARTIFACT_FEED)
condition: eq(variables['buildArch'], 'x86')

- script: node script\vsts\windows-run.js script\lint.cmd
Expand Down

0 comments on commit 53b6523

Please sign in to comment.