de-jcup / eclipse-jenkins-editor

Jenkins Editor - A eclipse plugin to edit "Jenkinsfile" files
https://marketplace.eclipse.org/content/jenkins-editor
Apache License 2.0
45 stars 5 forks source link

Support "*Jenkinsfile*" in file association #64

Closed Coldplayer001 closed 3 years ago

Coldplayer001 commented 5 years ago

It will be useful for pipeline automation with Jenkins integration.

Example:

Capture d’écran 2019-06-26 à 20 51 20

Script Path : Jenkinsfile_$JOB_NAME

de-jcup commented 5 years ago

It's problematic to handle files without file ending in eclipse editors. Either it is an explicit name (like "Jenkinsfile" or something with a specific fileending.

But Jenkinseditor does not only support "Jenkinsfile" but also ".jenkinsfile" and ".jenkins" see https://github.com/de-jcup/eclipse-jenkins-editor/wiki/FAQ#using-jenkins-or-jenkinsfile-as-file-extension, so just rename the files to have a supported file ending - e.g. "Jenkinsfile_$JOB_NAME.jenkins" and it should work out of the box.

de-jcup commented 5 years ago

Is there still a need for this? Maybe I have found a way, but it would need work and I am currently running out of time.