Comments (14)
can you let me know what command line switches you're using (obviously obfuscating any password type information)?
from jenkins-build-per-branch.
Hi,
I'm having the same issue. My switches are:
-DjenkinsUrl=http://localhost:8080/
[email protected]:{repo}
-DtemplateJobPrefix=Rails
-DtemplateBranchName=master
-DnestedView=Rails-Branches
-DdryRun=true
-DjenkinsUser={user}
-DjenkinsPassword={apikey}
from jenkins-build-per-branch.
What version of groovy do you have installed? findResults
was [added somewhat recently](http://groovy.codehaus.org/groovy-jdk/java/util/Collection.html#findResults(groovy.lang.Closure), and the jenkins-build-per-branch project requires at least 1.8.1 (though I don't think we have this noted anywhere).
from jenkins-build-per-branch.
Here's my groovy:
$ groovy -v
Groovy Version: 1.8.6 JVM: 1.6.0_24 Vendor: Sun Microsystems Inc. OS: Linux
I'm on Ubuntu 12.04 also, if that helps.
from jenkins-build-per-branch.
I was able to make it work by ticking the 'Use Gradle Wrapper' option that the Invoke Gradle step provides. Not sure how/why that improved it (the download even implied that it was using Groovy 1.7.0 or so). But at any rate, looks to work. Thanks for keeping this project up and running.
from jenkins-build-per-branch.
I am experiencing the same problem and not sure how to resolve it. Selecting 'Use Gradle Wrapper' did not help.
from jenkins-build-per-branch.
If the error you're getting is
No signature of method: java.util.ArrayList.findResults()
I can almost guarantee that the version of groovy that Jenkins is executing build-per-branch with is old. That's the error message you get when a method doesn't exist and this method didn't exist till recent versions. Please look to see if you've got the latest version of the plugins installed.
from jenkins-build-per-branch.
Had the same problem as @jlaxson, 'Use Gradle Wrapper' resolved the issue.
@akoumjian the following is an excerpt of the output after switching to 'Use Gradle Wrapper', might help in diagnosing your issue.
Downloading http://services.gradle.org/distributions/gradle-1.0-bin.zip
...
Unzipping /var/lib/jenkins/.gradle/wrapper/dists/gradle-1.0-bin/3712n820lsda7ntccvm5qn52st/gradle-1.0-bin.zip to /var/lib/jenkins/.gradle/wrapper/dists/gradle-1.0-bin/3712n820lsda7ntccvm5qn52st
Set executable permissions for: /var/lib/jenkins/.gradle/wrapper/dists/gradle-1.0-bin/3712n820lsda7ntccvm5qn52st/gradle-1.0/bin/gradle
:compileJava UP-TO-DATE
:compileGroovy
Download http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.2.0/ivy-2.2.0.pom
Download http://repo1.maven.org/maven2/org/apache/apache/7/apache-7.pom
Download http://repo1.maven.org/maven2/commons-cli/commons-cli/1.2/commons-cli-1.2.pom
Download http://repo1.maven.org/maven2/org/apache/commons/commons-parent/11/commons-parent-11.pom
Download http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom
Download http://repo1.maven.org/maven2/org/codehaus/groovy/modules/http-builder/http-builder/0.5.2/http-builder-0.5.2.pom
Download http://repo1.maven.org/maven2/org/codehaus/groovy/groovy-all/1.8.6/groovy-all-1.8.6.pom
Download http://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.0.3/httpclient-4.0.3.pom
Download http://repo1.maven.org/maven2/org/apache/httpcomponents/httpcomponents-client/4.0.3/httpcomponents-client-4.0.3.pom
Download http://repo1.maven.org/maven2/org/apache/httpcomponents/project/4.1/project-4.1.pom
Download http://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.3/json-lib-2.3.pom
Download http://repo1.maven.org/maven2/org/codehaus/groovy/groovy/1.7.11/groovy-1.7.11.pom
Download http://repo1.maven.org/maven2/net/sourceforge/nekohtml/nekohtml/1.9.9/nekohtml-1.9.9.pom
Download http://repo1.maven.org/maven2/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.pom
Download http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom
Download http://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.pom
Download http://repo1.maven.org/maven2/org/apache/httpcomponents/httpcomponents-core/4.0.1/httpcomponents-core-4.0.1.pom
Download http://repo1.maven.org/maven2/org/apache/httpcomponents/project/4.0/project-4.0.pom
Download http://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom
Download http://repo1.maven.org/maven2/org/apache/commons/commons-parent/5/commons-parent-5.pom
Download http://repo1.maven.org/maven2/commons-codec/commons-codec/1.3/commons-codec-1.3.pom
Download http://repo1.maven.org/maven2/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.pom
Download http://repo1.maven.org/maven2/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.pom
Download http://repo1.maven.org/maven2/org/apache/commons/commons-parent/9/commons-parent-9.pom
Download http://repo1.maven.org/maven2/commons-lang/commons-lang/2.4/commons-lang-2.4.pom
Download http://repo1.maven.org/maven2/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.pom
Download http://repo1.maven.org/maven2/antlr/antlr/2.7.7/antlr-2.7.7.pom
Download http://repo1.maven.org/maven2/asm/asm/3.2/asm-3.2.pom
Download http://repo1.maven.org/maven2/asm/asm-parent/3.2/asm-parent-3.2.pom
Download http://repo1.maven.org/maven2/asm/asm-commons/3.2/asm-commons-3.2.pom
Download http://repo1.maven.org/maven2/asm/asm-util/3.2/asm-util-3.2.pom
Download http://repo1.maven.org/maven2/asm/asm-analysis/3.2/asm-analysis-3.2.pom
Download http://repo1.maven.org/maven2/asm/asm-tree/3.2/asm-tree-3.2.pom
Download http://repo1.maven.org/maven2/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.pom
Download http://repo1.maven.org/maven2/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.pom
Download http://repo1.maven.org/maven2/org/apache/apache/1/apache-1.pom
Download http://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.3/json-lib-2.3-jdk15.jar
:processResources UP-TO-DATE
from jenkins-build-per-branch.
I had the same error and found that there were both groovy-all-1.8.6.jar and groovy-1.7.11.jar in dependent libraries.
After removing groovy-1.7.11.jar, it got to work fine.
I guess the duplication makes things bad,
but I don't know which library depends on groovy-1.7.11 and how to remove the dependency.
from jenkins-build-per-branch.
I've set this up multiple times now on multiple different Jenkins instances and have yet to encounter an issue where an old version of Groovy (lacking the findResults() method) was getting used. I've not used the gradle wrapper on any of these setups, and can only assume at this point that problems encountered are the result of an old version of Groovy configured on the problem Jenkins instances.
It would make sense that the gradle wrapper works because the correct version of groovy is bundled with it and should be used in place of any other versions of groovy that might be setup within Jenkins or otherwise setup in the environment of the user running Jenkins when the "Use Gradle Wrapper" is selected.
I'm going to suggest that this issue be closed unless we hear otherwise from previous commenters. If still interested please speak up and I'd be happy to offer some additional troubleshooting assistance.
from jenkins-build-per-branch.
Actually I think this may be caused by the fact that we only define what version of groovy to use for gradle's groovy configuration and not specifically for compilation. I believe that used to be sufficient but has since changed in newer versions of grails and is no longer the preferred method, and from what I'm gathering could even be problematic.
After taking a peak it appears http-builder has a dependency on an older version of groovy. I'm wondering if the right combination of the aforementioned change in dependency definitions, the stale dependency from http-builder, and the right version(s) of gradle are the cause of this.
If someone who witnessed this issue is still able to reproduce it when unchecking "Use Gradle Wrapper" could you be so kind as to let me know what version of gradle you are using?
from jenkins-build-per-branch.
Sorry I don't have access to that jenkins setup anymore. 😩
from jenkins-build-per-branch.
It happens to me on ubuntu 12.04
> gradle --version
------------------------------------------------------------
Gradle 1.0-milestone-3
------------------------------------------------------------
Gradle build time: Thursday, September 8, 2011 4:06:52 PM UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.8.2 compiled on December 3 2011
Ivy: non official version
JVM: 1.6.0_27 (Sun Microsystems Inc. 20.0-b12)
OS: Linux 3.2.0-23-generic amd64
> lsb_release -idc
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Codename: precise
from jenkins-build-per-branch.
Filing bankruptcy on this. Since upgrading the groovy version in the build file we have not heard anything more. Please reopen if otherwise.
from jenkins-build-per-branch.
Related Issues (20)
- Couldn't find crumbIssuer for Jenkins HOT 1
- Caused by: java.lang.Exception: Unexpected failure on /job/build/doDelete: HTTP/1.1 403 Forbidden 403
- :syncWithRepo FAILED
- Support Multiple SCM Plugin HOT 2
- Could not find method groovy() for arguments [org.codehaus.groovy:groovy-all:1.8.8] on root project HOT 8
- Server Error 500 issues with scalability? HOT 3
- Need a bit more control over git branch name propagation
- Support for Nested View without views creation
- Unable to find any jobs matching template regex: ^(myProject-[^-]*)-(feature)$ HOT 1
- Issue when creating a new job from a new branch HOT 2
- Not requiring something in the middle between prefix and branch name HOT 2
- Incorrect branch names in newly spawned jobs HOT 4
- Columns of a nested view are not created in Jenkins ver. 1.609.1 HOT 4
- Downstream builds are updating with correct project name HOT 1
- NullPointerException while dryrunning and generating branches
- Does not work with version of 2.x of gradle
- Newly cloned jobs are not buildable and therefore polling does not work HOT 5
- Documentation page is down HOT 2
- Too "loose" regex in nested views
- Error 403 (forbidden) if security is enabled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jenkins-build-per-branch.