Mise à jour de 'Jenkinsfile'
This commit is contained in:
parent
35623c8ab6
commit
eab77292e9
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -28,6 +28,7 @@ pipeline{
|
||||
{
|
||||
stage('Test')
|
||||
{
|
||||
steps {
|
||||
sh '''
|
||||
printenv;
|
||||
echo $WORKSPACE;
|
||||
@ -35,7 +36,9 @@ pipeline{
|
||||
find /var/jenkins_home -name "Jenkinsfile";
|
||||
'''
|
||||
}
|
||||
}
|
||||
stage('Remote SSH') {
|
||||
steps {
|
||||
sshCommand remote: remote, command: '''
|
||||
cd $(dirname $(find ~/jenkins/workspace/ant-http@script -name "Jenkinsfile"));
|
||||
bash test.sh;
|
||||
@ -43,4 +46,5 @@ pipeline{
|
||||
sshCommand remote: remote, command: "for i in {1..5}; do echo -n \"Loop \$i \"; date ; sleep 1; done"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user