Re: Build ERROR
After you applied the recommended settings? Garami Gábor gabor.gar...@hron.me Skype: hron84 Tel: +36 20 235 9621 Sent from my T-Mobile G2 Ezt a levelet telefonról adták fel, ékezethibákat tartalmazhat. 2012.12.06. 17:44, El alaoui Mohamed Reda inforedas...@gmail.com ezt írta: on local it's okey but in JEKINS also the same problem :( 2012/12/6 Jeff Williams je...@wherethebitsroam.com For your local build, write: export MAVEN_OPTS='-Xmx1024m -XX:MaxPermSize=512m' then run the build as normal (again, check the numbers for your environment) For jenkins, follow my instructions below. Jeff On Dec 6, 2012, at 3:52 PM, El alaoui Mohamed Reda wrote: non i have the same problem also :( in jenkins and in the local Build in the directory of project 2012/12/6 Jeff Williams je...@wherethebitsroam.com You are running out of PermGen space! try adding something like: -Xmx1024m -XX:MaxPermSize=512m to the Maven Project Configuration on the Manage Jenkins Configure System page PastedGraphic-5.png Where: -Xmx give the maximum heap size, and -XX:MaxPermSize increases the size of the PermGen space You can look up and configure these as applicable for your environment Jeff On Dec 6, 2012, at 3:16 PM, japinder gill wrote: whts the RAM size of your server? may be you can chk by setting heap size. On Thursday, December 6, 2012 7:01:05 PM UTC+5:30, Capfo wrote: hello i have a probleme with JENKINS it's a new installation when i do some test with a meven code source 2.2.1 and 2.2.2 when i make mvn clean install -Dmaven.test.skip=true the Build it's OK but when i make : mvn clean install i have this error : The same Error in local Build and in Jenkins thnks ERROR] BUILD FAILURE[INFO] --**--** [INFO] Compilation failure Failure executing javac, but could not parse the error: The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.**defineClass1(Native Method) at java.lang.ClassLoader.**defineClassCond(ClassLoader.**java:631) at java.lang.ClassLoader.**defineClass(ClassLoader.java:**615) at java.security.**SecureClassLoader.defineClass(**SecureClassLoader.java:141) at java.net.URLClassLoader.**defineClass(URLClassLoader.**java:283) at java.net.URLClassLoader.**access$000(URLClassLoader.**java:58) at java.net.URLClassLoader$1.run(**URLClassLoader.java:197) at java.security.**AccessController.doPrivileged(**Native Method) at java.net.URLClassLoader.**findClass(URLClassLoader.java:**190) at org.codehaus.plexus.compiler.**javac.IsolatedClassLoader.**loadClass(IsolatedClassLoader.**java:56) at com.sun.tools.javac.util.**DefaultFileManager$**ZipFileIndexArchive.**getFileObject(**DefaultFileManager.java:1656) at com.sun.tools.javac.util.**DefaultFileManager.**listDirectory(**DefaultFileManager.java:333) at com.sun.tools.javac.util.**DefaultFileManager.list(**DefaultFileManager.java:852) at com.sun.tools.javac.jvm.**ClassReader.fillIn(**ClassReader.java:2123) at com.sun.tools.javac.jvm.**ClassReader.complete(**ClassReader.java:1781) at com.sun.tools.javac.code.**Symbol.complete(Symbol.java:**386) at com.sun.tools.javac.comp.**MemberEnter.visitTopLevel(**MemberEnter.java:495) at com.sun.tools.javac.tree.**JCTree$JCCompilationUnit.**accept(JCTree.java:446) at com.sun.tools.javac.comp.**MemberEnter.memberEnter(**MemberEnter.java:387) at com.sun.tools.javac.comp.**MemberEnter.complete(**MemberEnter.java:819) at com.sun.tools.javac.code.**Symbol.complete(Symbol.java:**386) at com.sun.tools.javac.code.**Symbol$ClassSymbol.complete(**Symbol.java:763) at com.sun.tools.javac.comp.**Enter.complete(Enter.java:464) at com.sun.tools.javac.comp.**Enter.main(Enter.java:442) at com.sun.tools.javac.main.**JavaCompiler.enterTrees(**JavaCompiler.java:819) at com.sun.tools.javac.main.**JavaCompiler.compile(**JavaCompiler.java:727) at com.sun.tools.javac.main.Main.**compile(Main.java:353) at com.sun.tools.javac.main.Main.**compile(Main.java:279) at com.sun.tools.javac.main.Main.**compile(Main.java:270) at com.sun.tools.javac.Main.**compile(Main.java:87) at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native Method) at sun.reflect.**NativeMethodAccessorImpl.**invoke(**NativeMethodAccessorImpl.java:**39) [INFO] --**--** [INFO] For more information, run Maven with the -e switch [INFO] --**--** [INFO] Total time: 2 minutes 27 seconds [INFO] Finished at: Thu Dec 06 13:50:27 CET 2012 [INFO] Final Memory: 52M/259M [INFO] --**--** Build step 'Invoquer les cibles Maven de
Re: Build ERROR
yes after applying the recommended setting 2012/12/7 Gábor Garami gabor.gar...@hron.me After you applied the recommended settings? Garami Gábor gabor.gar...@hron.me Skype: hron84 Tel: +36 20 235 9621 Sent from my T-Mobile G2 Ezt a levelet telefonról adták fel, ékezethibákat tartalmazhat. 2012.12.06. 17:44, El alaoui Mohamed Reda inforedas...@gmail.com ezt írta: on local it's okey but in JEKINS also the same problem :( 2012/12/6 Jeff Williams je...@wherethebitsroam.com For your local build, write: export MAVEN_OPTS='-Xmx1024m -XX:MaxPermSize=512m' then run the build as normal (again, check the numbers for your environment) For jenkins, follow my instructions below. Jeff On Dec 6, 2012, at 3:52 PM, El alaoui Mohamed Reda wrote: non i have the same problem also :( in jenkins and in the local Build in the directory of project 2012/12/6 Jeff Williams je...@wherethebitsroam.com You are running out of PermGen space! try adding something like: -Xmx1024m -XX:MaxPermSize=512m to the Maven Project Configuration on the Manage Jenkins Configure System page PastedGraphic-5.png Where: -Xmx give the maximum heap size, and -XX:MaxPermSize increases the size of the PermGen space You can look up and configure these as applicable for your environment Jeff On Dec 6, 2012, at 3:16 PM, japinder gill wrote: whts the RAM size of your server? may be you can chk by setting heap size. On Thursday, December 6, 2012 7:01:05 PM UTC+5:30, Capfo wrote: hello i have a probleme with JENKINS it's a new installation when i do some test with a meven code source 2.2.1 and 2.2.2 when i make mvn clean install -Dmaven.test.skip=true the Build it's OK but when i make : mvn clean install i have this error : The same Error in local Build and in Jenkins thnks ERROR] BUILD FAILURE[INFO] --**--** [INFO] Compilation failure Failure executing javac, but could not parse the error: The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.**defineClass1(Native Method) at java.lang.ClassLoader.**defineClassCond(ClassLoader.**java:631) at java.lang.ClassLoader.**defineClass(ClassLoader.java:**615) at java.security.**SecureClassLoader.defineClass(**SecureClassLoader.java:141) at java.net.URLClassLoader.**defineClass(URLClassLoader.**java:283) at java.net.URLClassLoader.**access$000(URLClassLoader.**java:58) at java.net.URLClassLoader$1.run(**URLClassLoader.java:197) at java.security.**AccessController.doPrivileged(**Native Method) at java.net.URLClassLoader.**findClass(URLClassLoader.java:**190) at org.codehaus.plexus.compiler.**javac.IsolatedClassLoader.**loadClass(IsolatedClassLoader.**java:56) at com.sun.tools.javac.util.**DefaultFileManager$**ZipFileIndexArchive.**getFileObject(**DefaultFileManager.java:1656) at com.sun.tools.javac.util.**DefaultFileManager.**listDirectory(**DefaultFileManager.java:333) at com.sun.tools.javac.util.**DefaultFileManager.list(**DefaultFileManager.java:852) at com.sun.tools.javac.jvm.**ClassReader.fillIn(**ClassReader.java:2123) at com.sun.tools.javac.jvm.**ClassReader.complete(**ClassReader.java:1781) at com.sun.tools.javac.code.**Symbol.complete(Symbol.java:**386) at com.sun.tools.javac.comp.**MemberEnter.visitTopLevel(**MemberEnter.java:495) at com.sun.tools.javac.tree.**JCTree$JCCompilationUnit.**accept(JCTree.java:446) at com.sun.tools.javac.comp.**MemberEnter.memberEnter(**MemberEnter.java:387) at com.sun.tools.javac.comp.**MemberEnter.complete(**MemberEnter.java:819) at com.sun.tools.javac.code.**Symbol.complete(Symbol.java:**386) at com.sun.tools.javac.code.**Symbol$ClassSymbol.complete(**Symbol.java:763) at com.sun.tools.javac.comp.**Enter.complete(Enter.java:464) at com.sun.tools.javac.comp.**Enter.main(Enter.java:442) at com.sun.tools.javac.main.**JavaCompiler.enterTrees(**JavaCompiler.java:819) at com.sun.tools.javac.main.**JavaCompiler.compile(**JavaCompiler.java:727) at com.sun.tools.javac.main.Main.**compile(Main.java:353) at com.sun.tools.javac.main.Main.**compile(Main.java:279) at com.sun.tools.javac.main.Main.**compile(Main.java:270) at com.sun.tools.javac.Main.**compile(Main.java:87) at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native Method) at sun.reflect.**NativeMethodAccessorImpl.**invoke(**NativeMethodAccessorImpl.java:**39) [INFO] --**--** [INFO] For more information, run Maven with the -e switch [INFO] --**--** [INFO] Total time: 2 minutes 27 seconds [INFO] Finished at: Thu Dec 06 13:50:27 CET 2012 [INFO] Final Memory: 52M/259M [INFO]
Re: New to Jenkins, have 7 days to become an expert - wish me luck
It was surprising easy to get Jenkins up and running - The bad memories from the Hudson days had been freaking me out.But I do apprecaite all the hands of help that came my way the reponse to this message was most welcoming. Well, diffrent communities welcome newbies in diffrent ways, and I suppose the frost and ice in here is nothing diffrent from other technical communities. Anyway - Thanks ... to the devs who made Jenkins - I can see it being a massive time saver.
Re: Build ERROR
now i have 3 g of RAM but i have the same probleme :( The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) 2012/12/7 El alaoui Mohamed Reda inforedas...@gmail.com yes after applying the recommended setting 2012/12/7 Gábor Garami gabor.gar...@hron.me After you applied the recommended settings? Garami Gábor gabor.gar...@hron.me Skype: hron84 Tel: +36 20 235 9621 Sent from my T-Mobile G2 Ezt a levelet telefonról adták fel, ékezethibákat tartalmazhat. 2012.12.06. 17:44, El alaoui Mohamed Reda inforedas...@gmail.com ezt írta: on local it's okey but in JEKINS also the same problem :( 2012/12/6 Jeff Williams je...@wherethebitsroam.com For your local build, write: export MAVEN_OPTS='-Xmx1024m -XX:MaxPermSize=512m' then run the build as normal (again, check the numbers for your environment) For jenkins, follow my instructions below. Jeff On Dec 6, 2012, at 3:52 PM, El alaoui Mohamed Reda wrote: non i have the same problem also :( in jenkins and in the local Build in the directory of project 2012/12/6 Jeff Williams je...@wherethebitsroam.com You are running out of PermGen space! try adding something like: -Xmx1024m -XX:MaxPermSize=512m to the Maven Project Configuration on the Manage Jenkins Configure System page PastedGraphic-5.png Where: -Xmx give the maximum heap size, and -XX:MaxPermSize increases the size of the PermGen space You can look up and configure these as applicable for your environment Jeff On Dec 6, 2012, at 3:16 PM, japinder gill wrote: whts the RAM size of your server? may be you can chk by setting heap size. On Thursday, December 6, 2012 7:01:05 PM UTC+5:30, Capfo wrote: hello i have a probleme with JENKINS it's a new installation when i do some test with a meven code source 2.2.1 and 2.2.2 when i make mvn clean install -Dmaven.test.skip=true the Build it's OK but when i make : mvn clean install i have this error : The same Error in local Build and in Jenkins thnks ERROR] BUILD FAILURE[INFO] --**--** [INFO] Compilation failure Failure executing javac, but could not parse the error: The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.**defineClass1(Native Method) at java.lang.ClassLoader.**defineClassCond(ClassLoader.**java:631) at java.lang.ClassLoader.**defineClass(ClassLoader.java:**615) at java.security.**SecureClassLoader.defineClass(**SecureClassLoader.java:141) at java.net.URLClassLoader.**defineClass(URLClassLoader.**java:283) at java.net.URLClassLoader.**access$000(URLClassLoader.**java:58) at java.net.URLClassLoader$1.run(**URLClassLoader.java:197) at java.security.**AccessController.doPrivileged(**Native Method) at java.net.URLClassLoader.**findClass(URLClassLoader.java:**190) at org.codehaus.plexus.compiler.**javac.IsolatedClassLoader.**loadClass(IsolatedClassLoader.**java:56) at com.sun.tools.javac.util.**DefaultFileManager$**ZipFileIndexArchive.**getFileObject(**DefaultFileManager.java:1656) at com.sun.tools.javac.util.**DefaultFileManager.**listDirectory(**DefaultFileManager.java:333) at com.sun.tools.javac.util.**DefaultFileManager.list(**DefaultFileManager.java:852) at com.sun.tools.javac.jvm.**ClassReader.fillIn(**ClassReader.java:2123) at com.sun.tools.javac.jvm.**ClassReader.complete(**ClassReader.java:1781) at com.sun.tools.javac.code.**Symbol.complete(Symbol.java:**386) at com.sun.tools.javac.comp.**MemberEnter.visitTopLevel(**MemberEnter.java:495) at com.sun.tools.javac.tree.**JCTree$JCCompilationUnit.**accept(JCTree.java:446) at com.sun.tools.javac.comp.**MemberEnter.memberEnter(**MemberEnter.java:387) at com.sun.tools.javac.comp.**MemberEnter.complete(**MemberEnter.java:819) at com.sun.tools.javac.code.**Symbol.complete(Symbol.java:**386) at com.sun.tools.javac.code.**Symbol$ClassSymbol.complete(**Symbol.java:763) at com.sun.tools.javac.comp.**Enter.complete(Enter.java:464) at com.sun.tools.javac.comp.**Enter.main(Enter.java:442) at com.sun.tools.javac.main.**JavaCompiler.enterTrees(**JavaCompiler.java:819) at com.sun.tools.javac.main.**JavaCompiler.compile(**JavaCompiler.java:727) at com.sun.tools.javac.main.Main.**compile(Main.java:353) at com.sun.tools.javac.main.Main.**compile(Main.java:279) at com.sun.tools.javac.main.Main.**compile(Main.java:270) at com.sun.tools.javac.Main.**compile(Main.java:87) at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native Method) at sun.reflect.**NativeMethodAccessorImpl.**invoke(**NativeMethodAccessorImpl.java:**39) [INFO] --**--** [INFO] For more information, run Maven with the -e switch
Re: New to Jenkins, have 7 days to become an expert - wish me luck
Hello and welcome! Become a pro in 7 days is hell of demand :) I am working on a massive scale with Hudson/Jenkins for 2 years now and am still developing my skills as useful plugins emerge where I created some nasty scripting to find my way around. My environment is about to reach the final level and I have started to review and improve much stuff as I do realize that much stuff is doing well but still it can be done better and with more functionality. But Jenkins is absolutely great when starting from scratch as you - as you already realized - can start in big paces. And the community here is really a great help when get stuck. So good luck mate and don't hesitate to ask ;) Jan Am Dienstag, 4. Dezember 2012 03:55:17 UTC+1 schrieb Mister Guru: Good Evening Jenkins users, I have been trying to get my head around jenkins, and so far to sum up in a sentence, ¨It helps to do repetitive stuff like builds and updating code on websites¨ I'm hoping that the later is possible, because Ive just witnessed someone do the thing by hand, and my first thought was - hell no! I'm learning jenkins! A quick read over the home page showed various plugins - rundeck, gitlab, both of which we use, so I'm really hoping that I can glue this lot together, so that when a dev pushes his work to the repo, five minutes later, the new website is displaying all his mistakes in HD on a nice test URL. I have a feeling that jenkins can help me here - im all ears at the moment, i will really appreciate some advice. Right now, im spinning up a VM to practice getting my jenkins install going - and hopefully, i should be able to start to automate most of my day. Thanks
Re: New to Jenkins - need help
In this case, you can configure the Product jobs to trigger the Library jobs, using Trigger/call on other projects build step. And in the Library jobs, uses the path ignore plugin : https://wiki.jenkins-ci.org/display/JENKINS/Pathignore+Plugin By using the Do not build if only specified paths have changed and the Invert Ignore option, you should be able to configure a condition such as build only if these paths has changed I never actually tried such a configurable, but it seems doable. 2012/12/7 Ivan Kharin k13.priv...@gmail.com One possible configuration is : one Jenkins jobs for each library, one Jenkins jobs for each product. Then, for each library : - Poll SCM to check if changes happened - Build the library - Trigger the builds of the product that relie on this library. For each product : - Retrieve the libraries artifacts from the libraries jobs - Compile the product You can configure the products to prevent a job to run while a library it depends upon is building (advanced project option - do not build when upstream project is building) Sorry, but this solution does not suit me. Assembling one product can take about an hour. Last duration for some libraries: 9 min, 14 min, 26 min, 33 min I want to run the assembly of the product on demand - and with all the necessary libraries must be updated. But I can not afford to build all libraries prior to building of the product. And I can not afford the rebuilding of products at each change in libraries.
Need help to find a plugin
Hi folks, I am looking for a certain plugin which allows to embed JScript or Java into the pages of Jenkins. AFAIR did I see a plugin that allowed to implement active scripts into the description of a build job or the like. Maybe you also now something better, so here is the explanation why I look for it. I use Jenkins to create software items and the correspondig release notes. We have due to SPICE a new requirement that must allow the testers to add important notes to the release notes like certain test results, failure of tests and so on. My idea was to implement a plain text editor - ideally in each job and best on the page where the build button and the parameters are located. I would like use something based on JScript or Java or what ever depending on a useful plugin that provides the functionality to implement 3rd party. one or more of the editors would then be available per job depending on the section where the information belongs to. This text will then be stored into a plain text file. It has to be streamed from a file inorder not to break the build process. I tried some while ago to stream the text via a text field but that is very problematic. There is a limitation how much text can be added because it all ends up in the ant target call. The limitation of the amount of characters in the CLI and all kind of special characters like line break, dot, exclamation mark and so on can cause unpredictable build behaviour which ranges from builds going completely wild to simply not spawning. My optional approach would be to set up a simple web server which just hosts the editors and creates the files which can be used by jenkins. But I'd like to have everything on one page instead of spreading it around as the testers ain't familiar with Jenkins or the build infrastructure which makes this attempt a bit prone to errors. I would also be fine with placing the editor from an external source via an IFrame into the job description. Any suggestions? Thanks Jan
Re: New to Jenkins - need help
Well, there is a plugin available that lets you define which changes may trigger and which not. That way should you always have a recent set of libraries available when starting a bulld. You can also use the join plugin if certain libraries must be built before the assembly build is spawned or you have a build matrix. There are many approaches to achieve your goal but I think you would have to elaborate a bit more which requirements and dependencies you have in order to run an assembly build Take care Jan Am Freitag, 7. Dezember 2012 06:36:08 UTC+1 schrieb Ivan Kharin: I'm new to Jenkins. I have 20 libraries as separate jobs. And 15 products, each of which depends on a subset of these libraries. I can not understand how I obtain needed result: Before building the product, automatically start building only those libraries that have been changed. Is it possible to specify a condition for the Build Step repository changed? --- Regards, Ivan Kharin
Re: Copy Artifacts Plugin and PROMOTED_NUMBER in a promotion process
Select the specific build option and set the build number to be the variable $PROMOTED_NUMBER. This will get resolved when the build step runs so you can then get the artifacts from the correct build that is being promoted. Chris On Friday, December 7, 2012 11:02:48 AM UTC, Masariello wrote: Hi there The Promoted Builds Plugin puts the number of the build being promoted in an environment variable called PROMOTED_NUMBER How can the Copy Artifacts Plugin use it in a promotion process? I tried several combinations without success. Thanks in advance!
Re: Build ERROR
you can install below plugin and see where your memory is going.. https://wiki.jenkins-ci.org/display/JENKINS/Monitoring then accordingly you can change your memory allocation. There need to be a balance, you just cant keep on increasing heap size. On Friday, December 7, 2012 4:09:52 PM UTC+5:30, Capfo wrote: now i have 3 g of RAM but i have the same probleme :( The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) 2012/12/7 El alaoui Mohamed Reda infore...@gmail.com javascript: yes after applying the recommended setting 2012/12/7 Gábor Garami gabor@hron.me javascript: After you applied the recommended settings? Garami Gábor gabor@hron.me javascript: Skype: hron84 Tel: +36 20 235 9621 Sent from my T-Mobile G2 Ezt a levelet telefonról adták fel, ékezethibákat tartalmazhat. 2012.12.06. 17:44, El alaoui Mohamed Reda infore...@gmail.comjavascript: ezt írta: on local it's okey but in JEKINS also the same problem :( 2012/12/6 Jeff Williams je...@wherethebitsroam.com javascript: For your local build, write: export MAVEN_OPTS='-Xmx1024m -XX:MaxPermSize=512m' then run the build as normal (again, check the numbers for your environment) For jenkins, follow my instructions below. Jeff On Dec 6, 2012, at 3:52 PM, El alaoui Mohamed Reda wrote: non i have the same problem also :( in jenkins and in the local Build in the directory of project 2012/12/6 Jeff Williams je...@wherethebitsroam.com javascript: You are running out of PermGen space! try adding something like: -Xmx1024m -XX:MaxPermSize=512m to the Maven Project Configuration on the Manage Jenkins Configure System page PastedGraphic-5.png Where: -Xmx give the maximum heap size, and -XX:MaxPermSize increases the size of the PermGen space You can look up and configure these as applicable for your environment Jeff On Dec 6, 2012, at 3:16 PM, japinder gill wrote: whts the RAM size of your server? may be you can chk by setting heap size. On Thursday, December 6, 2012 7:01:05 PM UTC+5:30, Capfo wrote: hello i have a probleme with JENKINS it's a new installation when i do some test with a meven code source 2.2.1 and 2.2.2 when i make mvn clean install -Dmaven.test.skip=true the Build it's OK but when i make : mvn clean install i have this error : The same Error in local Build and in Jenkins thnks ERROR] BUILD FAILURE[INFO] --**--** [INFO] Compilation failure Failure executing javac, but could not parse the error: The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.**defineClass1(Native Method) at java.lang.ClassLoader.**defineClassCond(ClassLoader.**java:631) at java.lang.ClassLoader.**defineClass(ClassLoader.java:**615) at java.security.**SecureClassLoader.defineClass(**SecureClassLoader.java:141) at java.net.URLClassLoader.**defineClass(URLClassLoader.**java:283) at java.net.URLClassLoader.**access$000(URLClassLoader.**java:58) at java.net.URLClassLoader$1.run(**URLClassLoader.java:197) at java.security.**AccessController.doPrivileged(**Native Method) at java.net.URLClassLoader.**findClass(URLClassLoader.java:**190) at org.codehaus.plexus.compiler.**javac.IsolatedClassLoader.**loadClass(IsolatedClassLoader.**java:56) at com.sun.tools.javac.util.**DefaultFileManager$**ZipFileIndexArchive.**getFileObject(**DefaultFileManager.java:1656) at com.sun.tools.javac.util.**DefaultFileManager.**listDirectory(**DefaultFileManager.java:333) at com.sun.tools.javac.util.**DefaultFileManager.list(**DefaultFileManager.java:852) at com.sun.tools.javac.jvm.**ClassReader.fillIn(**ClassReader.java:2123) at com.sun.tools.javac.jvm.**ClassReader.complete(**ClassReader.java:1781) at com.sun.tools.javac.code.**Symbol.complete(Symbol.java:**386) at com.sun.tools.javac.comp.**MemberEnter.visitTopLevel(**MemberEnter.java:495) at com.sun.tools.javac.tree.**JCTree$JCCompilationUnit.**accept(JCTree.java:446) at com.sun.tools.javac.comp.**MemberEnter.memberEnter(**MemberEnter.java:387) at com.sun.tools.javac.comp.**MemberEnter.complete(**MemberEnter.java:819) at com.sun.tools.javac.code.**Symbol.complete(Symbol.java:**386) at com.sun.tools.javac.code.**Symbol$ClassSymbol.complete(**Symbol.java:763) at com.sun.tools.javac.comp.**Enter.complete(Enter.java:464) at com.sun.tools.javac.comp.**Enter.main(Enter.java:442) at com.sun.tools.javac.main.**JavaCompiler.enterTrees(**JavaCompiler.java:819) at
Adjust GitScm to Build on New Branch
Currently the GitScm plugin does not trigger a build when it detects a new branch. I would like to add the option to do this. Can I buy a clue as to where to look in the code to control this behavior? Thanks :-) -- Jay Flowers -- http://jayflowers.com -
I m new to jenkins.......... just 5 days.
I am new to the jenkins, and i want to use the functionality of Mail Commander Plugin, I set the configuration on my Jenkins Configuration setup for the Email Notification. In Add Build Step Mail Commander I configured POP3 mail server address, POP3 mail server port,POP3 User Name,POP3 Password. And Mail Commander Pooling is Checked and set scheduling */1 * * * * After this i send the command mail with the subject build JOB_NAME to the jenkins configured mail id jenkins@__.com from the configured user mail id. I have checked that mail is received on the jenkins@__.com but my job not build and in the Mail Command Action the logger shows that Polling has not run yet. Please suggest me on this. -- View this message in context: http://jenkins.361315.n4.nabble.com/I-m-new-to-jenkins-just-5-days-tp4648417.html Sent from the Jenkins users mailing list archive at Nabble.com.
RE: How to upgrade custom built Jenkins along with my changes.
I’ve never done this before, but I have a couple of ideas. 1: Do you actually need to customize Jenkins source, or can you write plugins to create your customizations? 2: If you want to have your own Jenkins source, you probably want to just fork off of the Github repository (see https://wiki.jenkins-ci.org/display/JENKINS/Source+code). When you want to get the latest and greatest changes, you just merge them into your own Git repository. While this means that you’ll spend a lot of cycles testing to see if Jenkins’ own code doesn’t break yours or vice-versa, I don’t think there is any easier way to do this. --Rob Mandeville Litle Co (part of the Vantiv family) From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Bharathi Ramalingam Sent: Friday, December 07, 2012 1:57 AM To: jenkinsci-users@googlegroups.com Subject: How to upgrade custom built Jenkins along with my changes. I want to build a custom Jenkins from source with some customizations. At the same time i dont want to miss latest updates or bug fixes. How could I upgrade a custom build Jenkins along with my changes too. Thanks, The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer.
Build Error
Getting below error. - [INFO] [ERROR] BUILD ERROR[INFO] [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-war-plugin:2.1.1:war': Unable to load the mojo 'org.apache.maven.plugins:maven-war-plugin:2.1.1:war' in the plugin 'org.apache.maven.plugins:maven-war-plugin'. A required class is missing: org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection same code is working fine on windows based jenkins system.but now we are migrating everything to linux. when i replicate the job , getting above error.
Re: New to Jenkins - need help
On Fri, Dec 7, 2012 at 1:46 AM, Ivan Kharin k13.priv...@gmail.com wrote: Sorry, but this solution does not suit me. Assembling one product can take about an hour. Last duration for some libraries: 9 min, 14 min, 26 min, 33 min I want to run the assembly of the product on demand - and with all the necessary libraries must be updated. But I can not afford to build all libraries prior to building of the product. And I can not afford the rebuilding of products at each change in libraries. We build and test the libraries separately and check the binaries into tags in a subversion repository. Then the projects that use them have svn externals to pull in all the components they want - either source or binary. The externals have to be manually changed to move to newer library releases but that is normally what we want. It would be pretty rare for someone here to want to build trunk versions of all the components and have a lot of untested code to debug together - but that can be done if needed. -- Les Mikesell lesmikes...@gmail.com
unit testing from shell scripts?
Hi, I need to run a set of unit tests that simply consist of seeing if two files are identical. There are all kinds of Unix tools (diff, cmp, comm, etc.) that can provide the basic information, but how do I translate that into unit test results that Jenkins can understand and display? Simply emitting XML for xUnit parser seems a bit crude. Thanks, Bill
Re: building certain git revision
Hi Roman, I'm facing exactly the same issue and so far solved it by adding a commit String parameter with default value origin/master and then running this shell step: echo Updating to commit [$commit] git checkout $commit git log --format=format:[%h]-[%cn]-[%cr]-[%s] -10 TeamCity allows one to choose a commit to build in its Run Custom Build dialog. Then I face an issue of adding this to all 5 jobs we have in a pipeline which starts looking a bit tiresome so I also wonder if other people have solved this problem in a more elegant way. On Friday, March 16, 2012 12:43:26 AM UTC+1, Roman Ovchinnikov wrote: Hello! I've tried to search myself, but looks like my google-fu is weak. I want to know how what is proper way to specify certain git revision to be built ? I've found how to specify branch via (parameterized option), but not revision. Trying git-parameter plugin, but it looks to be too smart - it is getting all commits and showing them to select from (and for now isn't listing the latest commits i have, but this is another question i guess). The only way for now I've found - is 1) add string param with name like MYGITREV, 2) in build phase, specify script like if ! [ -z $MYGITREV ];then git checkout $MYGITREV;fi . I can't believe I'm the only one in the world who wants to be able specify revision, like buildbot's Force build option.
Re: unit testing from shell scripts?
Hi Bill, Are you aware of Rerun (http://rerun.github.com/rerun) and its ability to formally manage shell script test cases? Anthony. Sent from my iPhone On Dec 7, 2012, at 7:48 AM, Bill Trost tr...@cloud.rain.com wrote: Hi, I need to run a set of unit tests that simply consist of seeing if two files are identical. There are all kinds of Unix tools (diff, cmp, comm, etc.) that can provide the basic information, but how do I translate that into unit test results that Jenkins can understand and display? Simply emitting XML for xUnit parser seems a bit crude. Thanks, Bill
Re: unit testing from shell scripts?
Bill: You might also consider Antunit [1] for a simple means of generating JUnit-compatible XML. HTH, Matt [1] http://ant.apache.org/antlibs/antunit/index.html On Fri, Dec 7, 2012 at 10:35 AM, Anthony Shortland anth...@dtosolutions.com wrote: Hi Bill, Are you aware of Rerun (http://rerun.github.com/rerun) and its ability to formally manage shell script test cases? Anthony. Sent from my iPhone On Dec 7, 2012, at 7:48 AM, Bill Trost tr...@cloud.rain.com wrote: Hi, I need to run a set of unit tests that simply consist of seeing if two files are identical. There are all kinds of Unix tools (diff, cmp, comm, etc.) that can provide the basic information, but how do I translate that into unit test results that Jenkins can understand and display? Simply emitting XML for xUnit parser seems a bit crude. Thanks, Bill
Stopped job by user causes MSBUILD.exe remaining in processes
Hello, When I stop build based on ANT execution of build solution I see the MSBUILD.exe which still remain after the build stop. In case not stopped build then no msbuild.exe is there. Could you please to help me what could be a reason? Thanks. zakyn --- ant -- project name=Project1 default=build basedir=. description Project1 build /description target name=build depends= description=build the solution exec executable=cmd.exe failonerror=false output=build_log.txt arg value=/c ..\..\buildWithVS2012.bat TMSAppOffboard.sln /Build quot;Releasequot;/ /exec /target /project
Re: How to send broadcast email in Jenkins - quick question
Hi R u looking for below plugin ? https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin Thanks Anba -- View this message in context: http://jenkins.361315.n4.nabble.com/How-to-send-broadcast-email-in-Jenkins-quick-question-tp4648150p4648154.html Sent from the Jenkins users mailing list archive at Nabble.com.
Redeploy the old artifacts
Dear Friends, I'm new to CI and Jenkins. Here i want to deploy the old artifacts into servers. For example i have done and 10 build and deployment into servers. Here i want select to very 1st build into servers(with old source code). Is this possible to achieve this. if so could please help me how to do this. I'm using maven,svn,weblogic for my J2ee project. Thanks Anba -- View this message in context: http://jenkins.361315.n4.nabble.com/Redeploy-the-old-artifacts-tp4648152.html Sent from the Jenkins users mailing list archive at Nabble.com.
Re: unit testing from shell scripts?
I've also used the technique of generating xUnit formatted reports from the shell script and having Jenkins pick those up. Required the xUnit plug-in if I recall. Ben On Dec 7, 2012 8:56 AM, Matt Benson gudnabr...@gmail.com wrote: Bill: You might also consider Antunit [1] for a simple means of generating JUnit-compatible XML. HTH, Matt [1] http://ant.apache.org/antlibs/antunit/index.html On Fri, Dec 7, 2012 at 10:35 AM, Anthony Shortland anth...@dtosolutions.com wrote: Hi Bill, Are you aware of Rerun (http://rerun.github.com/rerun) and its ability to formally manage shell script test cases? Anthony. Sent from my iPhone On Dec 7, 2012, at 7:48 AM, Bill Trost tr...@cloud.rain.com wrote: Hi, I need to run a set of unit tests that simply consist of seeing if two files are identical. There are all kinds of Unix tools (diff, cmp, comm, etc.) that can provide the basic information, but how do I translate that into unit test results that Jenkins can understand and display? Simply emitting XML for xUnit parser seems a bit crude. Thanks, Bill
Executing ms-sql from linux build node?
I have a job that runs sql statements against a Microsoft SQL server on a windows machine. The job runs on a windows machine and uses the sqljdbc4.jar driver. Now I would like to move this job to a linux/ubuntu slave but get an error: 07-Dec-2012 23:05:12 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions 07-Dec-2012 23:05:12 org.springframework.jdbc.support.SQLErrorCodesFactory init INFO: SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase] Exception in thread main org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar []; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: Cannot open backup device 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Backup\media\dbs\sample_1.bak'. Operating system error 3(failed to retrieve text for this error. Reason: 15105). at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:111) The error: Operating system error 3(failed to retrieve text for this error. Reason: 15105) smells like a problem related to the os. Do I need a special sql driver when running on a linux machine or is it more likely that the linux slave does not have permissions to modify the folder on the windows machine? -- View this message in context: http://jenkins.361315.n4.nabble.com/Executing-ms-sql-from-linux-build-node-tp4648500.html Sent from the Jenkins users mailing list archive at Nabble.com.
Warning - the XCode plugin does not work with static libraries
If you have a workspace containing a library, and a project that includes the library, then if you make a change to the library then that change is never, I repeat *never*, included in your app/.ipa. This applies to libraries only afaik. I've spent two days digging into this and have however found the steps necessary for a workaround: 1) XCode/XCodeBuild does not cope very well with static libraries in general (I've noticed lots of glitches over the past several months). If you build, then make a change to the library, then build again then XCodeBuild will not include your change into the app unless you do a clean first. So if you are using XCodeBuild in conjunction with static libraries make sure you also do something like this: xcodebuild -workspace /Users/User/Workspace.xcworkspace -scheme NameOfScheme clean 2) Note that clicking the Clean Before Build flag in the Jenkins XCode plugin will *not* achieve the same affect. Look at the console output from the above command and look at the console output from Jenkins with this flag set - it is not the same, nor is the result, therefore if you need to properly clean things add a call to XCodeBuild clean explicitly. 3) Even if you add the two lines explicitly to the Jenkins script, then changes to the library are still not included. I found the only way to get the change included in the build output was to first delete XCodes build directory for your workspace, thus you need to add this line to the Jenkins script before the build starts: rm -r /Users/User/Library/Developer/XCode/DerivedData/* (If you have more than one workspace then adapt this command accordingly to only delete folders for the particular workspace you are dealing with - directories with the name NameOfWorkspace-randomstring get generated in DerivedData folder). If you do that then finally your changes will be applied to your build. This last step is not necessary if not using Jenkins, therefore my conclusion is it is *yet another* bug with the XCode plugin. Not the first problem I've found with it - use it at your peril if your project isn't striaghtforward.
Re: Warning - the XCode plugin does not work with static libraries
I think I might be glad that I chose to roll my own using Ant and xcodebuild... Ben On Fri, Dec 7, 2012 at 3:20 PM, Martin woofbe...@gmail.com wrote: If you have a workspace containing a library, and a project that includes the library, then if you make a change to the library then that change is never, I repeat *never*, included in your app/.ipa. This applies to libraries only afaik. I've spent two days digging into this and have however found the steps necessary for a workaround: 1) XCode/XCodeBuild does not cope very well with static libraries in general (I've noticed lots of glitches over the past several months). If you build, then make a change to the library, then build again then XCodeBuild will not include your change into the app unless you do a clean first. So if you are using XCodeBuild in conjunction with static libraries make sure you also do something like this: xcodebuild -workspace /Users/User/Workspace.xcworkspace -scheme NameOfScheme clean 2) Note that clicking the Clean Before Build flag in the Jenkins XCode plugin will *not* achieve the same affect. Look at the console output from the above command and look at the console output from Jenkins with this flag set - it is not the same, nor is the result, therefore if you need to properly clean things add a call to XCodeBuild clean explicitly. 3) Even if you add the two lines explicitly to the Jenkins script, then changes to the library are still not included. I found the only way to get the change included in the build output was to first delete XCodes build directory for your workspace, thus you need to add this line to the Jenkins script before the build starts: rm -r /Users/User/Library/Developer/XCode/DerivedData/* (If you have more than one workspace then adapt this command accordingly to only delete folders for the particular workspace you are dealing with - directories with the name NameOfWorkspace-randomstring get generated in DerivedData folder). If you do that then finally your changes will be applied to your build. This last step is not necessary if not using Jenkins, therefore my conclusion is it is *yet another* bug with the XCode plugin. Not the first problem I've found with it - use it at your peril if your project isn't striaghtforward.
Re: Executing ms-sql from linux build node?
Thanks I will give that a try! On a side note if I run the job locally from my windows machine (and still connect against the remote windows server) it works fine. Are there any os constraints/or specific os builds for the sqljdbc4.jar driver? Or should it work for all platforms in theory? -- View this message in context: http://jenkins.361315.n4.nabble.com/Executing-ms-sql-from-linux-build-node-tp4648500p4648524.html Sent from the Jenkins users mailing list archive at Nabble.com.