Imperative == refers to cli commands Declarative == using YAML files
--export
--save-config
--record
That is a mouthful and the process could be clearer. doesn't help that there's a lot of outdated information and conflicting articles with links upon links pointing you in every which way but the right way.
I'll use Google Apps as a SAML provider for the purpose of this gist.
The process is triggered from the AES Console and required multiple steps to configure the IAM Roles and chosen IDP
import jenkins.model.* | |
import hudson.security.* | |
def env = System.getenv() | |
def jenkins = Jenkins.getInstance() | |
jenkins.setSecurityRealm(new HudsonPrivateSecurityRealm(false)) | |
jenkins.setAuthorizationStrategy(new GlobalMatrixAuthorizationStrategy()) | |
def user = jenkins.getSecurityRealm().createAccount(env.JENKINS_USER, env.JENKINS_PASS) |
durable-task:1.14 | |
workflow-scm-step:2.6 | |
bitbucket-build-status-notifier:1.3.3 | |
pipeline-build-step:2.5.1 | |
workflow-cps-global-lib:2.8 | |
http_request:1.8.20 | |
antisamy-markup-formatter:1.5 | |
pipeline-maven:3.0.0 | |
ssh-credentials:1.13 | |
kubernetes:0.12 |