I have a workflow script that I set in the workflow job Groovy CPS DSL 
textbox via Job DSL. The problem is that though security on the server is 
set to "logged in users can do anything", apparently the script is not set 
as "Jenkins administrator".

How can I have the workflow job script updated via Job DSL without having 
to approve the script each time it changes?

This is the general layout of the Job DSL:
def flow = '''
node {
  git url: 'ssh://g...@git.com/repo.git'
}
'''
workflowJob('job1') {
  triggers {
      scm('# triggered by post-commit hook')
  }
  definition {
    cps {
      script(flow)
    }
  }
}

Jenkins is 1.609.1, workflow 1.8, job dsl 1.35.

Thanks,
David

-- 
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/0a562bd7-e5ef-4b5b-b1c6-998f24cb4770%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to