From fbc37428a847ea0977c9d0050688194720e49453 Mon Sep 17 00:00:00 2001 From: DeeDeeG Date: Fri, 3 Jul 2020 14:32:33 -0400 Subject: [PATCH] CI: Use forward-slashes in paths (cross-platform) Backslashes "\" in these paths can be interpreted as escape characters on Unix (Linux, macOS). Replace with forward-slashes, "/", which are interpreted the same (as subdirectory indicator) everywhere. --- script/vsts/nightly-release.yml | 8 ++++---- script/vsts/pull-requests.yml | 4 ++-- script/vsts/release-branch-build.yml | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/script/vsts/nightly-release.yml b/script/vsts/nightly-release.yml index 6b180b62c03..f5ebdab169e 100644 --- a/script/vsts/nightly-release.yml +++ b/script/vsts/nightly-release.yml @@ -4,10 +4,10 @@ jobs: # This has to be done separately because VSTS inexplicably # exits the script block after `npm install` completes. - script: | - cd script\vsts + cd script/vsts npm install displayName: npm install - - script: node script\vsts\get-release-version.js --nightly + - script: node script/vsts/get-release-version.js --nightly name: Version # Import OS-specific build definitions @@ -38,7 +38,7 @@ jobs: #This has to be done separately because VSTS inexplicably #exits the script block after `npm install` completes. - script: | - cd script\vsts + cd script/vsts npm install displayName: npm install @@ -49,7 +49,7 @@ jobs: displayName: Download Release Artifacts - script: | - node $(Build.SourcesDirectory)\script\vsts\upload-artifacts.js --create-github-release --assets-path "$(System.ArtifactsDirectory)" --linux-repo-name "atom" + node $(Build.SourcesDirectory)/script/vsts/upload-artifacts.js --create-github-release --assets-path "$(System.ArtifactsDirectory)" --linux-repo-name "atom" env: GITHUB_TOKEN: $(GITHUB_TOKEN) ATOM_RELEASE_VERSION: $(ReleaseVersion) diff --git a/script/vsts/pull-requests.yml b/script/vsts/pull-requests.yml index a21f7d75a3c..534f8c50e3f 100644 --- a/script/vsts/pull-requests.yml +++ b/script/vsts/pull-requests.yml @@ -6,10 +6,10 @@ jobs: # This has to be done separately because VSTS inexplicably # exits the script block after `npm install` completes. - script: | - cd script\vsts + cd script/vsts npm install displayName: npm install - - script: node script\vsts\get-release-version.js + - script: node script/vsts/get-release-version.js name: Version # Import OS-specific build definitions diff --git a/script/vsts/release-branch-build.yml b/script/vsts/release-branch-build.yml index 58c132f7d9e..6e58c986fec 100644 --- a/script/vsts/release-branch-build.yml +++ b/script/vsts/release-branch-build.yml @@ -9,10 +9,10 @@ jobs: # This has to be done separately because VSTS inexplicably # exits the script block after `npm install` completes. - script: | - cd script\vsts + cd script/vsts npm install displayName: npm install - - script: node script\vsts\get-release-version.js + - script: node script/vsts/get-release-version.js name: Version # Import OS-specific build definitions. @@ -44,7 +44,7 @@ jobs: # This has to be done separately because VSTS inexplicably # exits the script block after `npm install` completes. - script: | - cd script\vsts + cd script/vsts npm install env: GITHUB_TOKEN: $(GITHUB_TOKEN) @@ -57,7 +57,7 @@ jobs: displayName: Download Release Artifacts - script: | - node $(Build.SourcesDirectory)\script\vsts\upload-artifacts.js --create-github-release --assets-path "$(System.ArtifactsDirectory)" --linux-repo-name "atom-staging" + node $(Build.SourcesDirectory)/script/vsts/upload-artifacts.js --create-github-release --assets-path "$(System.ArtifactsDirectory)" --linux-repo-name "atom-staging" env: GITHUB_TOKEN: $(GITHUB_TOKEN) ATOM_RELEASE_VERSION: $(ReleaseVersion) @@ -69,7 +69,7 @@ jobs: condition: and(succeeded(), eq(variables['Atom.AutoDraftRelease'], 'true'), eq(variables['IsReleaseBranch'], 'true')) - script: | - node $(Build.SourcesDirectory)\script\vsts\upload-artifacts.js --assets-path "$(System.ArtifactsDirectory)" --s3-path "vsts-artifacts/$(Build.BuildId)/" + node $(Build.SourcesDirectory)/script/vsts/upload-artifacts.js --assets-path "$(System.ArtifactsDirectory)" --s3-path "vsts-artifacts/$(Build.BuildId)/" env: ATOM_RELEASE_VERSION: $(ReleaseVersion) ATOM_RELEASES_S3_KEY: $(ATOM_RELEASES_S3_KEY)