[Event]: Jenkins World 2016

2016-06-03 Thread Alyssa Tong
Hello,

Jenkins World  agenda is now
live! Here's what you can expect:

   -

   Keynotes by Kohsuke Kawaguchi, Sacha Labourey, and Gary Gruver, author
   of “Leading the Transformation”
   - 50+ sessions from Jenkins experts that span a breadth of topics
   - More than 40+ industry speakers discussing topics that are relevant
   - Continuous delivery influencers sharing inspirational thought
   leadership
   - Workshops, training, and certifications
   


Check out Jenkins World Highlights Video
:

Help us spread the word:

   -



   - Share this on all of your social channels. Be sure to use
   *#JenkinsWorld* in all of your tweets.

Take advantage of the super early bird rate of $399

(until July 1, 2016)


have a great weekend,

alyssa


[image: Inline image 3]

-- 
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/CAC9wNayxVSEd2xeV-58eUp9hFsajGJ5nARWVijGBPUBbPkxzoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

2016-06-03 Thread Thomas Zoratto
you need to do something like that : 

mkdir my-repo
cd my-repo
git init
cp /path/to/a/file ./
git add --all
git commit -m "your commit message"

then you specify the path to this repo in a Jenkins job et voilà !

> Le 3 juin 2016 à 22:16, Freddy Paxton  a 
> écrit :
> 
> Thank you, I have been trying to use tutorials but because I'm already half 
> way through the process it's hard to see what I have missed or what I have 
> setup incorrectly.
> Just for clarification, do my java files need to be in the 
> /var/lib/jenkins/repo folder or the /var/lib/jenkins/repo/test_repo.git 
> folder? Originally I was trying to use the test_repo.git folder for all of 
> this, I think this is mainly where I have been going wrong.
> 
> On Friday, June 3, 2016 at 9:07:36 PM UTC+1, Thomas Zoratto wrote:
> cd /path/to/your/repo
> 
> git add --all
> git commit -m "your commit message"
> 
> I encourage you to go through a git tutorial to learn the basics.
> 
> Thomas
> 
>> Le 3 juin 2016 à 22:00, Freddy Paxton > > a écrit :
>> 
>> How do I go about doing this?
>> 
>> On Friday, June 3, 2016 at 8:23:10 PM UTC+1, Thomas Zoratto wrote:
>> Hi, 
>> 
>> Did you commit your changes in your repo ? 
>> 
>>> Le 3 juin 2016 à 20:43, Freddy Paxton > a 
>>> écrit :
>>> 
>>> I'm new to Jenkins, Ubuntu and Git so the answer to this is probably 
>>> something I've missed out!
>>> 
>>> What I want to do is set up a Git repository in which 2 Java files are 
>>> located (HelloWorld.java and HelloWorldErr.java - HelloWorldErr is missing 
>>> an ; ). This is to test the Jenkins build and test system to see if it can 
>>> successfully compile the HelloWorld.java file and run it, and also discover 
>>> the error in HelloWorldErr.java. It's a pretty simple test but I'm having 
>>> trouble getting it working.
>>> 
>>> After finally managing to set up the repository correctly, I now get an 
>>> error saying:
>>> ERROR: Couldn't find any revision to build. Verify the repository and 
>>> branch configuration for this job.
>>> 
>>> After scouting the internet for tutorials and/or anyone with similar 
>>> problems I'm still looking for a solution. Even an explanation of the 
>>> process would probably help me a lot.
>>> 
>>> My repository is located at /var/lib/jenkins/repo/test_repo.git/ and the 2 
>>> Java files are in there. I left the branch specifier as */master as I do 
>>> not know what this does.
>>> 
>>> In my Execute shell command I have:
>>> 
>>> javac HelloWorld.java
>>> java HelloWorld
>>> Obviously this means that it is not looking at HelloWorldErr.java but for 
>>> now I just want the build to run successfully.
>>> 
>>> Sorry if I haven't explained myself very well. Once I get this working I am 
>>> also planning to test running files through GitHub but I do not want to 
>>> start on that before I can get the local Git working correctly.
>>> 
>>> Thanks in advance! Any insight on this is going to really help me with my 
>>> project.
>>> 
>>> If it helps here is the console output with branch set to */master...
>>> Building in workspace /var/lib/jenkins/jobs/HelloWorld/workspace
>>> > git rev-parse --is-inside-work-tree # timeout=10
>>> Fetching changes from the remote Git repository
>>> > git config remote.origin.url file:///var/lib/jenkins/repo/test_repo.git 
>>> > <> # timeout=10
>>> Fetching upstream changes from file:///var/lib/jenkins/repo/test_repo.git <>
>>> > git --version # timeout=10
>>> > git -c core.askpass=true fetch --tags --progress 
>>> > file:///var/lib/jenkins/repo/test_repo.git <> 
>>> > +refs/heads/:refs/remotes/origin/
>>> > git rev-parse refs/remotes/origin/master^
>>> 
>>> {commit} # timeout=10
>>> > git rev-parse refs/remotes/origin/origin/master^{commit}
>>> # timeout=10
>>> > git rev-parse origin/master^
>>> 
>>> {commit}
>>> # timeout=10
>>> ERROR: Couldn't find any revision to build. Verify the repository and 
>>> branch configuration for this job.
>>> Finished: FAILURE
>>> 
>>> And here is the output when I leave branch blank...
>>> Building in workspace /var/lib/jenkins/jobs/HelloWorld/workspace
>>> > git rev-parse --is-inside-work-tree # timeout=10
>>> Fetching changes from the remote Git repository
>>> > git config remote.origin.url file:///var/lib/jenkins/repo/test_repo.git 
>>> > <> # timeout=10
>>> Fetching upstream changes from file:///var/lib/jenkins/repo/test_repo.git <>
>>> > git --version # timeout=10
>>> > git -c core.askpass=true fetch --tags --progress 
>>> > file:///var/lib/jenkins/repo/test_repo.git <> 
>>> > +refs/heads/:refs/remotes/origin/
>>> Seen 0 remote branches
>>> ERROR: Couldn't find any revision to build. Verify the repository and 
>>> branch configuration for this job.
>>> Finished: FAILURE
>>> 
>>> 
>>> -- 
>>> 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 
>>> 

Re: ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

2016-06-03 Thread Freddy Paxton
Thank you, I have been trying to use tutorials but because I'm already half 
way through the process it's hard to see what I have missed or what I have 
setup incorrectly.
Just for clarification, do my java files need to be in the 
/var/lib/jenkins/repo folder or the /var/lib/jenkins/repo/test_repo.git 
folder? Originally I was trying to use the test_repo.git folder for all of 
this, I think this is mainly where I have been going wrong.

On Friday, June 3, 2016 at 9:07:36 PM UTC+1, Thomas Zoratto wrote:
>
> cd /path/to/your/repo
>
> git add --all
> git commit -m "your commit message"
>
> I encourage you to go through a git tutorial to learn the basics.
>
> Thomas
>
> Le 3 juin 2016 à 22:00, Freddy Paxton  > a écrit :
>
> How do I go about doing this?
>
> On Friday, June 3, 2016 at 8:23:10 PM UTC+1, Thomas Zoratto wrote:
>>
>> Hi, 
>>
>> Did you commit your changes in your repo ? 
>>
>> Le 3 juin 2016 à 20:43, Freddy Paxton  a 
>> écrit :
>>
>> I'm new to Jenkins, Ubuntu and Git so the answer to this is probably 
>> something I've missed out!
>>
>> What I want to do is set up a Git repository in which 2 Java files are 
>> located (HelloWorld.java and HelloWorldErr.java - HelloWorldErr is missing 
>> an ; ). This is to test the Jenkins build and test system to see if it can 
>> successfully compile the HelloWorld.java file and run it, and also discover 
>> the error in HelloWorldErr.java. It's a pretty simple test but I'm having 
>> trouble getting it working.
>>
>> After finally managing to set up the repository correctly, I now get an 
>> error saying:
>> ERROR: Couldn't find any revision to build. Verify the repository and 
>> branch configuration for this job.
>>
>> After scouting the internet for tutorials and/or anyone with similar 
>> problems I'm still looking for a solution. Even an explanation of the 
>> process would probably help me a lot.
>>
>> My repository is located at /var/lib/jenkins/repo/test_repo.git/ and the 
>> 2 Java files are in there. I left the branch specifier as */master as I do 
>> not know what this does.
>>
>> In my Execute shell command I have:
>>
>> javac HelloWorld.java
>> java HelloWorld
>> Obviously this means that it is not looking at HelloWorldErr.java but for 
>> now I just want the build to run successfully.
>>
>> Sorry if I haven't explained myself very well. Once I get this working I 
>> am also planning to test running files through GitHub but I do not want to 
>> start on that before I can get the local Git working correctly.
>>
>> Thanks in advance! Any insight on this is going to really help me with my 
>> project.
>>
>> If it helps here is the console output with branch set to */master...
>> Building in workspace /var/lib/jenkins/jobs/HelloWorld/workspace
>> > git rev-parse --is-inside-work-tree # timeout=10
>> Fetching changes from the remote Git repository
>> > git config remote.origin.url file:///var/lib/jenkins/repo/test_repo.git # 
>> timeout=10
>> Fetching upstream changes from file:///var/lib/jenkins/repo/test_repo.git
>> > git --version # timeout=10
>> > git -c core.askpass=true fetch --tags --progress 
>> file:///var/lib/jenkins/repo/test_repo.git +refs/heads/
>> *:refs/remotes/origin/*
>> > git rev-parse refs/remotes/origin/master^
>> {commit} # timeout=10
>> > git rev-parse refs/remotes/origin/origin/master^{commit}
>>
>> # timeout=10
>> > git rev-parse origin/master^
>> {commit}
>>
>> # timeout=10
>> ERROR: Couldn't find any revision to build. Verify the repository and 
>> branch configuration for this job.
>> Finished: FAILURE
>>
>> And here is the output when I leave branch blank...
>> Building in workspace /var/lib/jenkins/jobs/HelloWorld/workspace
>> > git rev-parse --is-inside-work-tree # timeout=10
>> Fetching changes from the remote Git repository
>> > git config remote.origin.url file:///var/lib/jenkins/repo/test_repo.git # 
>> timeout=10
>> Fetching upstream changes from file:///var/lib/jenkins/repo/test_repo.git
>> > git --version # timeout=10
>> > git -c core.askpass=true fetch --tags --progress 
>> file:///var/lib/jenkins/repo/test_repo.git +refs/heads/
>> *:refs/remotes/origin/*
>> Seen 0 remote branches
>> ERROR: Couldn't find any revision to build. Verify the repository and 
>> branch configuration for this job.
>> Finished: FAILURE
>>
>> -- 
>> 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/911c209e-58d8-4cca-9077-43f00d37402d%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
> -- 
> You received this message 

Re: ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

2016-06-03 Thread Thomas Zoratto
cd /path/to/your/repo

git add --all
git commit -m "your commit message"

I encourage you to go through a git tutorial to learn the basics.

Thomas

> Le 3 juin 2016 à 22:00, Freddy Paxton  a 
> écrit :
> 
> How do I go about doing this?
> 
> On Friday, June 3, 2016 at 8:23:10 PM UTC+1, Thomas Zoratto wrote:
> Hi, 
> 
> Did you commit your changes in your repo ? 
> 
>> Le 3 juin 2016 à 20:43, Freddy Paxton > > a écrit :
>> 
>> I'm new to Jenkins, Ubuntu and Git so the answer to this is probably 
>> something I've missed out!
>> 
>> What I want to do is set up a Git repository in which 2 Java files are 
>> located (HelloWorld.java and HelloWorldErr.java - HelloWorldErr is missing 
>> an ; ). This is to test the Jenkins build and test system to see if it can 
>> successfully compile the HelloWorld.java file and run it, and also discover 
>> the error in HelloWorldErr.java. It's a pretty simple test but I'm having 
>> trouble getting it working.
>> 
>> After finally managing to set up the repository correctly, I now get an 
>> error saying:
>> ERROR: Couldn't find any revision to build. Verify the repository and branch 
>> configuration for this job.
>> 
>> After scouting the internet for tutorials and/or anyone with similar 
>> problems I'm still looking for a solution. Even an explanation of the 
>> process would probably help me a lot.
>> 
>> My repository is located at /var/lib/jenkins/repo/test_repo.git/ and the 2 
>> Java files are in there. I left the branch specifier as */master as I do not 
>> know what this does.
>> 
>> In my Execute shell command I have:
>> 
>> javac HelloWorld.java
>> java HelloWorld
>> Obviously this means that it is not looking at HelloWorldErr.java but for 
>> now I just want the build to run successfully.
>> 
>> Sorry if I haven't explained myself very well. Once I get this working I am 
>> also planning to test running files through GitHub but I do not want to 
>> start on that before I can get the local Git working correctly.
>> 
>> Thanks in advance! Any insight on this is going to really help me with my 
>> project.
>> 
>> If it helps here is the console output with branch set to */master...
>> Building in workspace /var/lib/jenkins/jobs/HelloWorld/workspace
>> > git rev-parse --is-inside-work-tree # timeout=10
>> Fetching changes from the remote Git repository
>> > git config remote.origin.url file:///var/lib/jenkins/repo/test_repo.git <> 
>> > # timeout=10
>> Fetching upstream changes from file:///var/lib/jenkins/repo/test_repo.git <>
>> > git --version # timeout=10
>> > git -c core.askpass=true fetch --tags --progress 
>> > file:///var/lib/jenkins/repo/test_repo.git <> 
>> > +refs/heads/:refs/remotes/origin/
>> > git rev-parse refs/remotes/origin/master^
>> 
>> {commit} # timeout=10
>> > git rev-parse refs/remotes/origin/origin/master^{commit}
>> # timeout=10
>> > git rev-parse origin/master^
>> 
>> {commit}
>> # timeout=10
>> ERROR: Couldn't find any revision to build. Verify the repository and branch 
>> configuration for this job.
>> Finished: FAILURE
>> 
>> And here is the output when I leave branch blank...
>> Building in workspace /var/lib/jenkins/jobs/HelloWorld/workspace
>> > git rev-parse --is-inside-work-tree # timeout=10
>> Fetching changes from the remote Git repository
>> > git config remote.origin.url file:///var/lib/jenkins/repo/test_repo.git <> 
>> > # timeout=10
>> Fetching upstream changes from file:///var/lib/jenkins/repo/test_repo.git <>
>> > git --version # timeout=10
>> > git -c core.askpass=true fetch --tags --progress 
>> > file:///var/lib/jenkins/repo/test_repo.git <> 
>> > +refs/heads/:refs/remotes/origin/
>> Seen 0 remote branches
>> ERROR: Couldn't find any revision to build. Verify the repository and branch 
>> configuration for this job.
>> Finished: FAILURE
>> 
>> 
>> -- 
>> 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/911c209e-58d8-4cca-9077-43f00d37402d%40googlegroups.com
>>  
>> .
>> 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/3a1c978c-fca9-40ef-922a-7d5f25e00924%40googlegroups.com
>  
> 

Re: ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

2016-06-03 Thread Freddy Paxton
How do I go about doing this?

On Friday, June 3, 2016 at 8:23:10 PM UTC+1, Thomas Zoratto wrote:
>
> Hi, 
>
> Did you commit your changes in your repo ? 
>
> Le 3 juin 2016 à 20:43, Freddy Paxton  > a écrit :
>
> I'm new to Jenkins, Ubuntu and Git so the answer to this is probably 
> something I've missed out!
>
> What I want to do is set up a Git repository in which 2 Java files are 
> located (HelloWorld.java and HelloWorldErr.java - HelloWorldErr is missing 
> an ; ). This is to test the Jenkins build and test system to see if it can 
> successfully compile the HelloWorld.java file and run it, and also discover 
> the error in HelloWorldErr.java. It's a pretty simple test but I'm having 
> trouble getting it working.
>
> After finally managing to set up the repository correctly, I now get an 
> error saying:
> ERROR: Couldn't find any revision to build. Verify the repository and 
> branch configuration for this job.
>
> After scouting the internet for tutorials and/or anyone with similar 
> problems I'm still looking for a solution. Even an explanation of the 
> process would probably help me a lot.
>
> My repository is located at /var/lib/jenkins/repo/test_repo.git/ and the 2 
> Java files are in there. I left the branch specifier as */master as I do 
> not know what this does.
>
> In my Execute shell command I have:
>
> javac HelloWorld.java
> java HelloWorld
> Obviously this means that it is not looking at HelloWorldErr.java but for 
> now I just want the build to run successfully.
>
> Sorry if I haven't explained myself very well. Once I get this working I 
> am also planning to test running files through GitHub but I do not want to 
> start on that before I can get the local Git working correctly.
>
> Thanks in advance! Any insight on this is going to really help me with my 
> project.
>
> If it helps here is the console output with branch set to */master...
> Building in workspace /var/lib/jenkins/jobs/HelloWorld/workspace
> > git rev-parse --is-inside-work-tree # timeout=10
> Fetching changes from the remote Git repository
> > git config remote.origin.url file:///var/lib/jenkins/repo/test_repo.git # 
> timeout=10
> Fetching upstream changes from file:///var/lib/jenkins/repo/test_repo.git
> > git --version # timeout=10
> > git -c core.askpass=true fetch --tags --progress 
> file:///var/lib/jenkins/repo/test_repo.git +refs/heads/
> *:refs/remotes/origin/*
> > git rev-parse refs/remotes/origin/master^
> {commit} # timeout=10
> > git rev-parse refs/remotes/origin/origin/master^{commit}
>
> # timeout=10
> > git rev-parse origin/master^
> {commit}
>
> # timeout=10
> ERROR: Couldn't find any revision to build. Verify the repository and 
> branch configuration for this job.
> Finished: FAILURE
>
> And here is the output when I leave branch blank...
> Building in workspace /var/lib/jenkins/jobs/HelloWorld/workspace
> > git rev-parse --is-inside-work-tree # timeout=10
> Fetching changes from the remote Git repository
> > git config remote.origin.url file:///var/lib/jenkins/repo/test_repo.git # 
> timeout=10
> Fetching upstream changes from file:///var/lib/jenkins/repo/test_repo.git
> > git --version # timeout=10
> > git -c core.askpass=true fetch --tags --progress 
> file:///var/lib/jenkins/repo/test_repo.git +refs/heads/
> *:refs/remotes/origin/*
> Seen 0 remote branches
> ERROR: Couldn't find any revision to build. Verify the repository and 
> branch configuration for this job.
> Finished: FAILURE
>
> -- 
> 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/911c209e-58d8-4cca-9077-43f00d37402d%40googlegroups.com
>  
> 
> .
> 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/3a1c978c-fca9-40ef-922a-7d5f25e00924%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Trigger Parameterized Builds plugin with Environment Injector Plugin not working

2016-06-03 Thread James Rice
Using the recommendations on the link fixed the problem.  Thank you very 
much!

On Friday, June 3, 2016 at 10:38:55 AM UTC-4, James Rice wrote:

> This is something that has worked for months and has now stopped.
>
> Build A is triggering build B.  The trigger works.
>
> Using the Trigger Parameterized Builds plugin in build A, I set a 
> predefined parameter like:
>
> *MY_PARAMETER=*
>
> Then in build B I use the Environment Injector Plugin as follows:
>
> *MY_ENVIRONMENT_VARIABLE = $MY_PARAMETER*
>
> This doesn't work anymore, if I echo MY_ENVIRONMENT_VARIABLE in my build 
> script it is set to "$MY_PARAMETER" not the value of $MY_PARAMETER.
>
> Would be grateful for any insight.  
>

-- 
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/23c0fac6-c67e-4f16-8597-334d6a612882%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

2016-06-03 Thread Thomas Zoratto
Hi, 

Did you commit your changes in your repo ? 

> Le 3 juin 2016 à 20:43, Freddy Paxton  a 
> écrit :
> 
> I'm new to Jenkins, Ubuntu and Git so the answer to this is probably 
> something I've missed out!
> 
> What I want to do is set up a Git repository in which 2 Java files are 
> located (HelloWorld.java and HelloWorldErr.java - HelloWorldErr is missing an 
> ; ). This is to test the Jenkins build and test system to see if it can 
> successfully compile the HelloWorld.java file and run it, and also discover 
> the error in HelloWorldErr.java. It's a pretty simple test but I'm having 
> trouble getting it working.
> 
> After finally managing to set up the repository correctly, I now get an error 
> saying:
> ERROR: Couldn't find any revision to build. Verify the repository and branch 
> configuration for this job.
> 
> After scouting the internet for tutorials and/or anyone with similar problems 
> I'm still looking for a solution. Even an explanation of the process would 
> probably help me a lot.
> 
> My repository is located at /var/lib/jenkins/repo/test_repo.git/ and the 2 
> Java files are in there. I left the branch specifier as */master as I do not 
> know what this does.
> 
> In my Execute shell command I have:
> 
> javac HelloWorld.java
> java HelloWorld
> Obviously this means that it is not looking at HelloWorldErr.java but for now 
> I just want the build to run successfully.
> 
> Sorry if I haven't explained myself very well. Once I get this working I am 
> also planning to test running files through GitHub but I do not want to start 
> on that before I can get the local Git working correctly.
> 
> Thanks in advance! Any insight on this is going to really help me with my 
> project.
> 
> If it helps here is the console output with branch set to */master...
> Building in workspace /var/lib/jenkins/jobs/HelloWorld/workspace
> > git rev-parse --is-inside-work-tree # timeout=10
> Fetching changes from the remote Git repository
> > git config remote.origin.url file:///var/lib/jenkins/repo/test_repo.git 
> >  # timeout=10
> Fetching upstream changes from file:///var/lib/jenkins/repo/test_repo.git 
> 
> > git --version # timeout=10
> > git -c core.askpass=true fetch --tags --progress 
> > file:///var/lib/jenkins/repo/test_repo.git 
> >  
> > +refs/heads/:refs/remotes/origin/
> > git rev-parse refs/remotes/origin/master^
> 
> {commit} # timeout=10
> > git rev-parse refs/remotes/origin/origin/master^{commit}
> # timeout=10
> > git rev-parse origin/master^
> 
> {commit}
> # timeout=10
> ERROR: Couldn't find any revision to build. Verify the repository and branch 
> configuration for this job.
> Finished: FAILURE
> 
> And here is the output when I leave branch blank...
> Building in workspace /var/lib/jenkins/jobs/HelloWorld/workspace
> > git rev-parse --is-inside-work-tree # timeout=10
> Fetching changes from the remote Git repository
> > git config remote.origin.url file:///var/lib/jenkins/repo/test_repo.git 
> >  # timeout=10
> Fetching upstream changes from file:///var/lib/jenkins/repo/test_repo.git 
> 
> > git --version # timeout=10
> > git -c core.askpass=true fetch --tags --progress 
> > file:///var/lib/jenkins/repo/test_repo.git 
> >  
> > +refs/heads/:refs/remotes/origin/
> Seen 0 remote branches
> ERROR: Couldn't find any revision to build. Verify the repository and branch 
> configuration for this job.
> Finished: FAILURE
> 
> 
> -- 
> 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/911c209e-58d8-4cca-9077-43f00d37402d%40googlegroups.com
>  
> .
> 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/28731CD0-DB4F-458E-B9BA-F7197E58CD58%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Editable Email Notification

2016-06-03 Thread Slide
E-mail Notification is for the Mailer plugin configuration.

On Fri, Jun 3, 2016 at 10:50 AM  wrote:

> Finaly found the problem, the password into the Extended E-mail
> Notification plugin was not set properly, but was into the E-mail
> Notification so the test email was going out but not the one from
> template. The error about not found was due to env var and reboot Jenkins.
>
> Why is Extended need another SMTP config and the why does the config is
> hidden into advanced...
>
> I updated while changing machine, so the email password hash and enc key
> were regen.
>
> Sorry for the noise. But I would still love to known if anybody have a
> good way to use 2 template without env injection and the
> -Dhudson.model.ParametersAction.safeParameters= into jenkins config.
>
> --
> 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/60d98781-464f-4929-a562-73dcaf313d72%40googlegroups.com
> 
> .
> 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/CAPiUgVebdax4YT1u-nPSpe56BGNqRZWRuf4Qs8Ja_ZFzD%2BK8iA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

2016-06-03 Thread Freddy Paxton


I'm new to Jenkins, Ubuntu and Git so the answer to this is probably 
something I've missed out!

What I want to do is set up a Git repository in which 2 Java files are 
located (HelloWorld.java and HelloWorldErr.java - HelloWorldErr is missing 
an ; ). This is to test the Jenkins build and test system to see if it can 
successfully compile the HelloWorld.java file and run it, and also discover 
the error in HelloWorldErr.java. It's a pretty simple test but I'm having 
trouble getting it working.

After finally managing to set up the repository correctly, I now get an 
error saying:
ERROR: Couldn't find any revision to build. Verify the repository and 
branch configuration for this job.

After scouting the internet for tutorials and/or anyone with similar 
problems I'm still looking for a solution. Even an explanation of the 
process would probably help me a lot.

My repository is located at /var/lib/jenkins/repo/test_repo.git/ and the 2 
Java files are in there. I left the branch specifier as */master as I do 
not know what this does.

In my Execute shell command I have:

javac HelloWorld.java
java HelloWorld
Obviously this means that it is not looking at HelloWorldErr.java but for 
now I just want the build to run successfully.

Sorry if I haven't explained myself very well. Once I get this working I am 
also planning to test running files through GitHub but I do not want to 
start on that before I can get the local Git working correctly.

Thanks in advance! Any insight on this is going to really help me with my 
project.

If it helps here is the console output with branch set to */master...
Building in workspace /var/lib/jenkins/jobs/HelloWorld/workspace
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url file:///var/lib/jenkins/repo/test_repo.git # 
timeout=10
Fetching upstream changes from file:///var/lib/jenkins/repo/test_repo.git
> git --version # timeout=10
> git -c core.askpass=true fetch --tags --progress 
file:///var/lib/jenkins/repo/test_repo.git +refs/heads/
*:refs/remotes/origin/*
> git rev-parse refs/remotes/origin/master^
{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit}

# timeout=10
> git rev-parse origin/master^
{commit}

# timeout=10
ERROR: Couldn't find any revision to build. Verify the repository and 
branch configuration for this job.
Finished: FAILURE

And here is the output when I leave branch blank...
Building in workspace /var/lib/jenkins/jobs/HelloWorld/workspace
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url file:///var/lib/jenkins/repo/test_repo.git # 
timeout=10
Fetching upstream changes from file:///var/lib/jenkins/repo/test_repo.git
> git --version # timeout=10
> git -c core.askpass=true fetch --tags --progress 
file:///var/lib/jenkins/repo/test_repo.git +refs/heads/
*:refs/remotes/origin/*
Seen 0 remote branches
ERROR: Couldn't find any revision to build. Verify the repository and 
branch configuration for this job.
Finished: FAILURE

-- 
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/911c209e-58d8-4cca-9077-43f00d37402d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Editable Email Notification

2016-06-03 Thread jerome
Finaly found the problem, the password into the Extended E-mail 
Notification plugin was not set properly, but was into the E-mail 
Notification so the test email was going out but not the one from template. 
The error about not found was due to env var and reboot Jenkins.

Why is Extended need another SMTP config and the why does the config is 
hidden into advanced...

I updated while changing machine, so the email password hash and enc key 
were regen.

Sorry for the noise. But I would still love to known if anybody have a good 
way to use 2 template without env injection and the 
-Dhudson.model.ParametersAction.safeParameters= into jenkins config.

-- 
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/60d98781-464f-4929-a562-73dcaf313d72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Editable Email Notification

2016-06-03 Thread jerome
Sorry for the polution, but just realized my notepad++ didn't reload the 
log after Jenkins wrote to it. I have a new errors, but I checked the file 
path and the file are there?!? maybe it doesn't support multiple file 
anymore?!!

SEVERE: Groovy Template file 
[CieTemplate1.template, EmailTemplate2.template] was not found in 
$JENKINS_HOME/email-templates.
Jun 03, 2016 12:34:55 PM jenkins.model.PeepholePermalink updateCache

$JENKINS_HOME is c:\Jenkins
and the file are indeed into $JENKINS_HOME/email-templates
c:\Jenkins\email-templates\CieTemplate1.template, 
c:\Jenkins\email-templates\EmailTemplate2.template

humm permission are right and can be R and even write for the user jenkins 
service run under

-- 
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/9272dcd7-08fa-4fb0-8a54-fe1ce1cead2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Editable Email Notification

2016-06-03 Thread jerome
Hi,
After moving to Jenkins 2.7 (from 1.5.x) I got everything running except 
the *editable email notification* the way we used to do it. We were using 2 
template file per project, 1 that define a few env variables first then the 
second one to generate the email. So we have different project that may 
choose a different cie template (1st one). So we generate 1 file per cie 
with minimum variables definitions (see below). I have the following email 
plugin installed:

Email Extension Template Plugin 

Email Extension Plugin 



My email project default content is set as follow:
${SCRIPT, template="CieTemplate1.template"}
${SCRIPT, template="EmailTemplate2.template"}

At first I had problem with security and the environment injection from 
template files. 

*Jun 03, 2016 10:25:17 AM hudson.model.ParametersAction filter*
*WARNING: Skipped parameter `EMAIL_CIE_LOGO` as it is undefined on `CAD`. 
Set `-Dhudson.model.ParametersAction.keepUndefinedParameters`=true to allow 
undefined parameters to be injected as environment variables or 
`-Dhudson.model.ParametersAction.safeParameters=[comma-separated list]` to 
whitelist specific parameter names, even though it represents a security 
breach*

So I added the following options into jenkins.xml (I'm on Windows):
-Dhudson.model.ParametersAction.safeParameters=EMAIL_CIE_COLOR,EMAIL_CIE_LOGO

But now it doesn't complain (nothing into the jenkins.err.log), but the 
email is not received (the test email go through and get received into 
Jenkins config, so the smtp settings is right).

Anybody have an idea of what is wrong? Or is there a better way to do this 
now?

*CieTemplate1.template*


<%
import hudson.model.*

def style_cie_color = "#77278B"
def cie_logo = "https://www.mywebsite.com/images/Logo.png;

def pa = new ParametersAction(
[
new StringParameterValue("EMAIL_CIE_COLOR", style_cie_color),
new StringParameterValue("EMAIL_CIE_LOGO", cie_logo)
])

def build = Thread.currentThread().executable
build.addAction(pa)

%>

*EmailTemplate2.template*

<%
import  hudson.Util
import  hudson.Functions
import  hudson.model.Result;
import  hudson.matrix.MatrixBuild
import  hudson.matrix.MatrixRun
import  hudson.matrix.MatrixConfiguration
import  hudson.matrix.MatrixProject
import  hudson.matrix.Combination
%>


<%
def env = build.environment

style_cie_color = env.EMAIL_CIE_COLOR
cie_logo = env.EMAIL_CIE_LOGO
%>


<%
style_default = "font-family:Verdana,Helvetica,sans serif; font-size:11px; 
color:black;"
style_header = "color: black;"
style_bg1 = "color:white; background-color:" + style_cie_color + "; 
font-size:120%;"
style_bg2 = "color:#66; background-color:white; font-size:110%; 
margin-left: 2px; margin-right: 2px;"
style_bg3 = "color: black; background-color:white;"
style_tr = "border: 1px solid " + style_cie_color + ";"
style_failure = "color: red;"
style_success = "color: green;"
style_unstable = "color: yellow;"
style_console = "font-family:Courier New;"
result_img = "https://www.mywebsite.com/images/;

if(build.result == Result.SUCCESS) 
{
result_img += "success.small.png"
build_style = style_success;
} 
else if (build.result == Result.FAILURE) 
{
result_img += "error.small.png"
build_style = style_failure;
} 
else 
{
result_img += "warning.small.png"
build_style = style_unstable;
}
%>










BUILD 
${build.result}


Build URL
${rooturl}${build.url}


Project:
${project.name}

Date of build:
${it.timestampString}


Build duration:
${build.durationString}







-- 
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/619526a2-6bfd-47ad-9f4f-568f7ba0c460%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins Health Check URL

2016-06-03 Thread Michael Chletsos
I have an authenticated Jenkins setup that I need to monitor that the 
service is up - that is all - I want to know if there is an endpoint that 
does not require authentication and returns a 2xx or 3xx response? A 4xx 
response will not work.

-- 
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/36f868a5-2502-4ecc-a6db-8d65cd9f5d00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to postpone job execution until after another job has finished

2016-06-03 Thread RDR
Thanks for the info. I'll check that out  :-)

On 3 June 2016 at 15:57,  wrote:

> Try
> https://wiki.jenkins-ci.org/display/JENKINS/Throttle+Concurrent+Builds+Plugin
> .
>
>
>
> Note: there are a number of other plugins that do a similar thing, but as
> far as I can tell, the Throttle Concurrent Builds Plugin is the one that is
> being maintaind, and is the preferred one to use.
>
>
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *RDR
> *Sent:* 03 June 2016 15:55
> *To:* jenkinsci-users
> *Subject:* How to postpone job execution until after another job has
> finished
>
>
>
> Hi,
>
>
>
> I've got an odd problem setting up a Jenkins server and i was just
> wondering if anybody could suggest a solution. I've set up 3 jobs on my
> server:
>
>
>
> 1. Build-Application - a typical Jenkins job that downloads code from SCM
> builds it and run the Unit tests. The generated artifacts are archived.
> Then...
>
> 2. Deploy-Application - take the archived artifacts, Ssh them to a Linux
> server and run an installation script. Then...
>
> 3. Functional-Tests - Run the functional tests.
>
>
>
> Since step 3 has a very low load on the server but can take a couple of
> hours, I've set up a second executor on the Jenkins server. This way fresh
> commit in the SCM will be pulled and tested quickly.
>
>
>
>
>
> The trouble is that the Deploy-Application job can be triggered by the
> second executor while the first one is running Functional-Tests. This
> causes the functional tests to failing because we've pulled down the
> environment while they were running.
>
>
>
> Is there a way of blocking the Deploy-Application so that it can't run
> while Functional-Tests are in progress?
>
>
>
> Cheers!
>
> --
>
>
>
> --
>
> This e-mail and any attachments may contain confidential, copyright and or
> privileged material, and are for the use of the intended addressee only. If
> you are not the intended addressee or an authorised recipient of the
> addressee please notify us of receipt by returning the e-mail and do not
> use, copy, retain, distribute or disclose the information in or attached to
> the e-mail.
> Any opinions expressed within this e-mail are those of the individual and
> not necessarily of Diamond Light Source Ltd.
> Diamond Light Source Ltd. cannot guarantee that this e-mail or any
> attachments are free from viruses and we cannot accept liability for any
> damage which you may sustain as a result of software viruses which may be
> transmitted in or with the message.
> Diamond Light Source Limited (company no. 4375679). Registered in England
> and Wales with its registered office at Diamond House, Harwell Science and
> Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
>
>
> --
> 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/6836E1DC2DDC174C9D64B7860E5AF5FCACCABFCA%40exchmbx01
> 
> .
> 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/CAB9wPTSoW2TbdyT-tsoi2Ca988s7OaRAuVK8Hp2_d2mhfncGRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Dynamically get Global Choice Parameter in build parameter regarding selection of first param

2016-06-03 Thread Annie Costa
Hi,

I have several "Global Choice Parameter" define on my Jenkins.
One containing a liste of "domaines"
and a lot concerning a liste of "tasks" per "domaine".

Example:
1srt global choice named "Domaines" containing : "Animals", "Vegetables", 
"Humains"
2nd named "Animals" containing "Cats", "Dogs"
3rd named "Vegetables" containing "Flowers", "Tree"
4th named "Humains" containing "Men", "Women", "Babies"


My goal is in my job, having 2 builds parmaters
The first one will display the list of the global choice parameter named 
"Domaines"
The 2nd one will display the list of the global choice parameter which name 
will be the selection of the 1st parameter.


How could it be done?

Thanks
Annie

-- 
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/bccda2f5-a31f-4c5d-a40b-ec95b21a5094%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Does the Jenkins Manage Plugins page display a warning if a plugin has a missing dependency?

2016-06-03 Thread Robert Kruck
Does the Jenkins "Manage Plugins" page display a warning, if a Jenkins 
Plugin has a missing dependency?

Example: If *Jenkins Plugin "A"* requires *Jenkins Plugin "B"* as a 
dependency, and I installed Jenkins Plugin "A" * only*, would a warning 
about the missing *Jenkins Plugin "B"* appear in the Jenkins "Manage 
Plugins" page?

I have researched this issue for some time on the internet - at present it 
appears that some Jenkins plugins have this sort of automated dependency 
checking, but others don't.

Please advise; I was thinking of making a spreadsheet to show the 
dependencies of the Jenkins Plugins we currently use - but if Jenkins has 
automated dependency checking for all its Plugins, such a spreadsheet would 
obviously be a waste of time. 

-- 
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/d8b2f1ad-0cfc-4197-9876-2c534b46807b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Format of 'included regions' with multiple SVN modules

2016-06-03 Thread 'Adam Porteous' via Jenkins Users
Any ideas?

On Monday, 23 May 2016 09:06:38 UTC+1, Adam Porteous wrote:
>
> I have a Jenkins job which pulls in two separate SVN repositories e.g.
>
>- http://svn/project1/trunk with local module checkout directory .
>- http://svn/project2/trunk with local module checkout directory 
>./opensource
>
> I'd like to be able to configure the job so that it only runs when there 
> are changes in the *./opensource *directory i.e. changes in 
> *http://svn/project2/trunk 
> *.
>
> To do this I'm trying to use the 'included regions' section of the 
> configuration but I don't know how to reference a specific repository.
>
> Examples given would suggest I used something like */trunk/.** but this 
> doesn't allow for choosing a particular repository.
>
> Any ideas?
>

-- 
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/ff311fa2-a324-4217-8ab9-85134485c7fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: How to postpone job execution until after another job has finished

2016-06-03 Thread Matthew.Webber
Try 
https://wiki.jenkins-ci.org/display/JENKINS/Throttle+Concurrent+Builds+Plugin .

Note: there are a number of other plugins that do a similar thing, but as far 
as I can tell, the Throttle Concurrent Builds Plugin is the one that is being 
maintaind, and is the preferred one to use.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of RDR
Sent: 03 June 2016 15:55
To: jenkinsci-users
Subject: How to postpone job execution until after another job has finished

Hi,

I've got an odd problem setting up a Jenkins server and i was just wondering if 
anybody could suggest a solution. I've set up 3 jobs on my server:

1. Build-Application - a typical Jenkins job that downloads code from SCM 
builds it and run the Unit tests. The generated artifacts are archived. Then...
2. Deploy-Application - take the archived artifacts, Ssh them to a Linux server 
and run an installation script. Then...
3. Functional-Tests - Run the functional tests.

Since step 3 has a very low load on the server but can take a couple of hours, 
I've set up a second executor on the Jenkins server. This way fresh commit in 
the SCM will be pulled and tested quickly.


The trouble is that the Deploy-Application job can be triggered by the second 
executor while the first one is running Functional-Tests. This causes the 
functional tests to failing because we've pulled down the environment while 
they were running.

Is there a way of blocking the Deploy-Application so that it can't run while 
Functional-Tests are in progress?

Cheers!
--

-- 
This e-mail and any attachments may contain confidential, copyright and or 
privileged material, and are for the use of the intended addressee only. If you 
are not the intended addressee or an authorised recipient of the addressee 
please notify us of receipt by returning the e-mail and do not use, copy, 
retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not 
necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments 
are free from viruses and we cannot accept liability for any damage which you 
may sustain as a result of software viruses which may be transmitted in or with 
the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and 
Wales with its registered office at Diamond House, Harwell Science and 
Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

-- 
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/6836E1DC2DDC174C9D64B7860E5AF5FCACCABFCA%40exchmbx01.
For more options, visit https://groups.google.com/d/optout.


Re: pack.sh: line 81: cmake: command not found

2016-06-03 Thread Victor Martinez
Can you confirm whether cmake is in the path? 

echo $PATH
which cmake
./pack.sh

Cheers

On Friday, 3 June 2016 11:41:53 UTC+2, Kristian X wrote:
>
> Hey, 
>
> I have a question: In jenkins, I start a shell script, which in one 
> line uses cmake to start. When running this script in Jenkins, then I 
> get this error message: 
>
> > ./pack.sh: line 81: cmake: command not found 
>
> But I compiled and installed cmake on that system. When I start "cmake 
> --version" from command line, then I get this 
>
> > cmake version 3.5.2 
> > 
> > CMake suite maintained and supported by Kitware (kitware.com/cmake). 
>
> When I run "./pack.sh" from command line, then there is no such error, 
> that Cmake couldn't be found. 
>
> On the other side, when I remove the cmake version I compiled and 
> installed ('make install') myself and install the repo version ('yum 
> install cmake'), then my 'pack.sh' script finds cmake. 
>
> What's the problem? 
>

-- 
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/0c675089-6c60-4671-9b27-d89605b27b31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to postpone job execution until after another job has finished

2016-06-03 Thread RDR
Hi,

I've got an odd problem setting up a Jenkins server and i was just
wondering if anybody could suggest a solution. I've set up 3 jobs on my
server:

1. Build-Application - a typical Jenkins job that downloads code from SCM
builds it and run the Unit tests. The generated artifacts are archived.
Then...
2. Deploy-Application - take the archived artifacts, Ssh them to a Linux
server and run an installation script. Then...
3. Functional-Tests - Run the functional tests.

Since step 3 has a very low load on the server but can take a couple of
hours, I've set up a second executor on the Jenkins server. This way fresh
commit in the SCM will be pulled and tested quickly.


The trouble is that the Deploy-Application job can be triggered by the
second executor while the first one is running Functional-Tests. This
causes the functional tests to failing because we've pulled down the
environment while they were running.

Is there a way of blocking the Deploy-Application so that it can't run
while Functional-Tests are in progress?

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/CAB9wPTQpT_efe19FQdTU_LxxAzFC%3D6U-GvsYqRdKLfasxE08Ag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: Trigger Parameterized Builds plugin with Environment Injector Plugin not working

2016-06-03 Thread Matthew.Webber
When reporting problems or asking questions, it’s often a good idea to let 
folks know what release you are on. Think about what you would need to know if 
someone asked this question of you.

So, did you upgrade to Jenkins 2.3?
If not, what changed?
If so, did you read 
https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2016-05-11
 and 
https://wiki.jenkins-ci.org/display/JENKINS/Plugins+affected+by+fix+for+SECURITY-170?


From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of James Rice
Sent: 03 June 2016 15:39
To: Jenkins Users
Subject: Trigger Parameterized Builds plugin with Environment Injector Plugin 
not working

This is something that has worked for months and has now stopped.

Build A is triggering build B.  The trigger works.

Using the Trigger Parameterized Builds plugin in build A, I set a predefined 
parameter like:

MY_PARAMETER=

Then in build B I use the Environment Injector Plugin as follows:

MY_ENVIRONMENT_VARIABLE = $MY_PARAMETER

This doesn't work anymore, if I echo MY_ENVIRONMENT_VARIABLE in my build script 
it is set to "$MY_PARAMETER" not the value of $MY_PARAMETER.

Would be grateful for any insight.

-- 
This e-mail and any attachments may contain confidential, copyright and or 
privileged material, and are for the use of the intended addressee only. If you 
are not the intended addressee or an authorised recipient of the addressee 
please notify us of receipt by returning the e-mail and do not use, copy, 
retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not 
necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments 
are free from viruses and we cannot accept liability for any damage which you 
may sustain as a result of software viruses which may be transmitted in or with 
the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and 
Wales with its registered office at Diamond House, Harwell Science and 
Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

-- 
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/6836E1DC2DDC174C9D64B7860E5AF5FCACCABFAC%40exchmbx01.
For more options, visit https://groups.google.com/d/optout.


Trigger Parameterized Builds plugin with Environment Injector Plugin not working

2016-06-03 Thread James Rice
This is something that has worked for months and has now stopped.

Build A is triggering build B.  The trigger works.

Using the Trigger Parameterized Builds plugin in build A, I set a 
predefined parameter like:

*MY_PARAMETER=*

Then in build B I use the Environment Injector Plugin as follows:

*MY_ENVIRONMENT_VARIABLE = $MY_PARAMETER*

This doesn't work anymore, if I echo MY_ENVIRONMENT_VARIABLE in my build 
script it is set to "$MY_PARAMETER" not the value of $MY_PARAMETER.

Would be grateful for any insight.  

-- 
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/f298c617-918e-44c3-ab0a-288fa32ae357%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins plugin for Restricting who can push to a branch in Github

2016-06-03 Thread Björn Stabel
How about building and testing a merged version before the changes hit 
master?


Mit freundlichen Grüßen

Björn Stabel

data experts gmbh
Niederlassung Berlin
Allee der Kosmonauten 33g
12681 Berlin

Telefon: +49 (0)30 54708 282
E-Mail: bjoern.sta...@data-experts.de

http://www.data-experts.de
Sitz der Gesellschaft: Neubrandenburg
HRB-2211 Amtsgericht Neubrandenburg
Geschäftsführer: Dietmar Schielke, Stefan Jaster

On 03/06/16 11:06, Mattias Nilsson wrote:

Hi,
what we would like to achieve is basically that when our jenkins 
radiator turns red (we are using the raditor plugin), to lock our 
master branch in github. Then as soon as someone claims a failed build 
they should get push rights to the master branch.
Once the radiator is green again everyone should get push rights to 
master again. Is there a plugin that does this, or at least can help 
us achieve this?


Best regards,
Mattias
--
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/c2723373-454d-4c64-8ed4-a4c41a83544b%40googlegroups.com 
.

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/57517EFE.907%40data-experts.de.
For more options, visit https://groups.google.com/d/optout.


pack.sh: line 81: cmake: command not found

2016-06-03 Thread Kristian
Hey,

I have a question: In jenkins, I start a shell script, which in one
line uses cmake to start. When running this script in Jenkins, then I
get this error message:

> ./pack.sh: line 81: cmake: command not found

But I compiled and installed cmake on that system. When I start "cmake
--version" from command line, then I get this

> cmake version 3.5.2
>
> CMake suite maintained and supported by Kitware (kitware.com/cmake).

When I run "./pack.sh" from command line, then there is no such error,
that Cmake couldn't be found.

On the other side, when I remove the cmake version I compiled and
installed ('make install') myself and install the repo version ('yum
install cmake'), then my 'pack.sh' script finds cmake.

What's the problem?

-- 
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/CAO5HUhPjyW9F7Utj4JQ9gua%3DaLn0UNCVDUDZ-6F4a7q9SME-nA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins plugin for Restricting who can push to a branch in Github

2016-06-03 Thread Mattias Nilsson
Hi,
what we would like to achieve is basically that when our jenkins radiator 
turns red (we are using the raditor plugin), to lock our master branch in 
github. Then as soon as someone claims a failed build they should get push 
rights to the master branch.
Once the radiator is green again everyone should get push rights to master 
again. Is there a plugin that does this, or at least can help us achieve 
this?

Best regards,
Mattias

-- 
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/c2723373-454d-4c64-8ed4-a4c41a83544b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline: Building downstream dependencies

2016-06-03 Thread Sverre Moe
My first predicament:
In Multi-configuration build, one single executor can contain multiple 
parent build, but that single executor can only contain one 
configuration/axis/slave build at a time.

Using Pipeline I am not sure how to get it to work like this.
After my Build stage I try to schedule build of all the dependencies and it 
will wait until they finish. But the project already holds the executor.

ProjectA schedules ProjectB. ProjectA waits for ProjectB, ProjectB cannot 
start because ProjectA holds the executor on the same slave node. So they 
are both locked...
build '../ProjectB/master'

> Still waiting to schedule task
> Waiting for next available executor on master-sles11-x86_64
>

How can I do the same in Pipeline as I do with Multi-configuration parent. 
The parent node is is selected from the list of nodes the project is 
building on. I could probably solve this by making the Jenkins master as 
the parent node while building dependencies. Triggering other projects to 
build does not necessary need to be done on one the build nodes.

It would not make a good approach for me to increase the number of 
executors on the slave nodes. Since the build is removing/installing rpm 
packages in the build stage it could cause havoc having two builds doing 
this interchangeably. Each build must have the slave node system to itself 
while building.


My second predicament:
Each of my projects has an RPM spec file. Its BuildRequires dependencies 
are declared in this file. When building I acquire a list of all the 
upstream build dependencies which is parsed from this file. This is used to 
install all needed libraries before building. However I also need to build 
all the downstream dependencies, all the other projects that contain this 
project in their RPM spec file.

Using pipeline it is as easy to just call
def buildResult = build dependency+"/"+BRANCH_NAME
However I am not sure how to lookup these downstream dependencies. I would 
need to check out each and every project within Jenkins, parse their spec 
file and compute the dependencies. That is the only approach I could see 
before me, but perhaps not the best approach. It seems like a heavy 
operation to perform for each build to checkout 50+ projects.

-- 
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/c5e83459-78be-411f-a67b-cb4908823185%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error during Sonar runner execution in Jenkins

2016-06-03 Thread SPTeam SmartData









Hi 

Anyone used sonar-runner in Android studio , when I run command "gradle 
sonarRunner" through terminal it give error as below :
"Can not invoke method public java.lang.Class 
org.sonar.plugins.surefire.SurefireSensor.dependsUponCoverageSensors()"

My Build.gradle file as below:
apply plugin: 'sonar-runner'

sonarRunner {
sonarProperties {
// can be also set on command line like -Dsonar.analysis.mode=incremental
property "sonar.host.url", "http://myserver.com;
property 'sonar.sourceEncoding', 'UTF-8'
property 'sonar.language', 'java'
property 'sonar.projectKey', 'com.projectKey'
//need to replace with your project package name
property 'sonar.projectName', 'projectName' // need to replace with your 
project name
property 'sonar.projectVersion', '1.0'
property 'sonar.sources', 'src/main/java'
}
}

If any one have any solution then please help me I am stuck here.

My Android studio version- 1.3.2
SonarQube Runner 2.3
SonarQube Server 5.3













On Tuesday, December 30, 2014 at 1:25:43 PM UTC+5:30, Neeraj Lad wrote:
>
> Hi All,
>
> I have two questions: 
>
> 1: How to setup -e debugging parameter into Jenkins to see debugging log 
> as mentioned at end of the error
>  
> 2: I am struggling to integrate Sonar into Jenkins. I am getting following 
> error which does not say much details
>
> I have attached Jenkins configuration screenshot for your reference. 
>
> *Note: Same project is running if i run in Sonar server but when it comes 
> to jenkins integration it throw error. *  
>
> Error Details:
>
> Started by user anonymous 
> Building in workspace C:\Users\user\.jenkins\workspace\Try1
>  > git.exe rev-parse --is-inside-work-tree # timeout=10
> Fetching changes from the remote Git repository
>  > git.exe config remote.origin.url https://github.com/imentor/qa.git # 
> timeout=10
> Fetching upstream changes from https://github.com/imentor/qa.git
>  > git.exe --version # timeout=10
> using .gitcredentials to set credentials
>  > git.exe config --local credential.helper store --file=\"F:\Laptop 
> Backup\OpenSource\apache-tomcat-7.0.40\temp\git5891258861841529089.credentials\"
>  # timeout=10
>  > git.exe -c core.askpass=true fetch --tags --progress 
> https://github.com/imentor/qa.git +refs/heads/*:refs/remotes/origin/*
>  > git.exe config --local --remove-section credential # timeout=10
>  > git.exe rev-parse "refs/remotes/origin/dev^{commit}" # timeout=10
>  > git.exe rev-parse "refs/remotes/origin/origin/dev^{commit}" # timeout=10
> Checking out Revision 10fed612086c1696c7beecc52feac924cb6fcf0d 
> (refs/remotes/origin/dev)
>  > git.exe config core.sparsecheckout # timeout=10
>  > git.exe checkout -f 10fed612086c1696c7beecc52feac924cb6fcf0d
>  > git.exe rev-list 10fed612086c1696c7beecc52feac924cb6fcf0d # timeout=10
> [Try1] $ "F:\Laptop 
> Backup\OpenSource\sonarInstallation\sonar-runner-2.4\bin\sonar-runner.bat" 
> SonarRunner_01 -Dsonar.jdbc.driver=com.mysql.jdbc.Driver 
> "-Dsonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?autoReconnect=true=true=utf8"
>    -Dsonar.host.url=http://localhost:9000 
> -Dsonar.projectBaseDir=C:\Users\user\.jenkins\workspace\Try1 
> "-Dproject.settings=F:/Laptop 
> Backup/OpenSource/sonarInstallation/sonar-runner-2.4/sonar-project.properties"
> F:/Laptop Backup/OpenSource/sonarInstallation/sonar-runner-2.4
> SonarQube Runner 2.4
> Java 1.8.0_25 Oracle Corporation (32-bit)
> Windows 7 6.1 x86
> INFO: Runner configuration file: F:\Laptop 
> Backup\OpenSource\sonarInstallation\sonar-runner-2.4\conf\sonar-runner.properties
> INFO: Project configuration file: F:\Laptop 
> Backup\OpenSource\sonarInstallation\sonar-runner-2.4\sonar-project.properties
> INFO: SonarQube Server 4.5.1
> 13:10:03.029 INFO  - Load global referentials...
> 13:10:03.287 INFO  - Load global referentials done: 258 ms
> 13:10:03.297 INFO  - User cache: C:\Users\user\.sonar\cache
> 13:10:03.307 INFO  - Install plugins
> 13:10:03.359 INFO  - Install JDBC driver
> 13:10:03.376 INFO  - Create JDBC datasource for 
> jdbc:mysql://localhost:3306/sonar?autoReconnect=true=true=utf8
> 13:10:04.688 INFO  - Initializing Hibernate
> INFO: 
> INFO: EXECUTION FAILURE
> INFO: 
> Total time: 4.091s
> Final Memory: 7M/19M
> INFO: 
> ERROR: Error during Sonar runner execution
> ERROR: Unable to execute Sonar
> ERROR: Caused by: Task SonarRunner_01 does not exist
> ERROR: 
> ERROR: To see the full stack trace of the errors, re-run SonarQube Runner 
> with the -e switch.
> ERROR: Re-run SonarQube Runner using the -X switch to enable full debug 
> logging.
> Build step 'Invoke Standalone Sonar Analysis' marked build as failure
> Finished: FAILURE
>
>
>
> Thanks in advance,
>
> Neeraj
>
>

-- 
You received this message because you are subscribed