arturobernalg opened a new pull request, #618: URL: https://github.com/apache/jspwiki/pull/618
The stages of the Jenkinsfile clone the repository with `git url: buildRepo`, which checks out the default branch. The Jenkins builds of pull requests therefore use the Jenkinsfile of the pull request but compile master. The logs show it: build #1 of PR-610 and of PR-604 both say "Checking out Revision ... (refs/remotes/origin/master)", with a revision that is not the one of the pull request. A green build of a pull request says nothing about its code. The stages now use `checkout scm`, which checks out the branch or the pull request that triggered the build, and the unused buildRepo variable is removed. The same change for master-2.x is in #617, where the same cause makes every build fail at the JDK check. I cannot run the Jenkinsfile outside Jenkins. What is checked is the cause, from the logs above; the build of this pull request on Jenkins is the test of the change. Once it checks out the real code, a pull request that was green before may fail, which would be the first time its own code is built. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
