Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to a fresh plugins #48

Open
avoidik opened this issue Sep 26, 2017 · 1 comment
Open

Migration to a fresh plugins #48

avoidik opened this issue Sep 26, 2017 · 1 comment

Comments

@avoidik
Copy link

avoidik commented Sep 26, 2017

This topic for everyone who is afraid of upgrade plugins button. Hope this will save someones time

  1. Changes in DSL for Groovy scripts
  • workflowJob is replaced by pipelineJob
  • relativeTargetDir is replaced by relativeTargetDirectory and have to be enclosed in extensions block
extensions {
	relativeTargetDirectory('platform-management')
}
  • scriptText is replaced by script and have to be enclosed in groovyScript block (with additional sandbox option)
systemGroovyChoiceListProvider {
    groovyScript {
        script("")
        sandbox(false)
    }
}
  1. Changes in scripts to approve
    Signatures already approved:
field java.util.ArrayList size
method com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy addRole java.lang.String com.michelin.cio.hudson.plugins.rolestrategy.Role
method com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy assignRole java.lang.String com.michelin.cio.hudson.plugins.rolestrategy.Role java.lang.String
method com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy getRoleMap java.lang.String
method com.michelin.cio.hudson.plugins.rolestrategy.RoleMap getRole java.lang.String
method groovy.lang.GString plus java.lang.String
method groovy.lang.Script println java.lang.Object
method hudson.model.Run getEnvironment hudson.model.TaskListener
method hudson.model.Saveable save
method java.lang.Class getDeclaredMethod java.lang.String java.lang.Class[]
method java.lang.reflect.AccessibleObject setAccessible boolean
method jenkins.model.Jenkins getAuthorizationStrategy
new com.michelin.cio.hudson.plugins.rolestrategy.Role java.lang.String java.lang.String java.util.Set
staticField com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy PROJECT
staticMethod hudson.model.Hudson getInstance
staticMethod hudson.security.Permission fromId java.lang.String
staticMethod jenkins.model.Jenkins getInstance

Signatures already approved which may have introduced a security vulnerability (recommend clearing):

method java.lang.Class getDeclaredMethod java.lang.String java.lang.Class[]
staticMethod hudson.model.Hudson getInstance
staticMethod jenkins.model.Jenkins getInstance

Feel free to add information here regarding upgrade to a fresh plugins versions

@avoidik
Copy link
Author

avoidik commented Sep 26, 2017

Next time I'll try to upgrade Jenkins version itself. Main issues here is that Scriptler isn't supported officially, but I've created workaround for this

biouno/uno-choice-plugin#84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant