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

pbTests: Rearm Windows 2012 VF before playbook #2104

Merged
merged 1 commit into from
Apr 6, 2021
Merged
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions ansible/pbTestScripts/vagrantPlaybookCheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,11 @@ startVMPlaybookWin()
# See https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/1287#issuecomment-625142917
BUILD_ID=dontKillMe vagrant up

# Rearm the evaluation license for 180 days to stop the VMs shutting down
# See: https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/2056
vagrant winrm --shell cmd -c "slmgr.vbs /rearm //b"
vagrant reload

# 5986 refers to the winrm_ssl port on the guest
# See: https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/1504#issuecomment-672930832
vagrantPort=$(vagrant port | awk '/5986/ { print $4 }')
Expand Down