[JIRA] (JENKINS-42829) [Regression] Jenkins pipeline start failing in on when/expression clause with custom method call with No such DSL method found among steps

2017-03-21 Thread florian.migno...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Florian Mignotet commented on  JENKINS-42829  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: [Regression] Jenkins pipeline start failing in on when/_expression_ clause with custom method call with No such DSL method found among steps   
 

  
 
 
 
 

 
 Liam Newman By replaying the pipeline (with the replay button), I've discovered that the code inside the "_expression_" block is now considered as another script. So, for my case, I've done like this :   

 

pipeline {
agent {
label 'linux'
}
stages {
stage('Clean') {
when {
_expression_ {
def cleanParameters = readJSON text: params.STAGES
return cleanParameters.fabrication.clean
}
}

[...]
 

 Why "cleanParameters" variable name ?   Because in each stage, I have a "when _expression_". If the same variable name is used with a "def myvar", the compilator doesn't like it. So a unique variable name in each "_expression_" block is necessary. It's a little bit dirty I know. But if I have to check an _expression_ on steroids, I'll write it in a shared library       
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkins

[JIRA] (JENKINS-42829) [Regression] Jenkins pipeline start failing in on when/expression clause with custom method call with No such DSL method found among steps

2017-03-20 Thread florian.migno...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Florian Mignotet commented on  JENKINS-42829  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: [Regression] Jenkins pipeline start failing in on when/_expression_ clause with custom method call with No such DSL method found among steps   
 

  
 
 
 
 

 
 Thank you Andrew Bayer, I've found another solution inspired from your workaround. For me, this ticket can be closed.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





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


[JIRA] (JENKINS-42829) [Regression] Jenkins pipeline start failing in on when/expression clause with custom method call with No such DSL method found among steps

2017-03-17 Thread florian.migno...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Florian Mignotet commented on  JENKINS-42829  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: [Regression] Jenkins pipeline start failing in on when/_expression_ clause with custom method call with No such DSL method found among steps   
 

  
 
 
 
 

 
 Great. I'll try it. Thanks you very much for the workaround.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





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


[JIRA] (JENKINS-42829) [Regression] Jenkins pipeline start failing in on when/expression clause with custom method call with No such DSL method found among steps

2017-03-16 Thread florian.migno...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Florian Mignotet commented on  JENKINS-42829  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: [Regression] Jenkins pipeline start failing in on when/_expression_ clause with custom method call with No such DSL method found among steps   
 

  
 
 
 
 

 
 Hi, Same kind of regression for me : 

 

[...]

@NonCPS
def initStages() {
def jsonSlurper = new JsonSlurper()
def parameters = jsonSlurper.parseText(params.STAGES)

def stagesToRun = [
clean: parameters.fabrication.clean,
prepare: parameters.fabrication.prepare,
build: parameters.fabrication.build,
artifacts: parameters.fabrication.artifacts,
qa: parameters.tests.run
]

return stagesToRun
}

def stagesToRun = initStages()

[...]

pipeline {
agent {
label 'linux'
}
stages {
stage('Clean') {
when {
_expression_ {
stagesToRun['clean']
}
}

[...] 

 Now it returns the error : 

 
groovy.lang.MissingPropertyException: No such property: stagesToRun for class: Script1
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:53)
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:458)
	at org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:243)
	at org.kohsuke.groovy.sandbox.GroovyInterceptor.onGetProperty(GroovyInterceptor.java:52)
	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:308)
	at org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:241)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:238)
	at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:28)
	at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20)
	at Script1.run(Script1.groovy:1) 

 It was working like a charm before the last update to Jenkins 2.50 and Pipeline Model Definition to 1.1.1    
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

 

[JIRA] [role-strategy-plugin] (JENKINS-35456) Role-Based strategy plugin 502 Proxy error

2016-06-08 Thread florian.migno...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Florian Mignotet updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-35456 
 
 
 
  Role-Based strategy plugin 502 Proxy error  
 
 
 
 
 
 
 
 
 

Change By:
 
 Florian Mignotet 
 
 
 

Environment:
 
 Jenkins:1.656 role-strategy-plugin:2.3.0  Tomcat:8.0.35 Java:1.8.0_92 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





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


[JIRA] [role-strategy-plugin] (JENKINS-35456) Role-Based strategy plugin 502 Proxy error

2016-06-08 Thread florian.migno...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Florian Mignotet commented on  JENKINS-35456 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Role-Based strategy plugin 502 Proxy error  
 
 
 
 
 
 
 
 
 
 
Yes, Tomcat 8.0.35 with Java 1.8.0_92 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





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


[JIRA] [role-strategy-plugin] (JENKINS-35456) Role-Based strategy plugin 502 Proxy error

2016-06-08 Thread florian.migno...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Florian Mignotet created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-35456 
 
 
 
  Role-Based strategy plugin 502 Proxy error  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 
 Oleg Nenashev 
 
 
 

Components:
 

 role-strategy-plugin 
 
 
 

Created:
 

 2016/Jun/08 7:04 AM 
 
 
 

Environment:
 

 Jenkins:1.656 role-strategy-plugin:2.3.0 
 
 
 

Labels:
 

 502 proxy 
 
 
 

Priority:
 
  Critical 
 
 
 

Reporter:
 
 Florian Mignotet 
 
 
 
 
 
 
 
 
 
 
Hi, 
After upgrading role-strategy-plugin from 2.2.0 to 2.3.0 on Jenkins 1.656, I have a 502 proxy error (Reason: Error reading from remote server) on every pages, except /manage. So I was able to downgrade to version 2.2.0 and everything works like a charm. 
Jenkins is connected to an Active Directory. Nothing on the logs. 
Thank you 
 
 
 
 
 
 
 
 
  

[JIRA] [role-strategy-plugin] (JENKINS-19934) Add "Job Create" permission to project roles

2015-09-24 Thread florian.migno...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Florian Mignotet commented on  JENKINS-19934 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Add "Job Create" permission to project roles  
 
 
 
 
 
 
 
 
 
 
Hi, 
We need the same feature too. Is there a fix in progress ? 
Thank you 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





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