mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:05:50 +00:00
testing scp and ssh
This commit is contained in:
parent
2041063860
commit
ae19cced5f
2 changed files with 4 additions and 2 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -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
2
test.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
echo 'TESTING JF' >> jfile.txt
|
Loading…
Reference in a new issue