Restrict users from using directives in Jenkinsfile

15 views
Skip to first unread message

Dmytro Kryvenko

unread,
Feb 8, 2018, 3:46:14 PM2/8/18
to Jenkins Users
Hi,


I've put together a library that enables some custom syntax in my Jenkinsfile such as


myPipeline('java-maven') { jdkVersion '8' foo 'bar' }

Hi,

I've put together a library that enables some custom syntax in my Jenkinsfile such as:

myPipeline('java-maven') {
  jdkVersion '8'
  foo 'bar'
}

Now I want to prevent users from defining their own pipelines and limit them to be using only standard ones. Is there a way to do it? If no, let's say I want to create such a plugin - any advice?
Reply all
Reply to author
Forward
0 new messages