Re: Configure BitBucket to build upon commit on Jenkins

2019-02-22 Thread Francisco
Yap, I followed those steps and with the branch source plugin doesn't work.

And I tried the native webhook, which seems to get to jenkins (saw it on 
the log) but then it says :"Matched 0". Meaning it doesn't find anything... 
Any solutions?

Em sexta-feira, 22 de fevereiro de 2019 04:01:16 UTC, Richard Bywater 
escreveu:
>
> Have you followed the instructions available at 
> https://support.cloudbees.com/hc/en-us/articles/11553051-How-to-Trigger-Multibranch-Jobs-from-Bitbucket-Server-
>  
> ? I haven't configured it in a while but these steps are what I last used. 
>
> Also of particular note is that, as far as I know, you can't used the 
> native Bitbucket webhook functionality and instead need to use the plugin 
> mentioned in the above article. 
>
> Richard. 
>
> On Fri, 22 Feb 2019, 11:50 AM Francisco,  > wrote:
>
>> Hello guys,
>>
>> I'm facing an issue and I already tried many solutions. The trouble is: 
>> on BitBucket (BB) I configured the Bitbucket Server Webhook to Jenkins with 
>> my Jenkins URL and my repository. Then, on Jenkins I configured (in a 
>> multibranch) the Git Plugin with my repo and tried to do a commit and it 
>> worked perfect, I committed and a build was a fired on Jenkins. But I want 
>> to use the BitBucket Branch Source Plugin on Jenkins and when I tried to 
>> configure it instead of using the Git Plugin nothing happened (no build has 
>> fired on Jenkins after a commit). Can you guys help me on this?
>>
>> The second solution I tried was using a custom hook on BitBucket which 
>> seems to get to Jenkins but then it doesn't find my multibranch on Jenkins 
>> (I can detail this a little more if you want).
>>
>> I wanted to make the first solution to get to work because it's the best 
>> and the cleanest, so if you could help me I would appreciate.
>>
>> Best regards,
>>
>> Francisco Vieira
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/66a7c81b-d4e5-49b1-b796-8147680c7885%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/66a7c81b-d4e5-49b1-b796-8147680c7885%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ad9f986a-2c90-4579-b9c4-51bc2eae4a8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Configure BitBucket to build upon commit on Jenkins

2019-02-21 Thread Francisco
Hello guys,

I'm facing an issue and I already tried many solutions. The trouble is: on 
BitBucket (BB) I configured the Bitbucket Server Webhook to Jenkins with my 
Jenkins URL and my repository. Then, on Jenkins I configured (in a 
multibranch) the Git Plugin with my repo and tried to do a commit and it 
worked perfect, I committed and a build was a fired on Jenkins. But I want 
to use the BitBucket Branch Source Plugin on Jenkins and when I tried to 
configure it instead of using the Git Plugin nothing happened (no build has 
fired on Jenkins after a commit). Can you guys help me on this?

The second solution I tried was using a custom hook on BitBucket which 
seems to get to Jenkins but then it doesn't find my multibranch on Jenkins 
(I can detail this a little more if you want).

I wanted to make the first solution to get to work because it's the best 
and the cleanest, so if you could help me I would appreciate.

Best regards,

Francisco Vieira

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/66a7c81b-d4e5-49b1-b796-8147680c7885%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Using shell script

2018-02-14 Thread Francisco Vieira
I got there today :) although I got it to work now I need to use shell 
script inside that function... Any suggestions to do this inside a NonCPS ? 
I've been reading that is not possible.

Thanks!

Em segunda-feira, 12 de fevereiro de 2018 22:04:37 UTC, Victor Martinez 
escreveu:
>
> Hi Francisco,
>
> Did you use the annotation @NonCPS in your function? 
>
> Cheers
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/938b939e-7663-45ae-b7af-8ea8e35cd8d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Using shell script

2018-02-12 Thread Francisco Vieira
Hello there,

I'm an begginer at Jenkins and I was wondering if you guys could help. My 
problem: I'm 'building' a JSON file with JSONBuilder in groovy (so far so 
good). After I do this, I wanna be able to do a command with shell script 
so I can do some things of my own. And I know how to do it, but then I get 
NotSerializableException 
when I build. Any suggestions?

Cheers!

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/644b738a-0127-4700-85da-9d9db02cfbd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Editing naming of jenkins runs (Threads)

2015-09-08 Thread Francisco Javier Pulido Vergara
Hi all,

I'm executing a cron job with maven which executes several Java classes and 
each class launchs 8 threads.

My problem is that when I want to check the results I see something like 
this:

 US1449.afterClass:26 NullPointer
com..**.US1449.displayRouteMapToFromSelector(com.*.**.US1449)
  Run 1: US1449.displayRouteMapToFromSelector:50 » NoSuchElement Unable to find 
element...
  Run 2: PASS
  Run 3: US1449.displayRouteMapToFromSelector:50 » NoSuchElement Unable to 
locate eleme...
  Run 4: US1449.displayRouteMapToFromSelector:50 » NoSuchElement Unable to 
locate eleme...
  Run 5: US1449.displayRouteMapToFromSelector:50 » NoSuchElement no such element
  (Ses...
  Run 6: US1449.displayRouteMapToFromSelector:50 » NoSuchElement Could not find 
element...
  Run 7: US1449.displayRouteMapToFromSelector:50 » NoSuchElement Unable to find 
element...
  Run 8: PASS



Is there anyway to override that "Run 1, Run2..." to show the ID of the thread 
or a descriptive text?


Thanks in advance :)

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0a84cafd-0669-4f17-b66c-037a69945415%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: System environments not recognized in Jenkins job

2015-09-08 Thread Francisco Javier Pulido Vergara
Hi,

I'm trying to figure out why is this happening, in the meanwhile you can 
check on your jenkins which parameters is receiving from your system.

you can do so by accesing to {jenkinsURL}:8080/systemInfo and look for the 
environment variables.

El lunes, 7 de septiembre de 2015, 11:20:46 (UTC+2), Uroš Kočevar escribió:
>
> All of a sudden, Jenkins (ver. 1.627) job which start batch file is 
> failing because system environments is not recognized.
>
> E.g. 'svn' is not recognized as an internal or external command, operable 
> program or batch file.
>
>
>
> If I execute the batch file manually it works OK. Any ideas what could cause 
> such behaviour?
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d61fc3a5-8669-4a46-bc42-e37219b3611c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


NPE while archiving artifacts

2014-02-13 Thread João Francisco Amorim Enomoto
(MailSender.java:326)
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createEmptyMailentity=method
at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:175)
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createBackToNormalMailentity=method
at hudson.tasks.MailSender.getMail(MailSender.java:168)
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.getMailentity=method
at hudson.tasks.MailSender.execute(MailSender.java:100)
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.executeentity=method
at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:56)
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.reporters.MavenMailer.endentity=method
at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103)
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.AbstractMavenBuilder.endentity=method
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:829)
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRunentity=method
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566)
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.runentity=method
at hudson.model.Run.execute(Run.java:1678)
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.executeentity=method
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509)
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild.runentity=method
at hudson.model.ResourceController.execute(ResourceController.java:88)
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.executeentity=method
at hudson.model.Executor.run(Executor.java:231)
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.runentity=method


-- 
João Francisco Amorim Enomoto jfaenomoto (at) gmail . com

To be or not to be.
-- Shakespeare
To do is to be.
-- Nietzsche
To be is to do.
-- Sartre
Do be do be do.
-- Sinatra

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Found NPE and Jenkins asks to report here

2013-01-06 Thread Francisco Alejandro Lozano López


I found this in the last stages of our build:


ERROR: Processing failed due to a bug in the code. Please report this to 
jenkinsci-us...@googlegroups.comjava.lang.NullPointerException 
http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException: 
no such build node: 
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:68) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.CommandInterpreter.performentity=method
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:60) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.CommandInterpreter.performentity=method
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepMonitor$1.performentity=method
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.performentity=method
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.build(MavenModuleSetBuild.java:818)
 
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.buildentity=method
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:769)
 
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRunentity=method
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.runentity=method
at hudson.model.Run.execute(Run.java:1543) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.executeentity=method
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild.runentity=method
at hudson.model.ResourceController.execute(ResourceController.java:88) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.executeentity=method
at hudson.model.Executor.run(Executor.java:236) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.runentity=method


I hope it helps...



Copying/Cloning Jobs Maintaining the Building Order (Dependency)

2012-11-22 Thread Francisco Díaz Trepat
Hi Guys, a colleague of mine is working on automation of release and 
jenkins job reordering in general.

We have a repo.git that contains a number of projects we build in jenkins, 
we want to automate the release process by using the jenkins api and clone 
all the _develop jobs to _release jobs.

So far so good, the problem is how can we obtain the BUILD ORDER.

proj-3_develop
proj-1_develop
proj-2_develop

How can we know which one needs to build first, we were thinking parsing 
maven dependency tree but seems a hustle.

Can this be done with jenkis api?

f.


My jenkins asks me to report here a possible bug

2012-08-10 Thread Francisco Alejandro Lozano López


ERROR: Processing failed due to a bug in the code. Please report this to 
jenkinsci-us...@googlegroups.comjava.lang.NullPointerException 
http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException  
at hudson.model.listeners.RunListener.all(RunListener.java:216) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.listeners.RunListener.allentity=method
at 
hudson.model.listeners.RunListener.fireFinalized(RunListener.java:196) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.listeners.RunListener.fireFinalizedentity=method
at hudson.model.Run.onEndBuilding(Run.java:1616) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.onEndBuildingentity=method
at hudson.model.Run.execute(Run.java:1560) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.executeentity=method
at hudson.maven.MavenBuild.access$600(MavenBuild.java:83) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenBuild.access$600entity=method
at hudson.maven.MavenBuild$ProxyImpl2.close(MavenBuild.java:545) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenBuild$ProxyImpl2.closeentity=method
at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:106) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.AbstractMavenBuilder.endentity=method
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:794)
 
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRunentity=method
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.runentity=method
at hudson.model.Run.execute(Run.java:1488) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.executeentity=method
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild.runentity=method
at hudson.model.ResourceController.execute(ResourceController.java:88) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.executeentity=method
at hudson.model.Executor.run(Executor.java:236) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.runentity=method