Skip to content

Commit

Permalink
Change infra repo to run playbook from
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Parker committed Feb 10, 2020
1 parent 9f46265 commit b50a170
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ansible/pbTestScripts/qemu_test_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ done
runPlaybook() {
local workFolder="$WORKSPACE"/qemu_pbCheck

[[ ! -d "$workFolder/openjdk-infrastructure" ]] && git clone https://github.com/adoptopenjdk/openjdk-infrastructure "$workFolder"/openjdk-infrastructure
[[ ! -d "$workFolder/openjdk-infrastructure" ]] && git clone -b qemu https://github.com/Willsparker/openjdk-infrastructure "$workFolder"/openjdk-infrastructure
cd "$workFolder"/openjdk-infrastructure/ansible || exit 1;
ansible-playbook -i "localhost:$PORTNO," --private-key "$workFolder"/id_rsa -u linux -b --skip-tags adoptopenjdk,jenkins${skipFullSetup} playbooks/AdoptOpenJDK_Unix_Playbook/main.yml 2>&1 | tee "$workFolder"/logFiles/"$ARCHITECTURE".log
if grep -q 'failed=[1-9]\|unreachable=[1-9]' "$workFolder"/logFiles/"$ARCHITECTURE".log; then
Expand All @@ -181,7 +181,7 @@ runPlaybook() {
exit 1;
fi
if [[ "$buildJDK" == true ]]; then
ssh linux@localhost -p "$PORTNO" -i "$workFolder"/id_rsa "git clone https://github.com/adoptopenjdk/openjdk-infrastructure \$HOME/openjdk-infrastructure && \$HOME/openjdk-infrastructure/ansible/pbTestScripts/buildJDK.sh"
ssh linux@localhost -p "$PORTNO" -i "$workFolder"/id_rsa "git clone -b qemu https://github.com/Willsparker/openjdk-infrastructure \$HOME/openjdk-infrastructure && \$HOME/openjdk-infrastructure/ansible/pbTestScripts/buildJDK.sh"
if [[ "$testJDK" == true ]]; then
ssh linux@localhost -p "$PORTNO" -i "$workFolder"/id_rsa "\$HOME/openjdk-infrastructure/ansible/pbTestScripts/testJDK.sh"
fi
Expand Down
2 changes: 1 addition & 1 deletion ansible/pbTestScripts/testJDK.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ mkdir -p $HOME/testLocation
$HOME/testLocation/openjdk-tests/get.sh -t $HOME/testLocation/openjdk-tests
cd $HOME/testLocation/openjdk-tests/TKG || exit 1
$MAKE_COMMAND -f run_configure.mk
export BUILD_LIST=MachineInfo
export BUILD_LIST=system
$MAKE_COMMAND compile
$MAKE_COMMAND _MachineInfo

0 comments on commit b50a170

Please sign in to comment.