Created
July 26, 2020 10:23
-
-
Save Matrix7867/775a4486fb0c2bec282829ea4f234426 to your computer and use it in GitHub Desktop.
copy_aritifact_to_jump_server
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
stage('CopyArtifactToJump') { | |
steps { | |
sshagent(credentials : ['18dddd8d7-d912-4123-bf66-303cvvvvv']) { | |
sh 'ssh -o StrictHostKeyChecking=no [email protected] uptime' | |
sh 'scp /jenkins-home/workspace/dev-build/*.tar [email protected]:/home/jenkins-sl/workspace/volan/' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment