[Urgent] Jenkins 2.60 suddenly files under /var/lib/jenkins are removed

2017-06-08 Thread Limor Shemesh
>From unknown reason files under /var/lib/jenkins were removed from my 
Jenkins master machine.
It reproduced three times.

To enable Jenkins to work I had to restore jenkins jobs.

The error I see in system log - 

Caused: java.util.MissingResourceException: Unable to load resource 
jar:file:/var/lib/jenkins/plugins/mask-passwords/WEB-INF/lib/mask-passwords.jar!/com/michelin/cio/hudson/plugins/passwordparam/PasswordParameterDefinition.properties

com.michelin.cio.hudson.plugins.passwordparam.PasswordParameterDefinition$ParameterDescriptorImpl.getDisplayName(PasswordParameterDefinition.java:75)
Caused: java.lang.reflect.InvocationTargetException


It looks like it connect to mask password plugin - should I remove this plugin 
to solve it?

Please your urgent advice.


-- 
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/2858014e-937d-44d2-b06d-12bae05ff9a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Global properties - Environment variables displayed wrongly on GUI

2017-05-15 Thread Limor Shemesh
i'm using Jenkins 2.60 - on the Manage Jenkins - Configure System -
the Global properties - Environment variables - display the same variable 
as the number of the variables that defined in config.xml.
In the config.xml  the variables are correct.
Is it known issue? Is there something I can do to fix it? 

-- 
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/aeeea406-ac10-4d6b-9302-e6bd95ee07a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: failed to build and we don't even have a listene

2017-04-23 Thread Limor Shemesh
Apparently the cause of this error is the 'Mask passwords plugin'
I have downgraded from 2.10.1 to 2.9 - the problem was fixed.


On Tuesday, April 11, 2017 at 7:16:38 PM UTC+3, Limor Shemesh wrote:
>
> I'm using Jenkins 2.50
> After upgrading some plugins all jobs failed, the console log of the job 
> is empty, in Jenkins system log I see the error:
>
> Apr 11, 2017 6:54:54 PM WARNING 
> org.jenkins_ci.plugins.run_condition.BuildStepRunner logEvaluateException
>
> Exception caught evaluating condition: [java.lang.NullPointerException: 
> null], action = [Fail the build]
> java.lang.NullPointerException
>   at 
> org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.logRunning(BuildStepRunner.java:114)
>   at 
> org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:148)
>   at 
> org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)
>   at 
> org.jenkins_ci.plugins.flexible_publish.strategy.FailAtEndExecutionStrategy.perform(FailAtEndExecutionStrategy.java:85)
>   at 
> org.jenkins_ci.plugins.flexible_publish.ConditionalPublisher.perform(ConditionalPublisher.java:206)
>   at 
> org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher.perform(FlexiblePublisher.java:124)
>   at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
>   at hudson.model.Build$BuildExecution.post2(Build.java:186)
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
>   at hudson.model.Run.execute(Run.java:1753)
>   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>   at hudson.model.ResourceController.execute(ResourceController.java:98)
>   at hudson.model.Executor.run(Executor.java:405)
>
>
> Apr 11, 2017 6:54:54 PM SEVERE hudson.model.Run handleFatalBuildProblem
>
> #116 failed to build and we don't even have a listener
> java.lang.NullPointerException
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.reportError(AbstractBuild.java:752)
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:728)
>   at hudson.model.Build$BuildExecution.post2(Build.java:186)
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
>   at hudson.model.Run.execute(Run.java:1753)
>   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>   at hudson.model.ResourceController.execute(ResourceController.java:98)
>   at hudson.model.Executor.run(Executor.java:405)
>
>
> Downgrade the plugins didn't help.
>
> Please your urgent advice.
>
>
>

-- 
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/78f88a90-04b8-4fd6-b9ba-a3ccd0ac3b5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Blue ocean

2017-04-23 Thread Limor Shemesh
Hi
I'm using blue ocean rc1, I have three questions regarding the plugin:

   - Is this plugin configurable?
   - When I enter to blue ocean from a job build it automatically open the 
   log, 

   in case I want to see the tests results I have to scroll up the 
log and then click the tests tab, Is it possible to open the main screen of 
the job blue ocean and not open the log by default?

   - The tests tag display the skipped and failed tests, how can I see the 
   passing tests list?

-- 
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/afba8084-d5d2-43e3-ad99-7ce31f6ee01a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


failed to build and we don't even have a listene

2017-04-11 Thread Limor Shemesh
I'm using Jenkins 2.50
After upgrading some plugins all jobs failed, the console log of the job is 
empty, in Jenkins system log I see the error:

Apr 11, 2017 6:54:54 PM WARNING 
org.jenkins_ci.plugins.run_condition.BuildStepRunner logEvaluateException

Exception caught evaluating condition: [java.lang.NullPointerException: null], 
action = [Fail the build]
java.lang.NullPointerException
at 
org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.logRunning(BuildStepRunner.java:114)
at 
org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:148)
at 
org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)
at 
org.jenkins_ci.plugins.flexible_publish.strategy.FailAtEndExecutionStrategy.perform(FailAtEndExecutionStrategy.java:85)
at 
org.jenkins_ci.plugins.flexible_publish.ConditionalPublisher.perform(ConditionalPublisher.java:206)
at 
org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher.perform(FlexiblePublisher.java:124)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
at hudson.model.Build$BuildExecution.post2(Build.java:186)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
at hudson.model.Run.execute(Run.java:1753)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:405)


Apr 11, 2017 6:54:54 PM SEVERE hudson.model.Run handleFatalBuildProblem

#116 failed to build and we don't even have a listener
java.lang.NullPointerException
at 
hudson.model.AbstractBuild$AbstractBuildExecution.reportError(AbstractBuild.java:752)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:728)
at hudson.model.Build$BuildExecution.post2(Build.java:186)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
at hudson.model.Run.execute(Run.java:1753)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:405)


Downgrade the plugins didn't help.

Please your urgent advice.


-- 
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/b3d1aa17-8b4d-49de-9336-b9374296c7ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


'build job' inside nose in pipeline job raise error

2017-03-09 Thread Limor Shemesh
I have created pipeline job which run stages in parallel.
The following build job:
build job: 'dir_agents/build_agent_centos_final_premium', parameters: 
[string(name: 'tag', value: 'master')]
raise the error:
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException 
:
 
unclassified method java.util.LinkedHashMap call java.util.LinkedHashMap
What does is mean and is there a workaround ?

This is the job code:
def build = [:]
def sanity = [:]

if(ManagerBuild=="true"){
  build["ManagerBuild"] = {
stage ("ManagerBuild") {
  stage ("manager amqpinflux") {
echo "Amqpinflux centos-final-6.5 build"
echo workspace
retry(3) {
}
  }
  stage ("manager restservice") {
echo "Restservice centos-final-6.5 build"
retry(3) {
}
  }
  stage ("manager mgmtworker") {
echo "Mgmtworker centos-final-6.5 build"
retry(3) {
}
  }
}
  }
}
if(AgentBuild=="true"){
  build["AgentBuild"] = {
stage ("AgentBuild") {
  stage ("agent centos6.5") {
echo "Agent centos-final-6.5 build"
retry(3) {
}
  }
  stage ("agent centos7") {
echo "Agent centos-core-7 build"
retry(3) {
}
  }
  stage ("agent redhat6.5") {
echo "Agent redhat-santiago-6 build"
retry(3) {
}
  }
  stage ("agent redhat7.1") {
echo "Agent redhat-maipo-7.1 build"
retry(3) {
}
  }
  stage ("agent ubuntu12.04") {
echo "Agent ubuntu-precise-12.04 build"
retry(3) {
}
  }
  stage ("agent ubuntu14.04") {
echo "Agent ubuntu-trusty-14.04 build"
retry(3) {
}
  }
  stage ("agent ubuntu1216.04") {
echo "Agent ubuntu-xenial-16.04 build"
retry(3) {
}
  }
  stage ("agent windows") {
echo "Agent windows build"
retry(3) {
}
  }
}
  }
}

if(CliBuild=="true"){
  build["CliBuild"] = {
  stage ("CliBuild") {
  stage ("cli centos6.5") {
echo "Cli centos-final-6.5 build"
echo env.branch
retry(3) {
}
  }
  stage ("Cli debian7") {
echo "Cli debian-wheezy-7 build"
retry(3) {
}
  }
  stage ("cli windows") {
echo "Cli windows build"
retry(3) {
}
  }
  }
  }
}

if(ManagerImages=="true"){
  sanity["ManagerImages"] = {
stage ("ManagerImages") {
  echo "Manager Images creator"
  echo env.branch
  retry(3) {
}
}
  }
}

if(VagrantBox=="true"){
  sanity["VagrantBox"] = {
stage ("VagrantBox") {
  echo "VagrantBox creator"
  retry(3) {
}
}
  }
}

node ('master') {

  workspace = pwd()
  echo workspace
  if(CreateTags=="true"){
stage ("CreateTags") {
  echo "Updates versions and creates core tags"
  retry(3) {
*build job: 'dir_agents/build_agent_centos_final_premium', 
parameters: [string(name: 'tag', value: 'master')]*
  }
}
}
  parallel build
  if(ManagerSingleTar=="true"){
stage ("ManagerSingleTar") {
  echo "Manager single tar build"
  retry(3) {
  }
}
  }
  parallel sanity  
}

-- 
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/486d7ca5-db07-43ac-9ada-c9965d06d473%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


subscribe

2017-03-03 Thread Limor Shemesh


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


Jenkins2 pileline poll scm

2017-03-03 Thread Limor Shemesh
Hi
I upgraded Jenkins to 2.4 and started migrate jobs to pipeline jobs.
I have created JenkinsFile and configure the job to search it in github 
repo.
The job works great but I cannot find the way to add poll scm.
I want that the job will run on every push of the repo (master branch).
Please help.
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/60ee6556-433b-4718-9589-d6310fdf4a13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.