Mise à jour de 'Jenkinsfile'

This commit is contained in:
dany 2022-08-01 11:31:29 +02:00
parent 35623c8ab6
commit eab77292e9

4
Jenkinsfile vendored
View File

@ -28,6 +28,7 @@ pipeline{
{ {
stage('Test') stage('Test')
{ {
steps {
sh ''' sh '''
printenv; printenv;
echo $WORKSPACE; echo $WORKSPACE;
@ -35,7 +36,9 @@ pipeline{
find /var/jenkins_home -name "Jenkinsfile"; find /var/jenkins_home -name "Jenkinsfile";
''' '''
} }
}
stage('Remote SSH') { stage('Remote SSH') {
steps {
sshCommand remote: remote, command: ''' sshCommand remote: remote, command: '''
cd $(dirname $(find ~/jenkins/workspace/ant-http@script -name "Jenkinsfile")); cd $(dirname $(find ~/jenkins/workspace/ant-http@script -name "Jenkinsfile"));
bash test.sh; bash test.sh;
@ -44,3 +47,4 @@ pipeline{
} }
} }
} }
}