Re: HelloWorld program build using cygwin in Jenkins - issue while building
On Fri, Mar 2, 2012 at 12:29 AM, Kanu wrote: > Hi Les, > > Sorry, can you bit desciptive? I am newbie to this system. I'm not sure what the correct approach for jenkins should be, but if you start cygwin interactively at the console and type 'env' you will see very different environment settings than you would have in a cmd window on windows - and some of them are necessary for cygwin to find its components. When you start bash with the --login option it sources /etc/profile and an assortment of other startup scripts, but maybe there is a better way to do it. -- Les Mikesell lesmikes...@gmail.com
Re: HelloWorld program build using cygwin in Jenkins - issue while building
Hi Les, Sorry, can you bit desciptive? I am newbie to this system. Many kind regards, /renjith_g On Mar 2, 6:24 am, Les Mikesell wrote: > On Thu, Mar 1, 2012 at 11:22 PM, Kanu wrote: > > > Started by user anonymous > > Building in workspace C:\Program Files\Jenkins\workspace\Helloworld > > [Helloworld] $ C:\cygwin\bin\bash -xe C:\WINDOWS\TEMP > > \hudson8960933788009414142.sh > > cygwin warning: > > MS-DOS style path detected: C:\WINDOWS\TEMP > > \hudson8960933788009414142.sh > > Preferred POSIX equivalent is: /cygdrive/c/WINDOWS/TEMP/ > > hudson8960933788009414142.sh > > CYGWIN environment variable option "nodosfilewarning" turns off this > > warning. > > Consult the user's guide for more details about POSIX paths: > > http://cygwin.com/cygwin-ug-net/using.html#using-pathnames > > + c:/cygwin/bin/bash -xe c:/test/build.sh > > + c:/cygwin/bin/gcc -c helloworld.c > > /usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1.exe: error while loading shared > > libraries: ?: cannot open shared object file: No such file or > > directory > > Build step 'Execute shell' marked build as failure > > Finished: FAILURE > > When you start cygwin from the usual console batch file it runs bash > with the --login -i options which, among other things will make it > source /etc/profile to set many environment variables (PATH, etc.) > that you won't have otherwise. > > -- > Les Mikesell > lesmikes...@gmail.com
Re: HelloWorld program build using cygwin in Jenkins - issue while building
On Thu, Mar 1, 2012 at 11:22 PM, Kanu wrote: > > > Started by user anonymous > Building in workspace C:\Program Files\Jenkins\workspace\Helloworld > [Helloworld] $ C:\cygwin\bin\bash -xe C:\WINDOWS\TEMP > \hudson8960933788009414142.sh > cygwin warning: > MS-DOS style path detected: C:\WINDOWS\TEMP > \hudson8960933788009414142.sh > Preferred POSIX equivalent is: /cygdrive/c/WINDOWS/TEMP/ > hudson8960933788009414142.sh > CYGWIN environment variable option "nodosfilewarning" turns off this > warning. > Consult the user's guide for more details about POSIX paths: > http://cygwin.com/cygwin-ug-net/using.html#using-pathnames > + c:/cygwin/bin/bash -xe c:/test/build.sh > + c:/cygwin/bin/gcc -c helloworld.c > /usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1.exe: error while loading shared > libraries: ?: cannot open shared object file: No such file or > directory > Build step 'Execute shell' marked build as failure > Finished: FAILURE When you start cygwin from the usual console batch file it runs bash with the --login -i options which, among other things will make it source /etc/profile to set many environment variables (PATH, etc.) that you won't have otherwise. -- Les Mikesell lesmikes...@gmail.com
RE: Set a global "Max # of builds to keep"?
Also and option, but I'm guessing you cannot find the setting is because it is hidden in an "Advanced" tab . . . Click all the "Advanced" buttons . . . you'll be amazed. Frank -Original Message- From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Hessick, Michael Sent: Wednesday, February 29, 2012 9:51 AM To: jenkinsci-users@googlegroups.com Subject: RE: Set a global "Max # of builds to keep"? Check out the configuration slicing plugin. https://wiki.jenkins-ci.org/display/JENKINS/Configuration+Slicing+Plugin Cheers, -Mike -Original Message- From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of andreyev Sent: Wednesday, February 29, 2012 10:46 AM To: Jenkins Users Subject: Set a global "Max # of builds to keep"? Hi everybody! Anyone know a way to set a global "Max # of builds to keep" limit so no project can hold more builds than it? I sought this thru mail archives (users and devs), issue tracker and plugins list and do not found anything. No one needed this before? TIA
Re: HelloWorld program build using cygwin in Jenkins - issue while building
Thanks Samy. Tracked your questions and found that was not building from the cygwin console either. So I installed the latest cygwin package and found the helloworld.c is building from the cygwin console. After this I tried the same in Jenkins with my old jenkins settings and got another issue from the Jenkins build console. Please see the log: Console Output View as plain text Started by user anonymous Building in workspace C:\Program Files\Jenkins\workspace\Helloworld [Helloworld] $ C:\cygwin\bin\bash -xe C:\WINDOWS\TEMP \hudson8960933788009414142.sh cygwin warning: MS-DOS style path detected: C:\WINDOWS\TEMP \hudson8960933788009414142.sh Preferred POSIX equivalent is: /cygdrive/c/WINDOWS/TEMP/ hudson8960933788009414142.sh CYGWIN environment variable option "nodosfilewarning" turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames + c:/cygwin/bin/bash -xe c:/test/build.sh + c:/cygwin/bin/gcc -c helloworld.c /usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory Build step 'Execute shell' marked build as failure Finished: FAILURE Please have a look at it and give some more inputs. Many kind regards, /renjith_g On Mar 1, 10:15 pm, Sami Tikka wrote: > Can you execute the same commands in a Command Prompt window as > Jenkins did and does it work? > > Can you do the same in the same directory where Jenkins tried to do it > and does it work? > > Does it work if you change Jenkins service to run as some other user, > e.g. yourself? > > -- Sami > > 2012/3/1 RENJITH G : > > > I just noted the cosole output and finalised it was not built due the > > sentence I saw > > Build step 'Execute shell' marked build as failure > > Finished: FAILURE > > > Now I checked in the workspace also and didn't see any out file. > > > I searched the error message in google and didn't get any valid results.Also > > I posted in #jenkins IRC and didn't get any inputs. > > I tried to dig into the error log but no more details on the issue is found > > > Expecting some more inputs from the team. > > > Many kind regards > > /renjith_g > > > On Thu, Mar 1, 2012 at 8:01 AM, Sami Tikka wrote: > > >> Have you considered the possibility that your build really failed? An > >> error in the compiler or cygwin is not really jenkins's fault. What kind of > >> steps have you taken to investigate the problem? > > >> -- Sami > > >> Kanu kirjoitti 29.2.2012 kello 8.35: > > >> > Hi all, > > >> > I have the Jenkins setup in my machine and I have configured the > >> > settings with the below options. > > >> > 1.In 'Execute shell' tab under Hello world project settings:-> c:/ > >> > cygwin/bin/bash -xe c:/test/build.sh > > >> > 2.In Manage Jenkins under 'shell executable' tab:-> C:\cygwin\bin\bash > > >> > 3.This is my build.sh file content. > >> > #!/bin/sh > >> > c:/cygwin/bin/gcc -g helloworld.c > > >> > 4.I have the cygwin installed under c:\cygwin > > >> > This is my error log when I tried to build using the Jenkins set up > > >> > Console Output > >> > Started by user anonymous > >> > Building in workspace C:\Program Files\Jenkins\workspace\Helloworld > >> > [Helloworld] $ C:\cygwin\bin\bash -xe C:\WINDOWS\TEMP > >> > \hudson9092646218282923936.sh > >> > + c:/cygwin/bin/bash -xe c:/test/build.sh > >> > + c:/cygwin/bin/gcc -g helloworld.c > >> > Build step 'Execute shell' marked build as failure > >> > Finished: FAILURE > > >> > Many kind regards, > >> > /Kanu
Re: Slow job configuration launch
Hi, Do you keep a long history of builds for your jobs ? It may help if you keep it smaller. regards didier On Mar 2, 6:12 am, tah wrote: > Hello, > My Jenkins instance is generally fast, but launching any job > configuration page is extremely slow. To be clear: Log in to Jenkins, > nice and fast. Hit job link, nice and fast. Hit the 'Configure' link > for that job, very very slow to bring up that page. I tried playing > with the java heap settings, and no difference. Any pointers? > > Thanks for any help!
Slow job configuration launch
Hello, My Jenkins instance is generally fast, but launching any job configuration page is extremely slow. To be clear: Log in to Jenkins, nice and fast. Hit job link, nice and fast. Hit the 'Configure' link for that job, very very slow to bring up that page. I tried playing with the java heap settings, and no difference. Any pointers? Thanks for any help!
RE: 404 vs 401
Hi Guys I think this is a little bit of 'security through obscurity'. For that user it is perfectly acceptable for them to go back to the URL they were at yesterday, and if they are not logged in I BELIEVE it should ask you to do so. http://en.wikipedia.org/wiki/List_of_HTTP_status_codes, and even teapot's seem to have response codes lookup 418. My example here is from my bank which should be a little paranoid about security. https://ibs.bankwest.com.au/CMWeb/ which is where they serve their personal banking data from does not return a 404, it pushes me back to a login page. Where in the codebase would I custom patch it to return not authorized or a please logon instead of a 404? Regards, Terry -Original Message- From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Christopher Orr Sent: Friday, 2 March 2012 7:57 AM To: jenkinsci-users@googlegroups.com Subject: Re: 404 vs 401 On 06/02/2012 01:49, terry.rank...@csiro.au wrote: > When a user logs out, closes the browser, and then reopens it (clean > start) and loads a bookmark of a project URL which is valid, he gets a > 404 (not found) instead of a 401 (not authorised). > > I don't think that this is really the right behaviour, I would suggest > using the 401, or redirecting it to the top level login. AFAIK, this is a security feature -- i.e. by returning 404 no information is leaked to unauthorised users about the existence or non-existence of any given job. But in any case, a nicer-looking error page could be good -- though I'm not sure whether Jenkins can directly solve this given that the underlying web server is presumably the one handling the 404s. Regards, Chris
Create job via API and set owner and job type?
When using API to create a job we get the config.xml first, do some changes, the use the config.xml to create a new job. Everything works fine except of the new job not having owner and job type. Is it possible to set owner and job type using API? How? thanks! ero
Re: I have a question about jenkins build
Thanks for your reply :-) On 3월2일, 오전2시05분, cjo wrote: > From the error described, it looks like the errors are coming from another > script called from inside the shell command. > > Are the "sh: -c: line 0: ..." > showing up in the build log in Jenkins? Yes > > Can you share more or the output log? (basically 15-20 lines before this is > seen) attched end of this > As it looks more likely that the errors are coming from a script that is > being called from ./build_target.sh or Make. > > Does the log show what script is being called before the error is printed? No > > Does running the same commands manually from the slave machine show the > same issue? There are no errors when I run manually in slave machine. > If not trying doing a diff of the env from the jenkins job and the manual > run to see what differences there are. > > Chris /data001/jenkins/jenkinsbuild/jenkinsbuild/workspace/ devbuild_g1_dsps_proc/non_HLOS/dsps_proc/core/systemdrivers/hal/ipcint/ src/common/HALipcint.c: 1 warning, 0 errors === Compiling sensorsimg/arm7/DSPSBLDZ/HALpic.c === Compiling sensorsimg/arm7/DSPSBLDZ/HALpicPlatformDSPS.c === Compiling sensorsimg/arm7/DSPSBLDZ/HALtlmmCommon.c === Compiling sensorsimg/arm7/DSPSBLDZ/HALtlmmApps.c === Compiling sensorsimg/arm7/DSPSBLDZ/DalIPCInt.c === Archiving sensorsimg/arm7/DSPSBLDZ/HALtlmm.lib === Archiving sensorsimg/arm7/DSPSBLDZ/HALtlmmApps.lib === Archiving sensorsimg/arm7/DSPSBLDZ/HALpic_dsps.lib === Archiving sensorsimg/arm7/DSPSBLDZ/HALipcint.lib === Archiving sensorsimg/arm7/DSPSBLDZ/HALclk_msm8960_sps.lib === Archiving sensorsimg/arm7/DSPSBLDZ/HALClock.lib === Archiving sensorsimg/arm7/DSPSBLDZ/DALgsbi.lib === Archiving sensorsimg/arm7/DSPSBLDZ/ClockDSPS.lib === Archiving sensorsimg/arm7/DSPSBLDZ/Clock_msm8960_SPS.lib === Compiling sensorsimg/arm7/DSPSBLDZ/DalIPCIntInfo.c === Compiling sensorsimg/arm7/DSPSBLDZ/DalIPCIntFwk.c === Compiling sensorsimg/arm7/DSPSBLDZ/DALTLMMFwk.c === Compiling sensorsimg/arm7/DSPSBLDZ/DALTLMMInfo.c "/data001/jenkins/jenkinsbuild/jenkinsbuild/workspace/ devbuild_g1_dsps_proc/non_HLOS/dsps_proc/core/systemdrivers/hal/gsbi/ src/HALgsbi.c", line 97: Warning: #223-D: function "HWIO_GSBI11_GSBI_CTRL_REG_OUTM" declared implicitly HWIO_OUTM(GSBI11_GSBI_CTRL_REG,mask,value); ^ "/data001/jenkins/jenkinsbuild/jenkinsbuild/workspace/ devbuild_g1_dsps_proc/non_HLOS/dsps_proc/core/systemdrivers/hal/gsbi/ src/HALgsbi.c", line 100: Warning: #223-D: function "HWIO_GSBI12_GSBI_CTRL_REG_OUTM" declared implicitly HWIO_OUTM(GSBI12_GSBI_CTRL_REG,mask,value); ^ "/data001/jenkins/jenkinsbuild/jenkinsbuild/workspace/ devbuild_g1_dsps_proc/non_HLOS/dsps_proc/core/systemdrivers/hal/gsbi/ src/HALgsbi.c", line 193: Warning: #223-D: function "HWIO_GSBI11_GSBI_CTRL_REG_INM" declared implicitly value = HWIO_INM(GSBI11_GSBI_CTRL_REG,mask); ^ "/data001/jenkins/jenkinsbuild/jenkinsbuild/workspace/ devbuild_g1_dsps_proc/non_HLOS/dsps_proc/core/systemdrivers/hal/gsbi/ src/HALgsbi.c", line 196: Warning: #223-D: function "HWIO_GSBI12_GSBI_CTRL_REG_INM" declared implicitly value = HWIO_INM(GSBI12_GSBI_CTRL_REG,mask); ^ === Compiling sensorsimg/arm7/DSPSBLDZ/DALTLMM.c === Compiling sensorsimg/arm7/DSPSBLDZ/DALTLMMState.c === Compiling sensorsimg/arm7/DSPSBLDZ/tramp.c === Compiling sensorsimg/arm7/DSPSBLDZ/tramp_ipc.c === Compiling sensorsimg/arm7/DSPSBLDZ/tramp_pic.c === Compiling sensorsimg/arm7/DSPSBLDZ/tramp_pic_ucos.c "/data001/jenkins/jenkinsbuild/jenkinsbuild/workspace/ devbuild_g1_dsps_proc/non_HLOS/dsps_proc/core/systemdrivers/tramp/src/ platform/pic/tramp_pic.c", line 744: Warning: #177-D: variable "index" was declared but never referenced uint32 flags,index; ^ === Compiling sensorsimg/arm7/DSPSBLDZ/tramp_pic_log.c /data001/jenkins/jenkinsbuild/jenkinsbuild/workspace/ devbuild_g1_dsps_proc/non_HLOS/dsps_proc/core/systemdrivers/tramp/src/ platform/pic/tramp_pic.c: 1 warning, 0 errors === Compiling sensorsimg/arm7/DSPSBLDZ/tramp_pic_bsp_sps.c === Compiling sensorsimg/arm7/DSPSBLDZ/tramp_gpio_sps.c /data001/jenkins/jenkinsbuild/jenkinsbuild/workspace/ devbuild_g1_dsps_proc/non_HLOS/dsps_proc/core/systemdrivers/hal/gsbi/ src/HALgsbi.c: 4 warnings, 0 errors === Archiving sensorsimg/arm7/DSPSBLDZ/HALgsbi.lib === Archiving sensorsimg/arm7/DSPSBLDZ/DALtlmm.lib === Archiving sensorsimg/arm7/DSPSBLDZ/DalIPCInt.lib === Archiving sensorsimg/arm7/DSPSBLDZ/tramp.lib === Linkingsensorsimg/arm7/DSPSBLDZ/sensorsimg.elf sh: -c: line 0: syntax error near unexpected token `(' sh: -c: line 0: `/opt/RVCT41P7/RVCT/Programs/4.1/713/linux-pentium/ armlink --elf --map --info sizes,totals --list /data001/jenkins/ jenkinsbuild/jenkinsbuild/workspace/devbuild_g1_dsps_proc/non_HLOS/ dsps_proc/core/bsp/sensorsimg/build/arm7/sensorsimg/arm7/DSPSBLDZ/ sensorsimg.map --symbols --symdefs /data001/jenkins/jenkinsbui
umask and clearcase
We are using the clearcase plugin and letting Jenkins create the views on the fly. The problem we have is that the view permissions are set with a umask of 022 which prevents anyone other than the owner/Jenkins UID from examining the view. This is on RHEL5 with rpm installed of jenkins package - version jenkins-1.451-1.1.noarch. I have tried to set the umask in the init script but it seems to get reset and I get the following output. [workspace] $ /opt/rational/clearcase/bin/cleartool mkview -tag vobadm_master_Top-of-tree_hudson /data/views/vobadm/vobadm_master_Top-of-tree_hudson Created view. Host-local path: area51:/data/views/vobadm/vobadm_master_Top-of-tree_hudson Global path: /net/area51/data/views/vobadm/vobadm_master_Top-of-tree_hudson It has the following rights: User : vobadm : rwx Group: pluto: r-x Other: : r-x Where do I modify change the umask where it would take effect for the jenkins process. BTW, I changed the process UID to vobadm which has our build permissions which you see above.
Re: Is there a way to wait for other builds to finish?
I just looked into the join plugin again and it appears to be what I want I wasn't expecting the job to finish right away like it did I thought it would wait until the other jobs were done and then kick off the join job. On Mar 1, 11:49 am, Brad wrote: > It just exited immediately. I added a job for it to trigger and it > just started that job right away. I'm using the Trigger/call builds on > other projects to call my jobs. With the block option unchecked if > that helps any > > On Mar 1, 11:40 am, Andrew Melo wrote: > > > > > > > > > On Thu, Mar 1, 2012 at 11:23 AM, Brad wrote: > > > I have several projects that I want to run in parallel and when all of > > > them done send out an email, however I can't figure out a way to do > > > this. > > > Here is a simplified scenario... In reality there are 6 jobs that need > > > to run at the same time: > > > > Job 1 \ > > > > When Done -> Send Email > > > Job 2 / > > > > I tried the join plugin but it doesn't wait for the jobs and I looked > > > at the command line api but didn't see a way to see if a job is > > > running Is there either a plugin that would do this that I'm > > > missing or an api call that I could use to see if a job is still > > > running? > > > The Join plugin *should* work. What did you see when you tried it? > > > > Thanks, > > > > Brad > > > -- > > -- > > Andrew Melo
Re: 404 vs 401
On 06/02/2012 01:49, terry.rank...@csiro.au wrote: When a user logs out, closes the browser, and then reopens it (clean start) and loads a bookmark of a project URL which is valid, he gets a 404 (not found) instead of a 401 (not authorised). I don’t think that this is really the right behaviour, I would suggest using the 401, or redirecting it to the top level login. AFAIK, this is a security feature -- i.e. by returning 404 no information is leaked to unauthorised users about the existence or non-existence of any given job. But in any case, a nicer-looking error page could be good -- though I'm not sure whether Jenkins can directly solve this given that the underlying web server is presumably the one handling the 404s. Regards, Chris
Re: HelloWorld program build using cygwin in Jenkins - issue while building
Can you execute the same commands in a Command Prompt window as Jenkins did and does it work? Can you do the same in the same directory where Jenkins tried to do it and does it work? Does it work if you change Jenkins service to run as some other user, e.g. yourself? -- Sami 2012/3/1 RENJITH G : > I just noted the cosole output and finalised it was not built due the > sentence I saw > Build step 'Execute shell' marked build as failure > Finished: FAILURE > > Now I checked in the workspace also and didn't see any out file. > > I searched the error message in google and didn't get any valid results.Also > I posted in #jenkins IRC and didn't get any inputs. > I tried to dig into the error log but no more details on the issue is found > > Expecting some more inputs from the team. > > Many kind regards > /renjith_g > > > On Thu, Mar 1, 2012 at 8:01 AM, Sami Tikka wrote: >> >> Have you considered the possibility that your build really failed? An >> error in the compiler or cygwin is not really jenkins's fault. What kind of >> steps have you taken to investigate the problem? >> >> -- Sami >> >> Kanu kirjoitti 29.2.2012 kello 8.35: >> >> > Hi all, >> > >> > I have the Jenkins setup in my machine and I have configured the >> > settings with the below options. >> > >> > 1.In 'Execute shell' tab under Hello world project settings:-> c:/ >> > cygwin/bin/bash -xe c:/test/build.sh >> > >> > 2.In Manage Jenkins under 'shell executable' tab:-> C:\cygwin\bin\bash >> > >> > 3.This is my build.sh file content. >> > #!/bin/sh >> > c:/cygwin/bin/gcc -g helloworld.c >> > >> > 4.I have the cygwin installed under c:\cygwin >> > >> > This is my error log when I tried to build using the Jenkins set up >> > >> > Console Output >> > Started by user anonymous >> > Building in workspace C:\Program Files\Jenkins\workspace\Helloworld >> > [Helloworld] $ C:\cygwin\bin\bash -xe C:\WINDOWS\TEMP >> > \hudson9092646218282923936.sh >> > + c:/cygwin/bin/bash -xe c:/test/build.sh >> > + c:/cygwin/bin/gcc -g helloworld.c >> > Build step 'Execute shell' marked build as failure >> > Finished: FAILURE >> > >> > >> > Many kind regards, >> > /Kanu > >
Re: Approach to configure an email notifications for checkins?
This sounds like a job for SVN hook scripts rather than Jenkins. You also might want to check out this project too: http://code.google.com/p/svnspam/ -John On Mar 1, 4:11 am, mickeys2 wrote: > I would like to know how to solve to send out mail to the developers when a > certain commit have happened in a specific folder. > > Is there a way to do this already or will I have to do a own plugin to check > this? > > For example: > > When ever a commit in /trunk/myspecificfolder/ > is done I want a email to be sent to: x...@.com > > Of course the original emails will still have to work. With whenever a build > fails it will send out mail, and build success and so on. > > -- > View this message in > context:http://jenkins.361315.n4.nabble.com/Approach-to-configure-an-email-no... > Sent from the Jenkins users mailing list archive at Nabble.com.
Re: Is there a way to wait for other builds to finish?
It just exited immediately. I added a job for it to trigger and it just started that job right away. I'm using the Trigger/call builds on other projects to call my jobs. With the block option unchecked if that helps any On Mar 1, 11:40 am, Andrew Melo wrote: > On Thu, Mar 1, 2012 at 11:23 AM, Brad wrote: > > I have several projects that I want to run in parallel and when all of > > them done send out an email, however I can't figure out a way to do > > this. > > Here is a simplified scenario... In reality there are 6 jobs that need > > to run at the same time: > > > Job 1 \ > > > When Done -> Send Email > > Job 2 / > > > I tried the join plugin but it doesn't wait for the jobs and I looked > > at the command line api but didn't see a way to see if a job is > > running Is there either a plugin that would do this that I'm > > missing or an api call that I could use to see if a job is still > > running? > > The Join plugin *should* work. What did you see when you tried it? > > > > > Thanks, > > > Brad > > -- > -- > Andrew Melo
Re: Is there a way to wait for other builds to finish?
On Thu, Mar 1, 2012 at 11:23 AM, Brad wrote: > I have several projects that I want to run in parallel and when all of > them done send out an email, however I can't figure out a way to do > this. > Here is a simplified scenario... In reality there are 6 jobs that need > to run at the same time: > > Job 1 \ > > When Done -> Send Email > Job 2 / > > > I tried the join plugin but it doesn't wait for the jobs and I looked > at the command line api but didn't see a way to see if a job is > running Is there either a plugin that would do this that I'm > missing or an api call that I could use to see if a job is still > running? > The Join plugin *should* work. What did you see when you tried it? > > Thanks, > > Brad -- -- Andrew Melo
Is there a way to wait for other builds to finish?
I have several projects that I want to run in parallel and when all of them done send out an email, however I can't figure out a way to do this. Here is a simplified scenario... In reality there are 6 jobs that need to run at the same time: Job 1 \ > When Done -> Send Email Job 2 / I tried the join plugin but it doesn't wait for the jobs and I looked at the command line api but didn't see a way to see if a job is running Is there either a plugin that would do this that I'm missing or an api call that I could use to see if a job is still running? Thanks, Brad
Re: I have a question about jenkins build
>From the error described, it looks like the errors are coming from another script called from inside the shell command. Are the "sh: -c: line 0: ..." showing up in the build log in Jenkins? Can you share more or the output log? (basically 15-20 lines before this is seen) As it looks more likely that the errors are coming from a script that is being called from ./build_target.sh or Make. Does the log show what script is being called before the error is printed? Does running the same commands manually from the slave machine show the same issue? If not trying doing a diff of the env from the jenkins job and the manual run to see what differences there are. Chris
Logging the Jenkins e-mail address parser
Hello, Relevant versions: Jenkins 1.452 subversion plugin 1.39 active-directory plugin 1.23 I have problems with Jenkins trying to send e-mails to "mydomainname_myusern...@domain.com" instead of "myusern...@domain.com" or whatever it finds in AD. I've found the following after enabling logging from hudson.plugins.active_directory: FINE: Failed to look up Active Directory for e-mail address org.acegisecurity.BadCredentialsException: Authentication was successful but cannot locate the user information for mydomainname_myusername But how can I figure out where "mydomainname_myusername" comes from. It is supposed to be only "myusername" I am able to authenticate when logging in so the AD seems to work. The log also says that AD is looking for "myusername", not "mydomain_username", when logging in. I have not found any objects I can add to my log recorder to figure out what's happening. Can anyone help? Best regards, Markus
Re: dpkg versioning from Git via Jenkins
* KB1JWQ wrote: > I'm in the process of setting up continuous integration. I have a git > project that I can successfully build into a .deb via Jenkins, from > the "master" branch. > How do I sanely change the version number of each build so that it > bumps the Debian changelog (else the deb build fails), the version > number of the package, and probably the naming of the resulting .deb > as well? Ultimately I want these debs to be put into a staging > repository, so "apt-get update; apt-get install foo" automatically > installs the latest Jenkins build of foo. > It seems to me that the git commit hash would be semi-sane, but I'm > new at Git, Jenkins, and Debian packaging... I'm doing something like that in my https://github.com/mika/jenkins-debian-glue project. So what tools might be interesting for you (depending on your workflow and needs) WRT changelog handling: * git-dch * debchange --release ... * dch -b -v ... git-dch supports the git commit hash out-of-the-box in the version string, you can also include custom information like build-number, timestamps,... in the version string. -mika- -- http://michael-prokop.at/ || http://adminzen.org/ http://grml-solutions.com/ || http://grml.org/
Nested view
Does any body knows how can i include existent view in a new nested view?
Nested view
Does any body knows how can i include existent view in a new nested view?
Performance Plugin constantly parsing jmx files
I have two Jmeter tests that run in two distinct jenkins jobs on tomcat, using Jenkins 1.452, ubuntu , 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux, Tom cat 7.0.25 My catalina.out file is full of the following. There are many entries than there are individual runs of jmeter. The system becomes unusable over time. Both jobs are disabled and I am still seeing the messages below. Can someone suggest additional debugging options? Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl Performance: Parsing JMeter report file Production-AppletPrint.jtl
Redundant syncs by Perforce plugin when using matrix jobs
Hi there, I've been using the Perforce plugin with Jenkins for a while now and it's been working great. However, recently I noticed that it's been doing what I think is a redundant sync. I've got a matrix job and when the job triggers, the matrix parent gets a list of the changes by calling "p4 describe" but I don't see why it actually needs to sync the entire view. Here's a snippet of my console output for the matrix parent job: [LevelEditor] $ "C:\\Program Files\\Perforce\\p4.exe" counter change [LevelEditor] $ "C:\\Program Files\\Perforce\\p4.exe" -s changes -s submitted //Jenkins_LevelEditor-Build1/...@167107,@167107 [LevelEditor] $ "C:\\Program Files\\Perforce\\p4.exe" describe -s 167107 [LevelEditor] $ "C:\\Program Files\\Perforce\\p4.exe" -G where //... Sync'ing workspace to changelist 167107 (forcing sync of unchanged files). [LevelEditor] $ "C:\\Program Files\\Perforce\\p4.exe" -s sync -f //Jenkins_LevelEditor-Build1/...@167107 Then each sub-element of the matrix does this: [x86] $ "C:\\Program Files\\Perforce\\p4.exe" counter change This is a matrix run, trying to use change number from parent/siblings... Latest change from parent is: 167107**[x86] $ "C:\\Program Files\\Perforce\\p4.exe" -s changes -s submitted //Jenkins_LevelEditor-CONFIG-Debug-TARGET-x86-Build2/...@167107,@167107**[x86] $ "C:\\Program Files\\Perforce\\p4.exe" describe -s 167107**[x86] $ "C:\\Program Files\\Perforce\\p4.exe" -G where //...**Sync'ing workspace to changelist 167107 (forcing sync of unchanged files).**[x86] $ "C:\\Program Files\\Perforce\\p4.exe" -s sync -f //Jenkins_LevelEditor-CONFIG-Debug-TARGET-x86-Build2/...@167107 Note the same sync happens again. Is this a bug in the Perforce plugin? Is there anyway to remove that first sync? As you can imagine, if your view is quite large, the sync could take a while and slow down the build. Regards, Tom.
Re: Facing problem of “java.lang.OutOfMemoryError: PermGen space” in Jenkins
Greetings, On Thu, Mar 1, 2012 at 2:09 AM, wrote: > I am facing problem of “java.lang.OutOfMemoryError: PermGen space” in > Jenkins V1.451, this out of memory issue comes when Jenkins try to connect > to Slave or a build starts on Slave, following is the error message: https://wiki.jenkins-ci.org/display/JENKINS/I'm+getting+OutOfMemoryError -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not.
Re: I have a question about jenkins build
Thanks for your reply :-) As you said I modified it. cd /bin rm sh ln -s bash sh But still error occurs. sh: -c: line 0: syntax error near unexpected token `(' sh: -c: line 0: `/opt/RVCT41P7/RVCT/Programs/4.1/713/linux-pentium/ armlink --elf --map --info sizes,totals --list ... Execute Shell like below #!/bin/bash cd non_HLOS/dsps_proc ./build_target.sh d1lv -j24 On 3월1일, 오후2시21분, Sami Tikka wrote: > Not seeing anything else like the console leaves me no real clues but I can > offer some guesses: > > 1) Maybe /bin/sh on the build machine is not bash and the build script is > using some bash-only feature? > > 2) Shell scripts have a bad habit of continuing execution even if errors > happen. That is the reason Jenkins executes build steps using /bin/sh -xe > (unless the first line if build step contains a line that starts with #!) > > -- Sami > > "seonguk.baek" kirjoitti 29.2.2012 kello 10.08: > > > > > > > > > Hello > > > We used Git system as a SCM tool. And jenkins is used for CI with > > Gerrit Trigerr plug in. > > > jenkins runs build operation when commit is uploaded to Gerrit code > > review system by developer. > > > There is error case with below job which is [ sh: Syntax error: "(" > > unexpected ] when build is running from jenkins > > > But console build is successed. I don't know why? > > > Jenkins System configure about shell is below. > > > Help me... > > > [Shell executable] /bin/bash > > > Below command is Execute shell > > > [Command] > > pwd > > repo forall -c git reset --hard [Tag name] > > rm -rf android/out/ > > repo download $GERRIT_PROJECT $GERRIT_CHANGE_NUMBER/ > > $GERRIT_PATCHSET_NUMBER > > > [Command] > > cd non_HLOS/dsps_proc > > ./build_target.sh d1lv -j24 > > repo forall -c git reset --hard HEAD > > repo forall -c git clean -xdf > > > ./build_target.sh d1lsk -j24 > > repo forall -c git reset --hard HEAD > > repo forall -c git clean -xdf > > > ./build_target.sh l_dcm -j24
Approach to configure an email notifications for checkins?
I would like to know how to solve to send out mail to the developers when a certain commit have happened in a specific folder. Is there a way to do this already or will I have to do a own plugin to check this? For example: When ever a commit in /trunk/myspecificfolder/ is done I want a email to be sent to: x...@.com Of course the original emails will still have to work. With whenever a build fails it will send out mail, and build success and so on. -- View this message in context: http://jenkins.361315.n4.nabble.com/Approach-to-configure-an-email-notifications-for-checkins-tp4434580p4434580.html Sent from the Jenkins users mailing list archive at Nabble.com.
signatures or hashes for wars?
Hi all, Are there any signatures available for the war that can be downloaded from mirrors. I looked on cucumber but only see the war - and although I could be unfriendly and download from there I would like to use a mirror. But I can't see a way to see that the war hasn't been tampered with at any point (OK cucumber itself could be hacked but) Am I missing the obvious place that I should be looking? IIRC the update center information is signed which prevents some tampering of plugins - but the war would be an obvious candidate as well would it not? /James ** This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmas...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary. NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00 **
Re: Facing problem of “java.lang.OutOfMemoryError: PermGen space” in Jenkins
I am using Linux, and I already configured my builder user ".bashrc" script with JAVA_OPTS="$JAVA_OPTS -Xmx1024 -XX:MaxPermSize=512m" Do I need to put this JAVA_OPTS in my Jenkins launch script rather than users .bashrc script -Original Message- From: Didier Durand To: Jenkins Users Sent: Thu, Mar 1, 2012 2:38 pm Subject: Re: Facing problem of “java.lang.OutOfMemoryError: PermGen space” in Jenkins This is for maven: so it will apply to your job after it starts uilding (in a separate JVM launched by Jenkins for each Job) In your case, it is the "master" JVM used by Jenkins core functions hat has the issue: it's definitely the Jenkins launch script that has o be updated. Can you tell us about your environnment: os, etc. so that we can elp ? regards didier On Mar 1, 8:55 am, jhoomshar...@netscape.net wrote: I have this entry in my lunch script: export MAVEN_OPTS="-Djava.awt.headless=true -XX:-UseGCOverheadLimit -Xms1280m Xmx1280m -XX:NewSize=128m -XX:MaxPermSize=512m" -Original Message- From: Didier Durand To: Jenkins Users Sent: Thu, Mar 1, 2012 12:45 pm Subject: Re: Facing problem of “java.lang.OutOfMemoryError: PermGen space” in enkins Hi, Did you try to increase the PermGen space in the launch shell script f jenkins. If you are like me on Ubuntu it's in /etc/default in file jenkins : ine JAVA_ARGS. regards didier On Mar 1, 8:09 am, jhoomshar...@netscape.net wrote: Hi All, I am facing problem of “java.lang.OutOfMemoryError: PermGen space” in Jenkins 1.451, this out of memory issue comes when Jenkins try to connect to Slave or uild starts on Slave, following is the error message: // Exception in thread "RequestHandlerThread[#0]" java.lang.OutOfMemoryError: ermGen space Exception in thread "RequestHandlerThread[#5]" java.lang.OutOfMemoryError: ermGen space Feb 29, 2012 7:46:39 AM hudson.remoting.Channel$ReaderThread run SEVERE: Unexpected error in channel vw-aus-atm-bl01 java.lang.OutOfMemoryError: PermGen space at sun.misc.Unsafe.defineClass(Native Method) at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45) at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381) at java.security.AccessController.doPrivileged(Native Method) at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377) at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:95) at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:313) at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1327) at java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java:52) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:437) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.(ObjectStreamClass.java:413) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1127) Exception in thread "Channel reader thread: vl-aus-atm-bl01" ava.lang.OutOfMemoryError: PermGen space Exception in thread "Ping thread for channel hudson.remoting.Channel@87ca1a9:vw-aus-atm-bl01" ava.lang.OutOfMemoryError: PermGen space Exception in thread "Ping thread for channel hudson.remoting.Channel@453130df:vl-aus-atm-bl01" ava.lang.OutOfMemoryError: PermGen space Feb 29, 2012 7:48:18 AM winstone.Logger logInternal WARNING: Untrapped Error in Servlet java.lang.OutOfMemoryError: PermGen space Exception in thread "Channel rea
Re: CheckStyle plugin problem
Thanks, that's solved the problem. On Feb 29, 9:55 am, Ullrich Hafner wrote: > Looks like an old version of analysis-core plugin (static analysis > utilities). Please upgrade. > > Ulli > > On 02/29/2012 10:48 AM, BEvans wrote: > > > > > > > > > I'm currently trying to configure the CheckStyle Jenkins plugin for > > use in a job, however when the job is configured to Publish Checkstyle > > analysis results (clicking the tick box) and the configuration is > > saved an error occurs. This error is: > > > Status Code: 500 > > > Exception: > > Stacktrace: > > > java.lang.NoSuchMethodError: > > hudson.plugins.analysis.core.HealthAwarePublisher.(Ljava/lang/ > > String;Ljava/lang/String;) > > at > > hudson.plugins.checkstyle.CheckStylePublisher.(CheckStylePublisher.ja > > va: > > 106) > > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce > > ssorImpl.java: > > 57) > > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru > > ctorAccessorImpl.java: > > 45) > > at > > java.lang.reflect.Constructor.newInstance(Constructor.java:532) > > at > > org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java: > > 419) > > > > > This is using the following: > > Jenkins 1.446 > > Checkstyle Plugin 3.23 > > Checkstyle 5.5 > > > This prevents the publishing of any Checkstyle results so any help > > would be greatly appreciated. > > > Thanks.
Re: Facing problem of “java.lang.OutOfMemoryError: PermGen space” in Jenkins
This is for maven: so it will apply to your job after it starts building (in a separate JVM launched by Jenkins for each Job) In your case, it is the "master" JVM used by Jenkins core functions that has the issue: it's definitely the Jenkins launch script that has to be updated. Can you tell us about your environnment: os, etc. so that we can help ? regards didier On Mar 1, 8:55 am, jhoomshar...@netscape.net wrote: > I have this entry in my lunch script: > > export MAVEN_OPTS="-Djava.awt.headless=true -XX:-UseGCOverheadLimit -Xms1280m > -Xmx1280m -XX:NewSize=128m -XX:MaxPermSize=512m" > > > > > > > > -Original Message- > From: Didier Durand > To: Jenkins Users > Sent: Thu, Mar 1, 2012 12:45 pm > Subject: Re: Facing problem of “java.lang.OutOfMemoryError: PermGen space” in > Jenkins > > Hi, > Did you try to increase the PermGen space in the launch shell script > f jenkins. > If you are like me on Ubuntu it's in /etc/default in file jenkins : > ine JAVA_ARGS. > regards > didier > On Mar 1, 8:09 am, jhoomshar...@netscape.net wrote: > Hi All, > I am facing problem of “java.lang.OutOfMemoryError: PermGen space” in Jenkins > 1.451, this out of memory issue comes when Jenkins try to connect to Slave or > a > uild starts on Slave, following is the error message: > // > Exception in thread "RequestHandlerThread[#0]" java.lang.OutOfMemoryError: > ermGen space > Exception in thread "RequestHandlerThread[#5]" java.lang.OutOfMemoryError: > ermGen space > Feb 29, 2012 7:46:39 AM hudson.remoting.Channel$ReaderThread run > SEVERE: Unexpected error in channel vw-aus-atm-bl01 > java.lang.OutOfMemoryError: PermGen space > at sun.misc.Unsafe.defineClass(Native Method) > at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45) > at > sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381) > at java.security.AccessController.doPrivileged(Native Method) > at > sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377) > at > sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:95) > at > sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:313) > at > java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1327) > at java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java:52) > at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:437) > at java.security.AccessController.doPrivileged(Native Method) > at java.io.ObjectStreamClass.(ObjectStreamClass.java:413) > at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310) > at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547) > at > java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582) > at > java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) > at > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) > at > java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) > at > java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870) > at > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) > at > java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) > at > java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870) > at > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) > at hudson.remoting.Channel$ReaderThread.run(Channel.java:1127) > Exception in thread "Channel reader thread: vl-aus-atm-bl01" > ava.lang.OutOfMemoryError: PermGen space > Exception in thread "Ping thread for channel > hudson.remoting.Channel@87ca1a9:vw-aus-atm-bl01" > ava.lang.OutOfMemoryError: PermGen space > Exception in thread "Ping thread for channel > hudson.remoting.Channel@453130df:vl-aus-atm-bl01" > ava.lang.OutOfMemoryError: PermGen space > Feb 29, 2012 7:48:18 AM winstone.Logger logInternal > WARNING: Untrapped Error in Servlet > java.lang.OutOfMemoryError: PermGen space > Exception in thread "Channel reader thread: vw-aus-atm-bl01" > ava.lang.OutOfMemoryError: PermGen space > Exception in thread "RequestHandlerThread[#3]" java.lang.OutOfMemoryError: > ermGen space > Exception in thread "RequestHandlerThread[#1]" java.lang.OutOfMemoryError: > ermGen space > Exception in thread "RequestHandlerThr
Re: HelloWorld program build using cygwin in Jenkins - issue while building
I just noted the cosole output and finalised it was not built due the sentence I saw Build step 'Execute shell' marked build as failure Finished: FAILURE Now I checked in the workspace also and didn't see any out file. I searched the error message in google and didn't get any valid results.Also I posted in #jenkins IRC and didn't get any inputs. I tried to dig into the error log but no more details on the issue is found Expecting some more inputs from the team. Many kind regards /renjith_g On Thu, Mar 1, 2012 at 8:01 AM, Sami Tikka wrote: > Have you considered the possibility that your build really failed? An > error in the compiler or cygwin is not really jenkins's fault. What kind of > steps have you taken to investigate the problem? > > -- Sami > > Kanu kirjoitti 29.2.2012 kello 8.35: > > > Hi all, > > > > I have the Jenkins setup in my machine and I have configured the > > settings with the below options. > > > > 1.In 'Execute shell' tab under Hello world project settings:-> c:/ > > cygwin/bin/bash -xe c:/test/build.sh > > > > 2.In Manage Jenkins under 'shell executable' tab:-> C:\cygwin\bin\bash > > > > 3.This is my build.sh file content. > > #!/bin/sh > > c:/cygwin/bin/gcc -g helloworld.c > > > > 4.I have the cygwin installed under c:\cygwin > > > > This is my error log when I tried to build using the Jenkins set up > > > > Console Output > > Started by user anonymous > > Building in workspace C:\Program Files\Jenkins\workspace\Helloworld > > [Helloworld] $ C:\cygwin\bin\bash -xe C:\WINDOWS\TEMP > > \hudson9092646218282923936.sh > > + c:/cygwin/bin/bash -xe c:/test/build.sh > > + c:/cygwin/bin/gcc -g helloworld.c > > Build step 'Execute shell' marked build as failure > > Finished: FAILURE > > > > > > Many kind regards, > > /Kanu >
Re: HelloWorld program build using cygwin in Jenkins - issue while building
Have you considered the possibility that your build really failed? An error in the compiler or cygwin is not really jenkins's fault. What kind of steps have you taken to investigate the problem? -- Sami Kanu kirjoitti 29.2.2012 kello 8.35: > Hi all, > > I have the Jenkins setup in my machine and I have configured the > settings with the below options. > > 1.In 'Execute shell' tab under Hello world project settings:-> c:/ > cygwin/bin/bash -xe c:/test/build.sh > > 2.In Manage Jenkins under 'shell executable' tab:-> C:\cygwin\bin\bash > > 3.This is my build.sh file content. > #!/bin/sh > c:/cygwin/bin/gcc -g helloworld.c > > 4.I have the cygwin installed under c:\cygwin > > This is my error log when I tried to build using the Jenkins set up > > Console Output > Started by user anonymous > Building in workspace C:\Program Files\Jenkins\workspace\Helloworld > [Helloworld] $ C:\cygwin\bin\bash -xe C:\WINDOWS\TEMP > \hudson9092646218282923936.sh > + c:/cygwin/bin/bash -xe c:/test/build.sh > + c:/cygwin/bin/gcc -g helloworld.c > Build step 'Execute shell' marked build as failure > Finished: FAILURE > > > Many kind regards, > /Kanu