Skip to content

Commit e82bfe8

Browse files
committed
Fixes #31: workaround to avoid git pipeline command failing in Jenkins
1 parent be046ba commit e82bfe8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

e2e-test/jenkinsfiles/jenkins-plugin/Jenkinsfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ node {
5050
sh 'mkdir elastest-plugin'
5151
}
5252
dir(pluginDirectory) {
53-
git 'https://github.com/elastest/elastest-jenkins.git'
53+
// Due to https://issues.jenkins-ci.org/browse/JENKINS-30600 we cannot use git here
54+
sh 'git clone https://github.com/elastest/elastest-jenkins.git'
5455
echo 'Build ElasTest plugin'
55-
sh 'pwd; ls -lrt; mvn clean package -B'
56+
// For the same reason we have to cd manually into the elastest-jenkins folder created by git
57+
sh 'cd elastest-jenkins; pwd; ls -lrt; mvn clean package -B'
5658
}
5759

5860
stage ('prepare test')
@@ -66,7 +68,7 @@ node {
6668

6769
dir(testRepositoryDirectory) {
6870
echo 'Existing files before cloning the git repository'
69-
git 'https://github.com/elastest/elastest-torm.git'
71+
sh 'git clone https://github.com/elastest/elastest-torm.git'
7072
}
7173

7274
echo 'Prepare network'

0 commit comments

Comments
 (0)