Ich habe eine Jenkins 1.6 läuft auf Openshift. Ich versuche, eine einfache Jenkins Pipeline zu bauen, die aus einem Git-Repository erstellt:Basic Jenkins Pipeline schlägt fehl
node {
git url: 'https://github.com/fmarchioni/kitchensink-example.git'
def mvnHome = tool 'M3'
sh "${mvnHome}/bin/mvn clean install"
}
Wenn ich versuche, die Pipeline zu bauen, es nicht mit einer unklaren Nachricht:
[Pipeline] node
Running on master in /var/lib/jenkins/jobs/pipeline/workspace
[Pipeline] {
[Pipeline] git
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/fmarchioni/kitchensink-example.git # timeout=10
Fetching upstream changes from https://github.com/fmarchioni/kitchensink-example.git
> git --version # timeout=10
> git -c core.askpass=true fetch --tags --progress https://github.com/fmarchioni/kitchensink-example.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 90df980f2c86f9a59d872bc8650ecfd0800c51bd (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 90df980f2c86f9a59d872bc8650ecfd0800c51bd # timeout=10
> git branch -a -v --no-abbrev # timeout=10
> git branch -D master # timeout=10
> git checkout -b master 90df980f2c86f9a59d872bc8650ecfd0800c51bd
First time build. Skipping changelog.
[Pipeline] tool
[Pipeline] sh
[workspace] Running shell script
+ /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/M3/bin/mvn clean install
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code -1
Finished: FAILURE
Haben Sie irgendwelche Vorstellung von was könnte falsch sein? Danke