jenkinsjenkins-pipelinejenkins-pluginsjenkins-groovy

Jenkins : Change the name of JenkinsFile


I'm using Pipeline Plugin under Jenkins

My job is basically using a file called "jenkinsFile" to get the divers steps to run.

-> My purpose is how to let the job use a different file name :

examples:

Since it seems that "JenkinsFile" is a conventional format ,

is there any ways to change it if it's not verry clean ??

Suggestions ??


Solution

  • At my company we just started using .jenkinsfile as an extension.

    build.jenkinsfile and deploy.jenkinsfileand so forth. It's worked well and our IDE's are able to parse the syntax just fine.