-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jobs/scripts/common: Drop duplicate shell options
- Loading branch information
Showing
3 changed files
with
2 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
#!/bin/bash | ||
# A script that reserve nodes from pool | ||
|
||
set +x | ||
|
||
mkdir -p ~/.config | ||
|
||
cat > ~/.config/duffy <<EOF | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
#!/bin/bash | ||
# A script that releases nodes from session ids | ||
|
||
set +x | ||
|
||
SESSION_ID=$(cat "${WORKSPACE}"/session_id) | ||
|
||
duffy client retire-session "${SESSION_ID}" > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
set +x | ||
#!/bin/bash | ||
|
||
scp -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /duffy-ssh-key/ssh-privatekey root@$(cat $WORKSPACE/hosts): | ||
ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@$(cat $WORKSPACE/hosts) "chmod 0600 ~/ssh-privatekey" |