From ae19cced5fe6e7f3e8bb524d9bcd8e79ebcba340 Mon Sep 17 00:00:00 2001 From: Jordan A Date: Thu, 9 May 2019 12:45:43 -0700 Subject: [PATCH] testing scp and ssh --- Jenkinsfile | 4 ++-- test.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 test.sh diff --git a/Jenkinsfile b/Jenkinsfile index 3e2aa5a0d..3b857dd56 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,8 +23,8 @@ pipeline { } } steps { - sh 'ssh -p 2223 vagrant@192.168.0.18' - sh 'sudo systemctl status tomcat' + sh 'scp -P 2223 -r test.sh vagrant@192.168.0.18:/home/vagrant/.' + sh 'ssh -p 2223 vagrant@192.168.0.18 < test.sh' } } } diff --git a/test.sh b/test.sh new file mode 100644 index 000000000..1cd42a7bf --- /dev/null +++ b/test.sh @@ -0,0 +1,2 @@ +#!/bin/bash +echo 'TESTING JF' >> jfile.txt