Search code examples
mavenjenkinsjenkins-pipelinejenkins-blueoceanmaven-module

ERROR: /var/jenkins_home/workspace/gara-bo@script/Jenkinsfile not found


I have a maven multi modules project. I create a pipeline to clean and deploy my project. When I run the pipeline I got the following output :

``Started by user XXXXX
Checking out git http://XXXX:9080/gara/gara-back-end.git into /var/jenkins_home/workspace/gara-bo@script to read Jenkinsfile
using credential XXXXXXXXXXX
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url http://XXXXXXX:9080/gara/gara-back-end.git # timeout=10
Fetching upstream changes from http://XXXXX:9080/gara/gara-back-end.git
 > git --version # timeout=10
using GIT_ASKPASS to set credentials 
 > git fetch --tags --force --progress http://XXXXXX:9080/gara/gara-back-end.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision c717022003b698421698238b13e1909f555172a0 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f XXXXXXXXXXXXXXX
Commit message: "Update  Jenkinsfile"
 > git rev-list --no-walk 7XXXXXXXXXXXXXXXXXXXXXXX # timeout=10
ERROR: /var/jenkins_home/workspace/gara-bo@script/Jenkinsfile not found
Finished: FAILURE``

Why the project is checked out under gara-bo@script instead of gara-bo ? On the server, I have two folders : gara-bo and gara-bo@script

``gara-bo contains : Jenkinsfile  pom.xml  src  target  WEB-INF
gara-bo@script : gara-common  gara-dao  gara-model  gara-service  gara-web   JenkinsFile  pom.xml``

but file in the gara-bo@script are just symbolic link because when I try to read the content of JenkinsFile under gara-bo@script it is impossible.

Do you know, how could I correct it please ?


Solution

  • When I create the Jenkinsfile, i Add a space in the name. So please check that the name doesn't contain a space. You have to have "Jenkinsfile", not " Jenkinsfile" or "Jenkinsfile ", etc...