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