Skip to content

Commit

Permalink
Resolve Windows chromium path and add jdk20 tool on Jenkins (#301)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon authored Jun 12, 2023
1 parent d63044a commit 4913969
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 1 addition & 3 deletions packer/scripts/windows/scoop-install-commons.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,8 @@ $chromiumName = 'chrome.exe'
$chromiumDir = 'C:\\Users\\Administrator\\scoop\\apps\\chromium'
$chromiumFound = (Get-ChildItem -Path $chromiumDir -Filter $chromiumName -Recurse | %{$_.FullName} | select -first 1)
$chromiumFound
$chromiumPathFound = $chromiumFound.replace("$chromiumName", '')
$chromiumPathFound
# Add BROWSER_PATH path to User Env Var for cypress test to retrieve chromium.exe path
[System.Environment]::SetEnvironmentVariable("BROWSER_PATH", "$chromiumPathFound", [System.EnvironmentVariableTarget]::User)
[System.Environment]::SetEnvironmentVariable("BROWSER_PATH", "$chromiumFound", [System.EnvironmentVariableTarget]::User)

# Install ruby24
scoop install ruby24
Expand Down
6 changes: 6 additions & 0 deletions resources/baseJenkins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ tool:
installers:
- adoptOpenJdkInstaller:
id: "jdk-19.0.1+10"
- name: "openjdk-20"
properties:
- installSource:
installers:
- adoptOpenJdkInstaller:
id: "jdk-20.0.1+9"
mavenGlobalConfig:
globalSettingsProvider: "standard"
settingsProvider: "standard"
Expand Down

0 comments on commit 4913969

Please sign in to comment.