How to schedule a child Free Style job programmatically from a parent Job in Jenkins Plugin Development?

2015-03-31 Thread vinodhini . vijay
 


 

 
  Hello All,


I am working on Jenkins Plugin Development. I have a special Job type, that 
creates Free Style Projects on saving of the Project.

e.g: Jenkins > New Item/New Job > Enter Name (say "Special Project") and 
click "Build a Special Project" radio button > Click Save. On Clicking 
Save, the Free Style Projects (child Projects) would be created using the 
below code:

FreeStyleProject childProject = 
Jenkins.getInstance().createProject(FreeStyleProject.class,"newName");

FreeStyleProject childProject1 = 
Jenkins.getInstance().createProject(FreeStyleProject.class,"newName1");

I would like to trigger these childProject, childProject1 jobs when my 
"Special Project" is given a build (say by timer or by clicking "Build Now")

I tried the below code , but I get exception.

import java.io.File;
import java.io.IOException;
import java.util.Calendar;
import java.util.List;
import hudson.model.Action;
import hudson.model.Build;
import hudson.model.BuildListener;
import hudson.model.Result;
import hudson.model.AbstractBuild;
import hudson.model.Cause;
import hudson.model.FreeStyleProject;


public class SpecialBuild extends Build {


public SpecialBuild(SpecialProject project) throws IOException {
super(project); 
}


public SpecialBuild(SpecialProject job, Calendar timestamp) {
super(job, timestamp);
}

public SpecialBuild(SpecialProject project, File buildDir)
throws IOException {
super(project, buildDir);
}


@Override
public void run() {
execute(new ChildExecution(this));

//  if I use the below code : Executors are dead.
//Exception in thread "Executor #1 for master" java.lang.NullPointerException
//  at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:1089)
//  at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:152)
//  at hudson.model.Job.isLogUpdated(Job.java:293)
//  at 
hudson.model.AbstractProject.getCauseOfBlockage(AbstractProject.java:1285)
//  at hudson.model.AbstractProject.isBuildBlocked(AbstractProject.java:1222)
//  at hudson.model.Queue.isBuildBlocked(Queue.java:1021)
//  at hudson.model.Queue.maintain(Queue.java:1080)
//  at hudson.model.Queue.pop(Queue.java:935)
//  at hudson.model.Executor.grabJob(Executor.java:297)
//  at hudson.model.Executor.run(Executor.java:211)
// 
//  execute(new RunExecution(){
//  
//  @Override
//  public Result run(BuildListener listener) throws Exception,
//  hudson.model.Run.RunnerAbortedException {
//  System.out.println("Special main running");
//  if(project != null){
//  List kids = project.getChildren();
//  for(FreeStyleProjecteachKid : kids){
//  eachKid.scheduleBuild2(0);
//  }
//  }
//  
//  return Result.SUCCESS;
//  }
//
//  @Override
//  public void post(BuildListener listener) throws Exception {
//  // do nothing
//
//  }
//
//  @Override
//  public void cleanUp(BuildListener listener) throws Exception {
//  // do nothing
//
//  }
//  });

}

private class ChildExecution extends BuildExecution {

private AbstractBuild build;

public ChildExecution() {
super();
}

public ChildExecution(SpecialBuild build){
this.build= (AbstractBuild)build;
}

@Override
 public Result run(BuildListener listener) throws Exception {
Result result = super.run(listener);
System.out.println("Special main running");
if(project != null){
List kids = project.getChildren();
for(FreeStyleProject eachKid : kids){
eachKid.scheduleBuild2(eachKid.getQuietPeriod(),new Cause(){
@Override
public String getShortDescription() {
return "Special job execution";
}

},new Action[1]);
}
}


if (isAborted())
return Result.ABORTED;
if (isFailure())
return Result.FAILURE;
if (isUnstable())
return Result.UNSTABLE;
return result;

 }
private boolean isAborted() {
return evaluateResult(Result.FAILURE);
}

private boolean isFailure() {
return evaluateResult(Result.UNSTABLE);
}

private boolean isUnstable() {
return evaluateResult(Result.SUCCESS);
}

private boolean evaluateResult(Result result) {
List children = project.getChildren();
for (FreeStyleProject child : children) {
//  child.getLas
//  Class buildClass = child.getBuildClass();
//if (!ch

Re: jenkins complete official guide on ruby on rails

2015-03-31 Thread Christopher Orr

On 31/03/15 23:08, sreenivas.vakilsea...@gmail.com wrote:

please help me in finding official documentation for ruby on rails.


There are generally no "official" guides for Jenkins.  Most 
documentation comes in the form of the wiki pages for each plugin.


For finding tutorials or walkthroughs, I can recommend Google.

I would recommend (regardless of what type of software you're building) 
first making sure that your build can be run from the command line, then 
re-create that in Jenkins using "execute shell" build steps and the 
relevant plugins (e.g. perhaps RVM or Rake in this case) to enhance things.


Once you have tried some stuff out and have some more specific questions 
about your build setup, that would make it easier to give an answer on 
this mailing list (or IRC etc.).


Regards,
Chris

--
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/551B8DE1.8040403%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


jenkins complete official guide on ruby on rails

2015-03-31 Thread sreenivas . vakilsearch
hi guys,

please help me in finding official documentation for ruby on rails.

-- 
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/90ddd2f0-3632-4b57-a6cd-0bec04702058%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Seeking help for git command line steps when Git Repository is selected Under Source Code Management Section of Jenkins job configure

2015-03-31 Thread Mark Waite
On Tue, Mar 31, 2015 at 4:28 PM, 'sa_nk' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> Thanks Mark,
> Please find the environment details for the jenkins:
> Jenkins ver: Jenkins ver. 1.509.1.1 
> Jenkins GIT client plugin: 1.9.1
> Jenkins GIT plugin: 2.2.1
> Git server plugin: 1.3
>
>
Your Jenkins server version is almost two years older than the most recent
long term support version.  It is the oldest version supported by git
plugin 2.2 and the git client plugin.  I don't have any suggestion to offer
you other than to consider installing a much more recent long term support
version on a separate machine to see if it will resolve your issue.

Mark Waite


> OS: Red Hat Enterprise Linux Server release 6.6 (Santiago)
> git --version -> git version 2.2.0
> Java version (master) -> java version "1.7.0_65"
> Java version (slave where job configured with git plugin running, using
> java 1.8 for other requirements) -> java version "1.8.0_25"
> Credentials plugin: 1.13
>
> master and slave runs on same Linux level.
> The reason we would like to go for command line options because of the
> error posted in my question at the top. It was working fine for long time
> and all of sudden popped up with that error and all of the jobs using the
> git plugin started failing. After couple of jenjkins restart it came back
> to normal. I googled it for the resolution and couldn't find any resolution
> for it. So thought of implementing the alternative procedure as command
> line options for the git plugin.
>
> -Thanks, Sathya.
>
>
> On Tuesday, March 31, 2015 at 10:48:38 AM UTC-7, sa_nk wrote:
>>
>> Hi Team,
>> This is Sathya, I am new to Jenkins. I am not sure if similar to my
>> question was already posted and answered. If it did please direct me to
>> that answer else please see below my request.
>>
>>
>> I am looking for git command line steps that can be accomplished as
>> alternative to the procedure used in Jenkins UI with Git plugin as below:
>>
>>
>> Under Source Code Management Section of Jenkin Job configure UI:
>> 
>>
>>
>> Git Repository: Repository URL (https://github.com/)
>> Credentials (Select credentials from globally defined)
>>
>>
>> Branches to build: Branch Specifier (blank for 'any') (*/Development)
>>
>>
>> Repository broswer: (Auto)
>>
>>
>> Additional Behaviors: Check out to specific local branch - Branch name
>> (Development)
>>
>>
>>
>> In the above all the values are mentioned in the extream right
>> parenthesis. What I am looking for is equivakent git command line steps
>> with options to perform exactly like above so that when ever I experience
>> git plugin issues I can have alternate method of doing it. Couple of times
>> we experienced git plugin issues as below (And end up bouncing the Jenkins
>> and some times even bouncing Jenkins did not resolve):
>>
>>
>> *FATAL: argument type mismatch*
>> *java.lang.IllegalArgumentException: argument type mismatch*
>>
>>
>>
>> Thanks in advance and your help is highly appreciated.
>> -Sathya.
>>
>>
>  --
> 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/46eca92c-97f5-45ab-9a45-e1a030587194%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks!
Mark Waite

-- 
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/CAO49JtEmsqpYR3KCAYFWZNH9w6qdMUnToZqO4%2BzT9oYX%2BZUMzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: TFS commands run very slow in Jenkins

2015-03-31 Thread Keith Marchen


On Tuesday, March 31, 2015 at 10:36:55 PM UTC-5, Keith Marchen wrote:
>
> We use TFS commands to get our source files for builds. But when we run 
> them from Jenkins, they take around 40 seconds to execute. What could be 
> the issue with our TFS configuration on Jenkins that is affecting execution 
> of TFS commands?
>
> Thanks,
> Keith
>

We have tested running the TFS scripts locally on the build server using 
same user and it runs fine.  

-- 
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/232a8c04-c8b4-4f48-ab03-9be7bb55d4eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: TFS commands run very slow in Jenkins

2015-03-31 Thread Richard Bywater
If you run the commands locally on the same box and with the same user that
is running Jenkins, do you get the same behaviour?

Don't know TFS really enough to comment more but perhaps there's an
environment setup issue between when running in Jenkins and when running
elsewhere?

Richard.

On Wed, 1 Apr 2015 at 16:36 Keith Marchen  wrote:

> We use TFS commands to get our source files for builds. But when we run
> them from Jenkins, they take around 40 seconds to execute. What could be
> the issue with our TFS configuration on Jenkins that is affecting execution
> of TFS commands?
>
> Thanks,
> Keith
>
> --
> 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/9cfc2ee0-6fe8-482f-acca-a8a54b4b3a10%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/CAMui944zCSAniwTcuDDy5w9%3DuUVJncaOfn2_z-xioyx1o3S5UQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


"The ghprb trigger for Backend wasn't properly started - helper is null" error in GitHub Pull Request Builder plugin

2015-03-31 Thread Tim Bartley
I have GitHub Request builder plugin (1.17) set up in Jenkins 1.606. It's 
talking to a GitHub Enterprise setup (2.1.4) we have internally.

It's set up to use the web hook trigger to initiate a build against the 
pull request.

I receive the following messages in the Jenkins log when GitHub invokes 
this Web hook:

Apr 01, 2015 1:36:34 PM INFO org.jenkinsci.plugins.ghprb.GhprbRootAction doIndex

Got payload event: pull_request

Apr 01, 2015 1:36:34 PM SEVERE org.jenkinsci.plugins.ghprb.GhprbTrigger 
getRepository

The ghprb trigger for Backend Pull Request Build wasn't properly started - 
helper is null

Apr 01, 2015 1:36:34 PM SEVERE org.jenkinsci.plugins.ghprb.GhprbTrigger 
getRepository

The ghprb trigger for Backend wasn't properly started - helper is null


I suspect a configuration error since I don't see other reports of this 
issue. Any ideas what 'helper is null' might mean? Any other info I can 
provide?

Thanks,

Tim

-- 
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/8a86ec40-2c84-4263-b3e4-c0f0820398ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


TFS commands run very slow in Jenkins

2015-03-31 Thread Keith Marchen
We use TFS commands to get our source files for builds. But when we run 
them from Jenkins, they take around 40 seconds to execute. What could be 
the issue with our TFS configuration on Jenkins that is affecting execution 
of TFS commands?

Thanks,
Keith

-- 
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/9cfc2ee0-6fe8-482f-acca-a8a54b4b3a10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Email-Ext plugin] don't see triggers

2015-03-31 Thread Murthy Gandikota


Found this script in the plugins folder. The entire script is not loaded. 
Tried different browsers. Same result.:(
function hideElement(elmID)
{
 var elm = document.getElementById(elmID);
 elm.style.display = "none";
}

function showElement(elmID)
{
 var elm = document.getElementById(elmID);
 elm.style.display = "";
}

function swapEdit(swapName)
{
 var editID = swapName+"edit";
 var hideID = swapName+"hide";
 var elmID = swapName+"elm";
 var elm = document.getElementById(elmID);
 
 
 if(elm.style.display == "none")
 {
  showElement(hideID);
  showElement(elmID);
  hideElement(editID);
 }
 else
 {
  hideElement(hideID);
  hideElement(elmID);
  showElement(editID);
 }
}

function switchElementContainer(oldParent,newParent,child)
{
 if(!child)
  return;
 oldParent.removeChild(child);
 newParent.appendChild(child);
}

function selectTrigger(selectElement,secId)
{
 var selInd = selectElement.selectedIndex;
 
 if(selInd == 0)
  return;
 
 var triggerOption = selectElement.options[selInd];
 var mailerId = triggerOption.value;
 
 selectElement.selectedIndex = 0;

 addTrigger(mailerId,secId);
}

function addTrigger(mailerId,secId)
{
 var configId = secId+"mailer."+mailerId+".configured";
 mailerId = secId + mailerId;
 var nonConfigTriggers = 
document.getElementById(secId+"non-configured-email-triggers");
 var triggerRow = document.getElementById(mailerId);
 var configTriggers = 
document.getElementById(secId+"configured-email-triggers");
 var afterThisElement = 
document.getElementById(secId+"after-last-configured-row");
 
 if(!triggerRow || !document.getElementById(configId))
  return;
 
 nonConfigTriggers.removeChild(triggerRow);
 configTriggers.insertBefore(triggerRow,afterThisElement);
 triggerRow.style.display="";
 
 var triggerHelp = document.getElementById(mailerId+"help");
 nonConfigTriggers.removeChild(triggerHelp);
 configTriggers.insertBefore(triggerHelp,afterThisElement);
 
 var triggerAdv = document.getElementById(mailerId+"elm");
 nonConfigTriggers.removeChild(triggerAdv);
 configTriggers.insertBefore(triggerAdv,afterThisElement);
 
 var nonConfigOptions = 
document.getElementById(secId+"non-configured-options");
 var configOptions = document.getElementById(secId+"configured-options");
 var option = document.getElementById(mailerId + "option");
 switchElementContainer(nonConfigOptions,configOptions,option);
 
 document.getElementById(configId).value = "true";
}

function removeTrigger(mailerId,secId)
{
 document.getElementById(secId+"mailer."+mailerId+".configured").value = 
"false";
 mailerId = secId + mailerId;

 var nonConfigTriggers = 
document.getElementById(secId+"non-configured-email-triggers");
 var triggerRow = document.getElementById(mailerId);
 var configTriggers = 
document.getElementById(secId+"configured-email-triggers"); 
 switchElementContainer(configTriggers,nonConfigTriggers,triggerRow);

 var triggerHelp = document.getElementById(mailerId+"help");
 switchElementContainer(configTriggers,nonConfigTriggers,triggerHelp);

 var triggerAdv = document.getElementById(mailerId+"elm");
 switchElementContainer(configTriggers,nonConfigTriggers,triggerAdv);

 var nonConfigOptions = 
document.getElementById(secId+"non-configured-options");
 var configOptions = document.getElementById(secId+"configured-options");
 var option = document.getElementById(mailerId + "option");
 configOptions.removeChild(option);

 // Reinsert in alphabetical order (skipping the generic 'select' option at 
the top).
 var before = null;
 for (var i = 1; i < nonConfigOptions.options.length; i++) {
  var curOption = nonConfigOptions.options[i];
  if (curOption.id && curOption.value > option.value) {
   before = nonConfigOptions.options[i];
   break;
  }
 }
 nonConfigOptions.insertBefore(option, before);
 
 if(triggerAdv.style.display != "none")
  swapEdit(mailerId);
 
 if(triggerHelp.style.display != "none")
  triggerHelp.style.display="none";
  
 nonConfigOptions.selectedIndex = 0;
}

function toggleMailHelp(mailerId)
{
 var mailHelpRow = document.getElementById(mailerId+"help");
 mailHelpRow.style.display = (mailHelpRow.style.display=="none") ? "" : 
"none";
}

function toggleContentTokenHelp(secId)
{
 var mailHelp = document.getElementById(secId+"contentTokenHelpConf");
 mailHelp.style.display = (mailHelp.style.display=="none") ? "block" : 
"none";
}

-- 
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/f2631050-0df5-401a-98c7-07b10eb5d570%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Seeking help for git command line steps when Git Repository is selected Under Source Code Management Section of Jenkins job configure

2015-03-31 Thread 'sa_nk' via Jenkins Users
Thanks Mark,
Please find the environment details for the jenkins:
Jenkins ver: Jenkins ver. 1.509.1.1 
Jenkins GIT client plugin: 1.9.1
Jenkins GIT plugin: 2.2.1
Git server plugin: 1.3

OS: Red Hat Enterprise Linux Server release 6.6 (Santiago)
git --version -> git version 2.2.0
Java version (master) -> java version "1.7.0_65"
Java version (slave where job configured with git plugin running, using 
java 1.8 for other requirements) -> java version "1.8.0_25"
Credentials plugin: 1.13

master and slave runs on same Linux level.
The reason we would like to go for command line options because of the 
error posted in my question at the top. It was working fine for long time 
and all of sudden popped up with that error and all of the jobs using the 
git plugin started failing. After couple of jenjkins restart it came back 
to normal. I googled it for the resolution and couldn't find any resolution 
for it. So thought of implementing the alternative procedure as command 
line options for the git plugin.

-Thanks, Sathya.


On Tuesday, March 31, 2015 at 10:48:38 AM UTC-7, sa_nk wrote:
>
> Hi Team,
> This is Sathya, I am new to Jenkins. I am not sure if similar to my 
> question was already posted and answered. If it did please direct me to 
> that answer else please see below my request.
>  
>
> I am looking for git command line steps that can be accomplished as 
> alternative to the procedure used in Jenkins UI with Git plugin as below:
>  
>
> Under Source Code Management Section of Jenkin Job configure UI:
> 
>  
>
> Git Repository: Repository URL (https://github.com/)
> Credentials (Select credentials from globally defined)
>  
>
> Branches to build: Branch Specifier (blank for 'any') (*/Development)
>  
>
> Repository broswer: (Auto)
>  
>
> Additional Behaviors: Check out to specific local branch - Branch name 
> (Development)
>  
>  
>  
> In the above all the values are mentioned in the extream right 
> parenthesis. What I am looking for is equivakent git command line steps 
> with options to perform exactly like above so that when ever I experience 
> git plugin issues I can have alternate method of doing it. Couple of times 
> we experienced git plugin issues as below (And end up bouncing the Jenkins 
> and some times even bouncing Jenkins did not resolve):
>  
>
> *FATAL: argument type mismatch*
> *java.lang.IllegalArgumentException: argument type mismatch*
>  
>  
>  
> Thanks in advance and your help is highly appreciated.
> -Sathya.  
>  
>

-- 
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/46eca92c-97f5-45ab-9a45-e1a030587194%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Seeking help for git command line steps when Git Repository is selected Under Source Code Management Section of Jenkins job configure

2015-03-31 Thread Mark Waite
On Tue, Mar 31, 2015 at 3:26 PM, 'sa_nk' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> Thanks Mark for your reply. I did look at the previous successful job
> output and compiled a script with following.
>
> if [ ! -d .git ]; then git init; git status; else git status; fi # This is
> to ijnitialize git -> this step not seen in the job output when plugin used.
> git rev-parse --is-inside-work-tree
> git config remote.origin.url ${URL}
> git config --local credential.helper store --file=~/.git-credentials
> git fetch --tags --progress ${URL} +refs/heads/*:refs/remotes/origin/*
> git config --local --remove-section credential
> git rev-parse origin/${BNAME}^{commit}
> #git config core.sparsecheckout
> git checkout -f ${REVNO}
> #git branch -a
> #git branch -D ${BNAME}
> git checkout -b ${BNAME} ${REVNO}
>
> I had commented out some lines above which were giving some errors, except
> that I am able to checkout the contents, but in the git hub site I see
> below commands (The clone command does little bit diff from above steps
> which creates the parent folder in the workspace) :
> git clone https://github.com/
> git checkout develop
>
> Though I see required files checked out from git, but I am skeptical to
> use if it breaks anything. So far I am playing around with test repository,
> soon I need to hook this to Development code. Can you please look into it
> and verify if those steps are good to go?
>

Those steps seem reasonable to me.

I don't understand why you're implementing the steps of the git plugin in
your build script.  If the git plugin doesn't work for you, then that may
hint that there is something more seriously wrong with your Jenkins
installation.  The git plugin is installed on over 5 Jenkins instances
and is used in many different ways by many different users.

What are the specific problems you've encountered which have prompted you
to replace the steps of the git plugin with steps in your build script?

What versions of the git plugin and the git client plugin and the
credentials plugin and the Jenkins server are you running?

What Java version is hosting the Jenkins instance, and what operating
system?

Mark Waite


> Thanks in advance. -Sathya.
>
> On Tuesday, March 31, 2015 at 1:07:58 PM UTC-7, Mark Waite wrote:
>>
>> When the git plugin is used for a job, the git commands used by the
>> plugin are generally listed in the job output.  What you listed seems to be
>> even prior to job execution, so there is no way for you to see what the git
>> plugin is doing.
>>
>> An argument type mismatch is surprising.  There are relatively few hits
>> in a google search of Jenkins git IllegalArgumentException.  You'll need to
>> provide more information before others can help you resolve the issue,
>> since I doubt there are many others seeing the issue.
>>
>> Some of the common information which can help with diagnosis is described
>> at https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue .
>> The steps listed there "before you submit a bug report" are good helps for
>> diagnosis.
>>
>> Mark Waite
>>
>> On Tue, Mar 31, 2015 at 11:48 AM, 'sa_nk' via Jenkins Users <
>> jenkins...@googlegroups.com> wrote:
>>
>>> Hi Team,
>>> This is Sathya, I am new to Jenkins. I am not sure if similar to my
>>> question was already posted and answered. If it did please direct me to
>>> that answer else please see below my request.
>>>
>>>
>>> I am looking for git command line steps that can be accomplished as
>>> alternative to the procedure used in Jenkins UI with Git plugin as below:
>>>
>>>
>>> Under Source Code Management Section of Jenkin Job configure UI:
>>> 
>>>
>>>
>>> Git Repository: Repository URL (https://github.com/)
>>> Credentials (Select credentials from globally defined)
>>>
>>>
>>> Branches to build: Branch Specifier (blank for 'any') (*/Development)
>>>
>>>
>>> Repository broswer: (Auto)
>>>
>>>
>>> Additional Behaviors: Check out to specific local branch - Branch name
>>> (Development)
>>>
>>>
>>>
>>> In the above all the values are mentioned in the extream right
>>> parenthesis. What I am looking for is equivakent git command line steps
>>> with options to perform exactly like above so that when ever I experience
>>> git plugin issues I can have alternate method of doing it. Couple of times
>>> we experienced git plugin issues as below (And end up bouncing the Jenkins
>>> and some times even bouncing Jenkins did not resolve):
>>>
>>>
>>> *FATAL: argument type mismatch*
>>> *java.lang.IllegalArgumentException: argument type mismatch*
>>>
>>>
>>>
>>> Thanks in advance and your help is highly appreciated.
>>> -Sathya.
>>>
>>>
>>> --
>>> 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 discuss

Re: Seeking help for git command line steps when Git Repository is selected Under Source Code Management Section of Jenkins job configure

2015-03-31 Thread 'sa_nk' via Jenkins Users
Thanks Mark for your reply. I did look at the previous successful job 
output and compiled a script with following.

if [ ! -d .git ]; then git init; git status; else git status; fi # This is 
to ijnitialize git -> this step not seen in the job output when plugin used.
git rev-parse --is-inside-work-tree
git config remote.origin.url ${URL}
git config --local credential.helper store --file=~/.git-credentials
git fetch --tags --progress ${URL} +refs/heads/*:refs/remotes/origin/*
git config --local --remove-section credential
git rev-parse origin/${BNAME}^{commit}
#git config core.sparsecheckout
git checkout -f ${REVNO}
#git branch -a
#git branch -D ${BNAME}
git checkout -b ${BNAME} ${REVNO}

I had commented out some lines above which were giving some errors, except 
that I am able to checkout the contents, but in the git hub site I see 
below commands (The clone command does little bit diff from above steps 
which creates the parent folder in the workspace) :
git clone https://github.com/
git checkout develop

Though I see required files checked out from git, but I am skeptical to use 
if it breaks anything. So far I am playing around with test repository, 
soon I need to hook this to Development code. Can you please look into it 
and verify if those steps are good to go?

Thanks in advance. -Sathya.

On Tuesday, March 31, 2015 at 1:07:58 PM UTC-7, Mark Waite wrote:
>
> When the git plugin is used for a job, the git commands used by the plugin 
> are generally listed in the job output.  What you listed seems to be even 
> prior to job execution, so there is no way for you to see what the git 
> plugin is doing.
>
> An argument type mismatch is surprising.  There are relatively few hits in 
> a google search of Jenkins git IllegalArgumentException.  You'll need to 
> provide more information before others can help you resolve the issue, 
> since I doubt there are many others seeing the issue.
>
> Some of the common information which can help with diagnosis is described 
> at https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue .  
> The steps listed there "before you submit a bug report" are good helps for 
> diagnosis.
>
> Mark Waite
>
> On Tue, Mar 31, 2015 at 11:48 AM, 'sa_nk' via Jenkins Users <
> jenkins...@googlegroups.com > wrote:
>
>> Hi Team,
>> This is Sathya, I am new to Jenkins. I am not sure if similar to my 
>> question was already posted and answered. If it did please direct me to 
>> that answer else please see below my request.
>>  
>>
>> I am looking for git command line steps that can be accomplished as 
>> alternative to the procedure used in Jenkins UI with Git plugin as below:
>>  
>>
>> Under Source Code Management Section of Jenkin Job configure UI:
>> 
>>  
>>
>> Git Repository: Repository URL (https://github.com/)
>> Credentials (Select credentials from globally defined)
>>  
>>
>> Branches to build: Branch Specifier (blank for 'any') (*/Development)
>>  
>>
>> Repository broswer: (Auto)
>>  
>>
>> Additional Behaviors: Check out to specific local branch - Branch name 
>> (Development)
>>  
>>  
>>  
>> In the above all the values are mentioned in the extream right 
>> parenthesis. What I am looking for is equivakent git command line steps 
>> with options to perform exactly like above so that when ever I experience 
>> git plugin issues I can have alternate method of doing it. Couple of times 
>> we experienced git plugin issues as below (And end up bouncing the Jenkins 
>> and some times even bouncing Jenkins did not resolve):
>>  
>>
>> *FATAL: argument type mismatch*
>> *java.lang.IllegalArgumentException: argument type mismatch*
>>  
>>  
>>  
>> Thanks in advance and your help is highly appreciated.
>> -Sathya.  
>>  
>>
>> -- 
>> 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/8772bb4a-0dd7-4555-8d15-0d982f33ac39%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Thanks!
> Mark Waite
>  

-- 
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/adff96b2-9501-47dc-b861-15b414cf64b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Email-Ext plugin] don't see triggers

2015-03-31 Thread Murthy Gandikota
Our set up is slightly different. There is no /log/all. I could find logs
under c:\program files\jenkins. Specifically jenkins.x.err.log. There are
no hits in the logs for "Ext"

Thanks

On Tue, Mar 31, 2015 at 1:50 PM, Daniel Beck  wrote:

> Check the Jenkins log at the /log/all URL for messages indicating failure
> to load the extended email publisher.
>
> On 31.03.2015, at 22:22, Murthy Gandikota  wrote:
>
> > I see "Extended E-mail Notification" in the Jenkins' configuration but
> there is no trigger in that section. Project configurations are supposed to
> have "Editable Email Notification" under "Post-build Actions". None I can
> see. The only relevant ones are:
> >
> > E-mail Notification
> > Recipients
> > [X] Send e-mail for every unstable build
> > [X] Send separate e-mails to individuals who broke the build
> > [X] Send e-mail for each failed moduleHelp for feature: E-mail
> Notification
> >
> > But aren't they part of Jenkins core?
> >
> > Thanks
> >
> > --
> > 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/20af0a45-c5dd-4162-95bf-7c762785e0bb%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/tbKjne9NPHI/unsubscribe.
> To unsubscribe from this group and all its topics, 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/BA5E3316-C65C-4D28-A971-5A80B04522CF%40beckweb.net
> .
> 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/CAMFxRJ%2Bms%3DMzR2J33ebQBAED-CCwL59sGumvHGWyHWiJ%3Dvy7ZA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Email-Ext plugin] don't see triggers

2015-03-31 Thread Daniel Beck
Check the Jenkins log at the /log/all URL for messages indicating failure to 
load the extended email publisher.

On 31.03.2015, at 22:22, Murthy Gandikota  wrote:

> I see "Extended E-mail Notification" in the Jenkins' configuration but there 
> is no trigger in that section. Project configurations are supposed to have 
> "Editable Email Notification" under "Post-build Actions". None I can see. The 
> only relevant ones are:
> 
> E-mail Notification   
> Recipients
> [X] Send e-mail for every unstable build  
> [X] Send separate e-mails to individuals who broke the build  
> [X] Send e-mail for each failed moduleHelp for feature: E-mail 
> Notification
> 
> But aren't they part of Jenkins core?
> 
> Thanks 
> 
> -- 
> 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/20af0a45-c5dd-4162-95bf-7c762785e0bb%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/BA5E3316-C65C-4D28-A971-5A80B04522CF%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: [Email-Ext plugin] don't see triggers

2015-03-31 Thread Murthy Gandikota

>
> I see "Extended E-mail Notification" in the Jenkins' configuration but 
> there is no trigger in that section. Project configurations are supposed to 
> have "Editable Email Notification" under "Post-build Actions". None I can 
> see. The only relevant ones are:
>

E-mail Notification 
Recipients 
[X] Send e-mail for every unstable build 
[X] Send separate e-mails to individuals who broke the build 
[X] Send e-mail for each failed module Help for feature: E-mail Notification

But aren't they part of Jenkins core?

Thanks 

-- 
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/20af0a45-c5dd-4162-95bf-7c762785e0bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: REST API update job boken?

2015-03-31 Thread Nicky Ramone
Thanks

On Tue, Mar 31, 2015 at 4:18 PM, Daniel Beck  wrote:

> This may have been caused by a security fix in Jenkins 1.596.1 / Jenkins
> 1.600.
>
> This issue is tracked as
> https://issues.jenkins-ci.org/browse/JENKINS-27548 -- please provide more
> information as requested there.
>
> On 31.03.2015, at 20:49, Nicky Ramone  wrote:
>
> > Hi,
> >
> > I have installed Jenkins LTS 1.596.2 and I came across to the fact that
> updating the job configuration via de REST API doesn't seem to work anymore.
> >
> > I tried something like:
> > curl -v -X POST --data-binary @req.xml -u "myuser:mypass" \
> > -H 'Content-Type: application/xml' \
> > -w '\nStatus: %{http_code}\n' \
> > "http://myjenkins.host.com/job/myjob/config.xml";
> >
> > And I get a 500 response.
> > The same happens if I use the Python API.
> >
> > Looks like somehow it is failing to obtain the SAX parser.
> > Has anyone noticed this too?
> >
> > This is the stack trace:
> > java.io.IOException: Failed to persist config.xml
> >   at hudson.model.AbstractItem.updateByXml(AbstractItem.java:648)
> >   at hudson.model.AbstractItem.doConfigDotXml(AbstractItem.java:614)
> >   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >   at java.lang.reflect.Method.invoke(Method.java:606)
> >   at
> org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
> >   at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
> >   at
> org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
> >   at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
> >   at
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
> >   at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
> >   at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
> >   at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
> >   at
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
> >   at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
> >   at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
> >   at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
> >   at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
> >   at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> >   at
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
> >   at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
> >   at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
> >   at
> hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
> >   at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
> >   at
> hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
> >   at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
> >   at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
> >   at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
> >   at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
> >   at
> hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
> >   at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> >   at
> jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
> >   at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> >   at
> org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
> >   at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> >   at
> org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
> >   at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> >   at
> org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
> >   at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> >   at
> jenkins.security.BasicHeaderProcessor.success(BasicHeaderProcessor.java:140)
> >   at
> jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:82)
> >   at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> >   at
> org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
> >   at
> hudson.security.HttpSessionContextIntegrationFilter2.doFilter(

Re: Seeking help for git command line steps when Git Repository is selected Under Source Code Management Section of Jenkins job configure

2015-03-31 Thread Mark Waite
When the git plugin is used for a job, the git commands used by the plugin
are generally listed in the job output.  What you listed seems to be even
prior to job execution, so there is no way for you to see what the git
plugin is doing.

An argument type mismatch is surprising.  There are relatively few hits in
a google search of Jenkins git IllegalArgumentException.  You'll need to
provide more information before others can help you resolve the issue,
since I doubt there are many others seeing the issue.

Some of the common information which can help with diagnosis is described
at https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue .
The steps listed there "before you submit a bug report" are good helps for
diagnosis.

Mark Waite

On Tue, Mar 31, 2015 at 11:48 AM, 'sa_nk' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> Hi Team,
> This is Sathya, I am new to Jenkins. I am not sure if similar to my
> question was already posted and answered. If it did please direct me to
> that answer else please see below my request.
>
>
> I am looking for git command line steps that can be accomplished as
> alternative to the procedure used in Jenkins UI with Git plugin as below:
>
>
> Under Source Code Management Section of Jenkin Job configure UI:
> 
>
>
> Git Repository: Repository URL (https://github.com/)
> Credentials (Select credentials from globally defined)
>
>
> Branches to build: Branch Specifier (blank for 'any') (*/Development)
>
>
> Repository broswer: (Auto)
>
>
> Additional Behaviors: Check out to specific local branch - Branch name
> (Development)
>
>
>
> In the above all the values are mentioned in the extream right
> parenthesis. What I am looking for is equivakent git command line steps
> with options to perform exactly like above so that when ever I experience
> git plugin issues I can have alternate method of doing it. Couple of times
> we experienced git plugin issues as below (And end up bouncing the Jenkins
> and some times even bouncing Jenkins did not resolve):
>
>
> *FATAL: argument type mismatch*
> *java.lang.IllegalArgumentException: argument type mismatch*
>
>
>
> Thanks in advance and your help is highly appreciated.
> -Sathya.
>
>
> --
> 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/8772bb4a-0dd7-4555-8d15-0d982f33ac39%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks!
Mark Waite

-- 
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/CAO49JtF%3DDn5mvv71gzaUU47UOdW1cbCM%2BEqz-iGY6bOaZB%3D_%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[workflow-plugin] getting error: java.io.NotSerializableException: java.util.HashMap$Entry

2015-03-31 Thread Adam R. Paul

Hello,

I'm working on my first workflow job, using Jenkins LTS 1.596.2 & 
workflow 1.4, and am getting the following error:


[...]
Running: Execute sub-workflows in parallel : Body : End
Running: End of Workflow
java.io.NotSerializableException: java.util.HashMap$Entry
[...]

I confess I am not yet fluent in groovy, and only passingly familiar 
with java, so this may be something simple/stupid, but googling around 
didn't show anything that seemed applicable.


The relevant except of my workflow is:

"""
def bport_cmds = [:]

// first determine the RTIs/bugs to backport:
node ("gates") {
runscript("01_gen_buglist -s ${SCRIPT_HOME}/../not-in-sru-bugs -u 
${SCRIPT_HOME}/../in-update-bugs")

def j = readFile("build.params")
//echo j.toString()
def rti = new JsonSlurper().parseText(j.toString())

// populate map of backport commands to run in parallel
for (Map.Entry entry : rti.entrySet()) {
def script = "02_do_backports -r " + entry.getKey() + " -b "
def cnt = 0
for (bug in entry.getValue()) {
if (cnt == 0) {
script += bug
} else {
script += "," + bug
}
cnt++
}
bport_cmds[entry.getKey()] = { echo "Would have run " + script }
}
rti = null
}

echo bport_cmds.toString()

// run the backports in parallel:
parallel bport_cmds
bport_cmds = null
"""

Before adding the parallel call, everything works as expected.

Any ideas?

The  console output is:

"""
Started by user anonymous
Running: Allocate node : Start
Running on  in 
Running: Allocate node : Body : Start
Running: Shell Script
<01_genbuglist script output>
Running: Read file from workspace
Running: Allocate node : Body : End
Running: Allocate node : End
Running: Print Message
[403412:com.cloudbees.groovy.cps.impl.CpsClosure@3d839d, 
403850:com.cloudbees.groovy.cps.impl.CpsClosure@1bf9ea2, 
402337:com.cloudbees.groovy.cps.impl.CpsClosure@147a2ae]

Running: Execute sub-workflows in parallel : Start
[403412] Running: Parallel branch: 403412
[403850] Running: Parallel branch: 403850
[402337] Running: Parallel branch: 402337
[403412] Running: Print Message
[403412] Would have run 02_do_backports -r 403412 -b 19320107
Running: Execute sub-workflows in parallel : Body : End
[403850] Running: Print Message
[403850] Would have run 02_do_backports -r 403850 -b 19863042,19404161
Running: Execute sub-workflows in parallel : Body : End
[402337] Running: Print Message
[402337] Would have run 02_do_backports -r 402337 -b 17500325
Running: Execute sub-workflows in parallel : Body : End
Running: End of Workflow
java.io.NotSerializableException: java.util.HashMap$Entry
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:860)
at 
org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
at 
org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
at 
org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
at 
org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:343)
at java.util.HashMap.writeObject(HashMap.java:1129)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:271)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:976)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMars

Workflow Plugin -- temporary files are created in the workspace directory

2015-03-31 Thread Rinaldo DiGiorgio
Hi,

   I am evaluating the workflow plugin as a replacement for our current 
approach and have a few questions.  I thought I would ask them individually 
and see how that goes before asking too many questions on the list.  The 
first question is about using multiple scms. I am using git and hg and I 
have a for loop that retrieves all the source.  I need to package that 
source up and put it into artifactory or nexus.  I am able to perform the 
clones and pulls.  Once the for loop is completed I attempt to run tar and 
I get an error message about the file save changed.  An outline of the 
workflow script follows:

*  node('some node') {*

* for ( iterate over all the repos )*


*  }*


*  sh tar cvf /tmp/somefile name*

  tar sees some files that are not in the repo.  Is jenkins actually 
creating files in the workspace directory instead of some tmp directory.

  Is this the expected behavior?

  I can't simply ignore all .hidden files since the workspace may use them 
in some way.  Is my only option to use a regex that assumes that there is a 
temporary hidden directory from Jenkins that is 8 digits of lowercase 
characters and digits.

Rinaldo





-- 
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/263a1bc5-fcec-46e7-a931-f55bea4d8d5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't Find MSBuild in configuration

2015-03-31 Thread Eric Pyle
You probably need to install the MSBuild Plugin 
. Check 
Manage Jenkins>Manage Plugins>Installed to see whether it's installed, 
use the Available tab to install it if needed.


Eric

On 3/31/2015 3:16 PM, Anthony Stavile wrote:


I ran jenkins-1.607.msi and can't find MSBuild in the configuration.

Please see the attached for what I respect to see vs. what's there.

I’m new to Jenkins so I have no idea with respect to what to do.

Thanks in advance for your help.

--
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/a6e04665-60d7-47b0-8bec-e4f579a9abab%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/551AF3D8.5000801%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: REST API update job boken?

2015-03-31 Thread Daniel Beck
This may have been caused by a security fix in Jenkins 1.596.1 / Jenkins 1.600.

This issue is tracked as https://issues.jenkins-ci.org/browse/JENKINS-27548 -- 
please provide more information as requested there.

On 31.03.2015, at 20:49, Nicky Ramone  wrote:

> Hi, 
> 
> I have installed Jenkins LTS 1.596.2 and I came across to the fact that 
> updating the job configuration via de REST API doesn't seem to work anymore.
> 
> I tried something like:
> curl -v -X POST --data-binary @req.xml -u "myuser:mypass" \
> -H 'Content-Type: application/xml' \
> -w '\nStatus: %{http_code}\n' \
> "http://myjenkins.host.com/job/myjob/config.xml";
> 
> And I get a 500 response.
> The same happens if I use the Python API.
> 
> Looks like somehow it is failing to obtain the SAX parser.
> Has anyone noticed this too?
> 
> This is the stack trace:
> java.io.IOException: Failed to persist config.xml
>   at hudson.model.AbstractItem.updateByXml(AbstractItem.java:648)
>   at hudson.model.AbstractItem.doConfigDotXml(AbstractItem.java:614)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:606)
>   at 
> org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
>   at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
>   at 
> org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
>   at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
>   at 
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
>   at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
>   at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
>   at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
>   at 
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
>   at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
>   at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
>   at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
>   at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>   at 
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
>   at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
>   at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
>   at 
> hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
>   at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
>   at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
>   at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
>   at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
>   at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
>   at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
>   at 
> hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
>   at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>   at 
> jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
>   at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>   at 
> org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
>   at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>   at 
> org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
>   at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>   at 
> org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
>   at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>   at 
> jenkins.security.BasicHeaderProcessor.success(BasicHeaderProcessor.java:140)
>   at 
> jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:82)
>   at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>   at 
> org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
>   at 
> hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
>   at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>   at 
> hudson.security.

Re: plugin usage

2015-03-31 Thread Daniel Beck
> Supported Extension pointsSupported types of plugins (extension points)
> until now:
> 
> * Builder
> * BuildWrapper
> * JobProperty
> * Publisher
> * SCM
> * Trigger

This essentially means that it can find usages of plugins that are referenced 
in job configurations.

Plugins that aren't part of that, e.g. markup formatters (like OWASP Markup 
Formatter), or plugins providing slave types (e.g. Clouds or SSH Slaves) won't 
show up as 'used'.

-- 
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/76B0D95E-2D11-467B-96AC-1519B949F2E3%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


REST API update job boken?

2015-03-31 Thread Nicky Ramone
Hi,

I have installed Jenkins LTS 1.596.2 and I came across to the fact that
updating the job configuration via de REST API doesn't seem to work anymore.

I tried something like:
curl -v -X POST --data-binary @req.xml -u "myuser:mypass" \
-H 'Content-Type: application/xml' \
-w '\nStatus: %{http_code}\n' \
"http://myjenkins.host.com/job/myjob/config.xml";

And I get a 500 response.
The same happens if I use the Python API.

Looks like somehow it is failing to obtain the SAX parser.
Has anyone noticed this too?

This is the stack trace:
java.io.IOException: Failed to persist config.xml
at hudson.model.AbstractItem.updateByXml(AbstractItem.java:648)
at hudson.model.AbstractItem.doConfigDotXml(AbstractItem.java:614)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
at
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
at
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
at
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
at
hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at
hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at
jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at
jenkins.security.BasicHeaderProcessor.success(BasicHeaderProcessor.java:140)
at
jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:82)
at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at
hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:168)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at
org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at
hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at
org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
at
org.eclipse.je

How to view Jmeter Perfmon metrics collector graph via Jenkins dashboard

2015-03-31 Thread Joe Antony
Hi am running a test in Jmeter with the jmeter perfmon metrics collector 
plugin enabled via Jenkins.. Post test completion i can view the 
Performance results using performance Plugin.But how to view the perfmon 
metrics collector graph and stats in Jenkins dashboard???

-- 
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/2d440e96-2f06-4d28-bcae-fa20c892c559%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Logging Who Restarted Jenkins

2015-03-31 Thread Maureen Barger
On Tue, Mar 31, 2015 at 2:06 PM, Daniel Beck  wrote:

> Of course, if the user logs into the server and restarts the Jenkins
> service, it won't get logged this way. There's no way for Jenkins to
> determine who does it either.


You can add it to the script itself if you do it from command line and
output to another file on the OS. You have the account used as a login, the
script run which probably reflects the action (start|stop|restart) and the
time etc.

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


Re: plugin usage

2015-03-31 Thread Ashish Yadav
Thanks.

What does this mean?

https://wiki.jenkins-ci.org/display/JENKINS/Plugin+Usage+Plugin+%28Communit
y%29


Supported Extension pointsSupported types of plugins (extension points)
until now:

* Builder
* BuildWrapper
* JobProperty
* Publisher
* SCM
* Trigger

Also, does anyone know of any issues with this plugin against Jenkins LTS
version 1.596.1?



On 3/31/15, 1:15 PM, "Daniel Beck"  wrote:

>Plugin Usage Plugin may help you with that.
>
>On 31.03.2015, at 20:09, Ashish Yadav  wrote:
>
>> I have quite a few plugins that are installed and some that are marked
>>for an update. How can I tell if a plug-in is still in-use/valid and by
>>which job? I want to remove plugins that are no longer in-use or needed.
>> 
>> 
>> -- 
>> 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/D1404D00.9321%25ashish.
>>yadav%40firemon.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/C4D13464-94A1-4023-A90A-
>76551915F27A%40beckweb.net.
>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/D1404F2B.9325%25ashish.yadav%40firemon.com.
For more options, visit https://groups.google.com/d/optout.


Re: plugin usage

2015-03-31 Thread Daniel Beck
Plugin Usage Plugin may help you with that.

On 31.03.2015, at 20:09, Ashish Yadav  wrote:

> I have quite a few plugins that are installed and some that are marked for an 
> update. How can I tell if a plug-in is still in-use/valid and by which job? I 
> want to remove plugins that are no longer in-use or needed.
> 
> 
> -- 
> 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/D1404D00.9321%25ashish.yadav%40firemon.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/C4D13464-94A1-4023-A90A-76551915F27A%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


plugin usage

2015-03-31 Thread Ashish Yadav
I have quite a few plugins that are installed and some that are marked for an 
update. How can I tell if a plug-in is still in-use/valid and by which job? I 
want to remove plugins that are no longer in-use or needed.

-- 
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/D1404D00.9321%25ashish.yadav%40firemon.com.
For more options, visit https://groups.google.com/d/optout.


Re: Logging Who Restarted Jenkins

2015-03-31 Thread Daniel Beck
If Jenkins is ordered to shut down/restart, the user who ordered the restart 
should already get logged to jenkins.model.Jenkins:

https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/jenkins/model/Jenkins.java#L3354
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/jenkins/model/Jenkins.java#L3393

Of course, if the user logs into the server and restarts the Jenkins service, 
it won't get logged this way. There's no way for Jenkins to determine who does 
it either.

On 31.03.2015, at 19:37, Greg Nifor  wrote:

> Is there a way to log who ordered a Jenkins restart? The log right now just 
> denotes that a restart happened. I would like something like
> 
> Mar 30, 2015 9:57:01 PM INFO: Safe-restart started by GregWringle.
> 
> 
> 
> Is there anyway I can implement this?
> 
> 
> -- 
> 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/bcca4940-e2dd-4540-9700-ab2f437c3a84%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/BC927E6E-9F57-4D70-8780-9CDDF6921796%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Logging Who Restarted Jenkins

2015-03-31 Thread Daniel Beck
Audit Trail Plugin records this if done via the /(safe)Restart URLs.

On 31.03.2015, at 19:37, Greg Nifor  wrote:

> Is there a way to log who ordered a Jenkins restart? The log right now just 
> denotes that a restart happened. I would like something like
> 
> Mar 30, 2015 9:57:01 PM INFO: Safe-restart started by GregWringle.
> 
> 
> 
> Is there anyway I can implement this?
> 
> 
> -- 
> 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/bcca4940-e2dd-4540-9700-ab2f437c3a84%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/EA39A2EB-8C7D-4451-87E2-2F7C04431014%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Seeking help for git command line steps when Git Repository is selected Under Source Code Management Section of Jenkins job configure

2015-03-31 Thread 'sa_nk' via Jenkins Users
Hi Team,
This is Sathya, I am new to Jenkins. I am not sure if similar to my 
question was already posted and answered. If it did please direct me to 
that answer else please see below my request.
 

I am looking for git command line steps that can be accomplished as 
alternative to the procedure used in Jenkins UI with Git plugin as below:
 

Under Source Code Management Section of Jenkin Job configure UI:

 

Git Repository: Repository URL (https://github.com/)
Credentials (Select credentials from globally defined)
 

Branches to build: Branch Specifier (blank for 'any') (*/Development)
 

Repository broswer: (Auto)
 

Additional Behaviors: Check out to specific local branch - Branch name 
(Development)
 
 
 
In the above all the values are mentioned in the extream right parenthesis. 
What I am looking for is equivakent git command line steps with options to 
perform exactly like above so that when ever I experience git plugin issues 
I can have alternate method of doing it. Couple of times we experienced git 
plugin issues as below (And end up bouncing the Jenkins and some times even 
bouncing Jenkins did not resolve):
 

*FATAL: argument type mismatch*
*java.lang.IllegalArgumentException: argument type mismatch*
 
 
 
Thanks in advance and your help is highly appreciated.
-Sathya.  
 

-- 
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/8772bb4a-0dd7-4555-8d15-0d982f33ac39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Logging Who Restarted Jenkins

2015-03-31 Thread Greg Nifor
Is there a way to log who ordered a Jenkins restart? The log right now just 
denotes that a restart happened. I would like something like

Mar 30, 2015 9:57:01 PM INFO: Safe-restart started by GregWringle.


Is there anyway I can implement this?

-- 
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/bcca4940-e2dd-4540-9700-ab2f437c3a84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: New Jenkins User: Build Step Windows Batch Script missing/not-shown when trying to (re)Configure build

2015-03-31 Thread Eric Edberg

After posting the article above I deleted the 3 offending jobs missing the 
Build Step and recreated them again.  Once I did that the new build jobs 
correctly showed the Windows Batch build step and I was able to correctly 
edit it's parameters


--> I assume that the Build Step may not have even been executing on the 
remote systems at this point.

I reviewed the logfile output of the script and it appears that build step 
was lost at some point during the SW or plugin upgrade...

Anyway, I think I am ok at this point.

I'll hijack this issue with another question :-)


   - What is the easiest way when you are "Configuring" a build  to specify 
   arguments to an executable?
   - Classically, I'd like to be able to pass arguments on the CLI command 
   line of the script using form fields input in the build job (if possible)
   
One option is to pass an XML file to the workspace.  I believe that there 
are ways to attach a file to the build job that would reside in the 
workspace.

Q:  is there a way to build the XML file with pre-defined questions/answers 
(var/value) pairs?
  Any pointers where to look for answers?

Thanks again,

Eric L. Edberg

-- 
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/a98c4302-c5f1-450f-a780-a634d3f0085f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Email-Ext plugin] don't see triggers

2015-03-31 Thread Murthy Gandikota
Hi Daniel

Many thanks for your kind response. I use maven for builds. I see the
plugin installed.Yes, Jenkins was restarted.

Regards

On Tue, Mar 31, 2015 at 12:32 AM, Daniel Beck  wrote:

> What kind of project is this? Freestyle, Maven, ...?
>
> Did you restart Jenkins after installing?
>
> Is the plugin listed in plugin manager's Installed tab as enabled?
>
> On 31.03.2015, at 03:17, Murthy Gandikota  wrote:
>
> > Hi
> >
> > Using Jenkins 1.596
> >
> > Installed Email-Ext plugin
> >
> > The documentation says (
> https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin)
> >
> > For a project to use the email-ext plugin, you need to enable it in the
> project configuration page. Select the checkbox labeled "Editable Email
> Notification" in the "Post-build Actions" section.
> >
> > Don't see the "Editable Email Notification" or "Post-build Actions" in
> the project configuration page:
> >
> > Version mismatch
> >
> > Thanks for your help
> >
> > --
> > 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/41c257c2-2a09-4a33-9d76-123ea675ca0d%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/tbKjne9NPHI/unsubscribe.
> To unsubscribe from this group and all its topics, 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/D0DBA4C5-29A1-47E3-9C8F-1B747CED46CD%40beckweb.net
> .
> 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/CAMFxRJJ7MAekgoHSsM4DQ1P4yXuV5yk4ZyFRD7gdcSxzS3S%3DpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


New Jenkins User: Build Step Windows Batch Script missing/not-shown when trying to (re)Configure build

2015-03-31 Thread Eric Edberg
Hello,

I am a new Jenkins user (SA) configuring Jenkins for use executing build 
jobs on collections of remote nodes.  Installing Jenkins and several slaves 
was pretty easy enough.  Writing a test Project that executed a Windows 
Batch Script build step also work too.  Email-ext plugin worked as expected.

Wanted to "edit" the original Build Step and change the Windows Batch 
script name and test parameter passing.   *When I selected the Project -> 
Configure it loaded but the Build "step" I had originally defined was 
missing so I cannot change the program executable PATH or test adding 
variables/options for this build step.*

*Question:  Is this a known issue and/or how do I (re)Configure a Project 
Build Step?*

After creating the initial job I updated all plugins and added a few, Email 
Extension, Config File Provider, Green Balls

When I "copy" an existing project to a new one it also worked correctly but 
is missing the build step when I try to initially configure it .

Any hints on what may be the issue?  

Thanks for any hints

Eric L. Edberg





-- 
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/a1aee4df-2acd-4e40-9647-a7977933f53d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help to find a log parser

2015-03-31 Thread Victoria Wei Lei
Hello, Daniel, 

I am currently use Email-ext and log parser to send build status email, by 
just insert parsed console log URL into email body.  I would like to 
customize the email body with particular parsed warning/error messages 
instead of just a URL.  I know you recommended BUILD_LOG_REGEX,  but I am 
wondering whether you can provide more detail information what I need to do 
to achieve my goal.  I am new on Jenkins,  I really appreciate your help. 

Thanks
Victoria 

On Wednesday, July 17, 2013 at 3:41:01 AM UTC-5, Daniel Beck wrote:
>
> Use https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin 
>
> Look for BUILD_LOG_REGEX in the 'Content Token Reference' of the 
> post-build action. 
>
> On 16.07.2013, at 23:57, Eduardo Dias > 
> wrote: 
>
> > Hi All, 
> > 
> > I am trying to find an example to get a part of console log based on a 
> regex to send by email. 
> > 
> > who can help me? 
> > 
> > Thanks 
> > 
> > Eduardo 
> > 
> > 
> > -- 
> > 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 . 
> > For more options, visit https://groups.google.com/groups/opt_out. 
> >   
> >   
>
>

-- 
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/1dbbdc17-c41f-4c02-a4da-64a9c7bddbe4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Tomcat deployment Fails when using Deploy To Container plugin v1.10

2015-03-31 Thread Oscar Martins
Hello,

I am not able to do the deploy of all projects.

In the container in "conf / tomcat-users.xml" have user with the privilege 
"manager-script".: 



























In the project settings have the following:





























- Jenkins *v1.606*
- Deploy to container Plugin *v1.10*
- Tomcat *v7.0.41*



- Console log:

BUILD SUCCESSFUL
Total time: 0 seconds
Deploying 
/home/orcproje/.jenkins/workspace/ORCDATABASE/DATABASE_ORC/dist/DATABASE_ORC.war
 
to container Tomcat 7.x Remote
  
[/home/orcproje/.jenkins/workspace/ORCDATABASE/DATABASE_ORC/dist/DATABASE_ORC.war]
 
is not deployed. Doing a fresh deployment.
  Deploying 
[/home/orcproje/.jenkins/workspace/ORCDATABASE/DATABASE_ORC/dist/DATABASE_ORC.war]
ERROR: Build step failed with exception
org.codehaus.cargo.container.ContainerException: Failed to deploy 
[/home/orcproje/.jenkins/workspace/ORCDATABASE/DATABASE_ORC/dist/DATABASE_ORC.war]
at 
org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.deploy(AbstractTomcatManagerDeployer.java:111)
at 
org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:185)
at 
hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:73)
at 
hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:116)
at 
hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:103)
at hudson.FilePath.act(FilePath.java:989)
at hudson.FilePath.act(FilePath.java:967)
at 
hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:103)
at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:61)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
at hudson.model.Run.execute(Run.java:1776)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: java.io.FileNotFoundException: 
http://orc-project.com/manager/text/deploy?path=%2FDATABASE_ORC
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1624)
at 
org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:544)
at 
org.codehaus.cargo.container.tomcat.internal.TomcatManager.deployImpl(TomcatManager.java:611)
at 
org.codehaus.cargo.container.tomcat.internal.TomcatManager.deploy(TomcatManager.java:291)
at 
org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.deploy(AbstractTomcatManagerDeployer.java:102)
... 17 more
java.io.FileNotFoundException: 
http://orc-project.com/manager/text/deploy?path=%2FDATABASE_ORC
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1624)
at 
org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:544)
at 
org.codehaus.cargo.container.tomcat.internal.TomcatManager.deployImpl(TomcatManager.java:611)
at 
org.codehaus.cargo.container.tomcat.internal.TomcatManager.deploy(TomcatManager.java:291)
at 
org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.deploy(AbstractTomcatManagerDeployer.java:102)
at 
org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:185)
at 
hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:73)
at 
hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:116)
at 
hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:103)
at hudson.FilePath.act(FilePath.java:989)
at hudson.FilePath.act(FilePath.java:967)
at 
hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:103)
at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:61)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
at hudson.model.Run.execute(Run.java:1776)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.mod

reference the last build marked as "keep forever"

2015-03-31 Thread sledz
Is it possible to reference the last build marked as "keep forever" in a 
similar way than lastSuccessfullBuild?

-- 
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/43fdee9b-a4a1-4350-a6f6-28aa8533cd5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SVN account and LDAP account association / Email notification

2015-03-31 Thread Laurent Tourreau
I am using the default mailer.

Regards

Laurent

-- 
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/687aee12-d8d1-4996-b07e-bb10c0a944a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: changelog error in Jenkins

2015-03-31 Thread Faizan Javed
Anyone???

On Tuesday, March 10, 2015 at 4:22:06 PM UTC+5, Faizan Javed wrote:
>
> Hi all, 
>
> I have installed Jenkins ver. 1.599 on windows and configured Jenkins with 
> cvs and able to checkout from cvs by checking "Skip changelog" option. But 
> after unchecking this option I am getting the following error on running 
> the build:
>
> cvs rlog -S -d06 Mar 2015 18:49:11 +0500<09 Mar 2015 14:54:14 +0500 ns 
> cvs [rlog aborted]: premature end of value in 
> /home/cvs/src/ns/stencils/statements/Attic/CheckTemplateUCPA.rtf,v revision 
> 1.6
>  
> FATAL: Error while trying to run CVS rlog
> java.lang.RuntimeException: Error while trying to run CVS rlog
> at hudson.scm.AbstractCvs.executeRlog(AbstractCvs.java:691)
> at hudson.scm.AbstractCvs.access$100(AbstractCvs.java:80)
> at hudson.scm.AbstractCvs$2.invoke(AbstractCvs.java:663)
> at hudson.scm.AbstractCvs$2.invoke(AbstractCvs.java:660)
> at hudson.FilePath.act(FilePath.java:989)
> at hudson.FilePath.act(FilePath.java:967)
> at hudson.scm.AbstractCvs.getRemoteLogForModule(AbstractCvs.java:660)
> at hudson.scm.AbstractCvs.calculateChangeLog(AbstractCvs.java:779)
> at hudson.scm.AbstractCvs.postCheckout(AbstractCvs.java:794)
> at hudson.scm.CVSSCM.checkout(CVSSCM.java:351)
> at hudson.model.AbstractProject.checkout(AbstractProject.java:1270)
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609)
> at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531)
> at hudson.model.Run.execute(Run.java:1718)
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
> at hudson.model.ResourceController.execute(ResourceController.java:89)
> at hudson.model.Executor.run(Executor.java:240)
>
> My CVS Plugin ver. is 2.11
>
> My cvs version is 
> Concurrent Versions System (CVSNT) 2.0.51d (client/server)
>
> Any idea? Is there any way to use the cvs log command for polling and the 
> tag command for tagging (rather than rlog and rtag) without downgrading?
>
>

-- 
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/f68b8c86-695d-45ae-a1e9-deec64f1bc1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SVN account and LDAP account association / Email notification

2015-03-31 Thread Slide
Are you using the default mailer, or email-ext?

On Mon, Mar 30, 2015 at 8:38 AM Laurent Tourreau 
wrote:

> Hi all
>
> In my company, all users have an unique user id (UID) made up of 6 digits.
>
> All have a LDAP account using this UID as login.
>
> Also, all have a mail with the following pattern:
>
> *firstname.lastname*@mycompany.com
>
> On Jenkins, we use LDAP plugin to create and manage user accounts. Email
> adresses are founded and recorded in users' profile. Jenkins user id
> matches perfectly LDAP user id.
>
> Beside this, users have SVN account with the following username pattern:
>
>
> *firstname.lastname.uid*
> When automatically triggering a build after a commit, on changes page
> Jenkins displays the SVN account username responsible for the commit.
> At the same time, Jenkins create an account *firstname.lastname.uid .*
>
> I have two questions :
>
> 1/ How can I avoid the creation of SVN account *firstname.lastname.uid *and
> make the SVN account *firstname.lastname.uid *matching LDAP account *uid*
> ?
>
> 2/ How can I send mail notification to the commiter responsible of build
> break so by parsing SVN account *firstname.lastname.uid *we can match
> LDAP user email?
>
> Thanks a lot for your answers.
>
> Regards
>
> Laurent TOURREAU
>
>
>  --
> 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/b140b375-ee26-4e52-b479-cf15e1f108da%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/CAPiUgVd-3UOJ84Mz87KDXqoFhE-xXBA5rk4v2mri%2B1SA_07_-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Mirrors for Jenkins

2015-03-31 Thread Christopher Orr

Hi there,

On 25/03/15 14:48, William Hiller wrote:

My name is Ray Sison, and I'm with Go-Parts.com. I'm writing to ask if
you would be interested in hosting Jenkins on a free download mirror?


More mirrors are always a good thing, so thanks for the offer :)

But you're likely to get more attention by posting on the infrastructure 
mailing list (which I have CC'd in any case):

http://lists.jenkins-ci.org/mailman/listinfo/jenkins-infra



Go-Parts is providing mirrors free of charge to software providers .
As you know, hosting mirrors offer you and your users several benefits,
including:
- An always-on backup of the latest version of your software, should
your main server ever go down
- More bandwidth so that more users can download your program
- Global access to high-traffic countries around the world
- Greater security - In case your site is hacked or security is
threatened, you'll always have a fresh, clean version of the program on
the mirrored server(s)


In this hypothetical situation, as a mirror, you would have no idea 
whether the main site had been compromised, so you'd likely be serving 
possibly-compromised files anyway..?


Regards,
Chris

--
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/551A61D4.70509%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Issue when parallelizing parametrized jobs from a multi-project jobs

2015-03-31 Thread lebrame57
I'm trying to parallelize parametrized jobs from a Multi-Project one.

The fact is that the configurations of the jobs are the same. When I build
my MP jobs the error can occur on a sub-job which is not always the same,
it's really hazardous There is no logic in it

Did somenone encountered this error too ?


ERROR: Processing failed due to a bug in the code. Please report this to
jenkinsci-users@googlegroups.com
java.lang.NullPointerException
at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:101)
at
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:855)
at
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
at hudson.model.Run.execute(Run.java:1718)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
project=hudson.maven.MavenModuleSet@3b3f4f26[Aggregator_XXX_(VERSIONING)]
project.getModules()=[hudson.maven.MavenModule@4d30311[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-Admin-jar-1.5][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-Admin-jar-1.5][relativePath:_poms\ept-pom-aggregator-Admin-jar-1.5],
hudson.maven.MavenModule@60a3eba9[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-Common-jar-1.5][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-Common-jar-1.5][relativePath:_poms\ept-pom-aggregator-Common-jar-1.5],
hudson.maven.MavenModule@2c1cebdb[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-Common-jar-1.6][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-Common-jar-1.6][relativePath:_poms\ept-pom-aggregator-Common-jar-1.6],
hudson.maven.MavenModule@44778b0[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-ear-was85][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-ear-was85][relativePath:_poms\ept-pom-aggregator-SOAApp-ear-was85],
hudson.maven.MavenModule@23c708ab[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-jar-1.5][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-jar-1.5][relativePath:_poms\ept-pom-aggregator-SOAApp-jar-1.5],
hudson.maven.MavenModule@2ddd0e72[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-jar-1.6][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-jar-1.6][relativePath:_poms\ept-pom-aggregator-SOAApp-jar-1.6],
hudson.maven.MavenModule@80f97da[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-war-was85][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-war-was85][relativePath:_poms\ept-pom-aggregator-SOAApp-war-was85],
hudson.maven.MavenModule@41ca0966[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOXX-ear][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOXX-ear][relativePath:_poms\ept-pom-aggregator-SOXX-ear],
hudson.maven.MavenModule@5e5d8ea8[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOXX-jar-1.5][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOXX-jar-1.5][relativePath:_poms\ept-pom-aggregator-SOXX-jar-1.5],
hudson.maven.MavenModule@222b72db[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOXX-war][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOXX-war][relativePath:_poms\ept-pom-aggregator-SOXX-war],
hudson.maven.MavenModule@76192577[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-ear-was85][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-ear-was85][relativePath:_poms\ept-pom-aggregator-WebServices-ear-was85],
hudson.maven.MavenModule@37df5e23[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-jar-1.5][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-jar-1.5][relativePath:_poms\ept-pom-aggregator-WebServices-jar-1.5],
hudson.maven.MavenModule@2c326e33[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-jar-1.6][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-jar-1.6][relativePath:_poms\ept-pom-aggregator-WebServices-jar-1.6],
hudson.maven.MavenModule@7c5e1e09[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-jaxb][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-jaxb][relativePath:_poms\ept-pom-aggregator-WebServices-jaxb],
hudson.maven.MavenModule@6bb72cf9[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-model][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-model][relativePath:_poms\ept-pom-aggregator-WebServices-model],
hudson.maven.MavenModule@1c3b7171[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-war-was85][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-war-was85][relativePath:_poms\ept-pom-aggregator-WebServices-war-was85]]
project.getRootModule()=hudson.maven.MavenModule@44778b0[Aggregato

Re: [Email-Ext plugin] don't see triggers

2015-03-31 Thread Daniel Beck
What kind of project is this? Freestyle, Maven, ...?

Did you restart Jenkins after installing?

Is the plugin listed in plugin manager's Installed tab as enabled?

On 31.03.2015, at 03:17, Murthy Gandikota  wrote:

> Hi
> 
> Using Jenkins 1.596
> 
> Installed Email-Ext plugin
> 
> The documentation says 
> (https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin)
> 
> For a project to use the email-ext plugin, you need to enable it in the 
> project configuration page. Select the checkbox labeled "Editable Email 
> Notification" in the "Post-build Actions" section.
> 
> Don't see the "Editable Email Notification" or "Post-build Actions" in the 
> project configuration page:
> 
> Version mismatch
> 
> Thanks for your help
> 
> -- 
> 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/41c257c2-2a09-4a33-9d76-123ea675ca0d%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/D0DBA4C5-29A1-47E3-9C8F-1B747CED46CD%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: "mark" and reference artifacts of another build of a job

2015-03-31 Thread sledz
In general this plugin can do the work. But it creates real copies in our 
case (and we talk about a big amount of data) because workspace and build 
archive reside on different partitions. :(

I'm looking more for something like these "lastSuccessfulBuild" links. But 
it should be possible to customize name, creation, and update of such a 
link. And it should be accessible using the browser.

Am Montag, 30. März 2015 20:07:00 UTC+2 schrieb Richard Bywater:
>
> Have you looked at  
> https://wiki.jenkins-ci.org/display/JENKINS/Copy+Artifact+Plugin 
> already?  That should do roughly what you want although you might need to 
> calculate the build number potentially (possibly using EnvInject plugin? )
>
> Richard
>  

-- 
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/5d6aecf9-c393-430a-907f-07db56f4e081%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.