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')
|
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{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user