When using the Maven Release Plugin with git and jenkins I got the error
1 2 3 4 5 |
[INFO] Executing: /bin/sh -c cd /home/tom1299/jenkins/workspace/cloud-examples-release && git symbolic-ref HEAD ... [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5:prepare (default-cli) on project cloud-examples: An error is occurred in the checkin process: Exception while executing SCM command. Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref -> [Help 1] |
during the prepare goal. Fortunately their is an easy solution: Continue reading Maven release plugin & jenkins & git error: “HEAD is not a symbolic ref”