Skip to content

Commit

Permalink
Merge pull request #4148 from zowe/user/markackert/v2x-scp-fix
Browse files Browse the repository at this point in the history
Fix scp errors in v2 automation, update upload-artifact
  • Loading branch information
MarkAckert authored Jan 28, 2025
2 parents 7a0543c + 09f6ffe commit 09b9e3e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cicd-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ jobs:
- name: '[After Test 2] Upload test report'
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: InstallTestReports-${{ env.TEST_NAME }}-${{ steps.more-test-prep.outputs.TEST_SERVER_NICKNAME }}-${{ github.run_id }}-${{ env.CURRENT_TIME }}
path: ${{ env.INSTALL_TEST_PATH }}/reports/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/diff-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: '[Build] Make diff'
run: git diff ${{ env.FROM }} ${{ env.TO }} -- schemas > schemas.diff
- name: '[Upload]'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: schemas.diff
path: schemas.diff
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/diff-yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: '[Build] Make diff'
run: git diff ${{ env.FROM }} ${{ env.TO }} -- example-zowe.yaml > example-yaml.diff
- name: '[Upload]'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: example-yaml.diff
path: example-yaml.diff
Expand Down
2 changes: 1 addition & 1 deletion playbooks/roles/common/templates/scp.with-key.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ FILE_LOCAL=$1
FILE_REMOTE=$2

echo "SCP $FILE_LOCAL ==> $FILE_REMOTE"
scp -oHostKeyAlgorithms=+ssh-rsa -P {{ hostvars[inventory_hostname].ansible_port | default('22') }} -i {{ hostvars[inventory_hostname].ansible_ssh_private_key_file }} $FILE_LOCAL {{ hostvars[inventory_hostname].ansible_user }}@{{ hostvars[inventory_hostname].ansible_ssh_host }}:$FILE_REMOTE
scp -O -oHostKeyAlgorithms=+ssh-rsa -P {{ hostvars[inventory_hostname].ansible_port | default('22') }} -i {{ hostvars[inventory_hostname].ansible_ssh_private_key_file }} $FILE_LOCAL {{ hostvars[inventory_hostname].ansible_user }}@{{ hostvars[inventory_hostname].ansible_ssh_host }}:$FILE_REMOTE
2 changes: 1 addition & 1 deletion playbooks/roles/common/templates/scp.with-pwd.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ FILE_LOCAL=$1
FILE_REMOTE=$2

echo "SCP $FILE_LOCAL ==> $FILE_REMOTE"
sshpass -p "{{ hostvars[inventory_hostname].ansible_password }}" scp -oHostKeyAlgorithms=+ssh-rsa -P {{ hostvars[inventory_hostname].ansible_port | default('22') }} $FILE_LOCAL {{ hostvars[inventory_hostname].ansible_user }}@{{ hostvars[inventory_hostname].ansible_ssh_host }}:$FILE_REMOTE
sshpass -p "{{ hostvars[inventory_hostname].ansible_password }}" scp -O -oHostKeyAlgorithms=+ssh-rsa -P {{ hostvars[inventory_hostname].ansible_port | default('22') }} $FILE_LOCAL {{ hostvars[inventory_hostname].ansible_user }}@{{ hostvars[inventory_hostname].ansible_ssh_host }}:$FILE_REMOTE

0 comments on commit 09b9e3e

Please sign in to comment.