testing scp and ssh

This commit is contained in:
Jordan A 2019-05-09 12:45:43 -07:00
parent 2041063860
commit ae19cced5f
2 changed files with 4 additions and 2 deletions

4
Jenkinsfile vendored
View file

@ -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'
}
}
}

2
test.sh Normal file
View file

@ -0,0 +1,2 @@
#!/bin/bash
echo 'TESTING JF' >> jfile.txt