The first line of the Jenkinsfile should be "!#/usr/bin/env groovy", is that correct?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

The first line of the Jenkinsfile should be "!#/usr/bin/env groovy", is that correct?

dandeliondodgeball
I just noticed this comment in the Jenkins User Handbook [https://jenkins.io/user-handbook.pdf].

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/028dfcb0-72ad-4483-b4b8-5c4a35c00406%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: The first line of the Jenkinsfile should be "!#/usr/bin/env groovy", is that correct?

Mark Waite-2
I suspect you meant (and I've confirmed that the handbook has it correct).:

#! /usr/bin/env groovy

rather than

!# /usr/bin/env groovy

That can be helpful as the first line, as described in the handbook.  It helps some editors and viewer recognize portions of the file more readily.

Mark Waite

On Wed, Oct 11, 2017 at 9:39 AM dandeliondodgeball <[hidden email]> wrote:
I just noticed this comment in the Jenkins User Handbook [https://jenkins.io/user-handbook.pdf].

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/028dfcb0-72ad-4483-b4b8-5c4a35c00406%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFSbLfA4OxaGTR166Kb%2Bvuk0K%3DSaKzsCoXAdCpXaTqrmg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: The first line of the Jenkinsfile should be "!#/usr/bin/env groovy", is that correct?

dandeliondodgeball
My life is full of typos, so yes 

#! /usr/bin/env groovy

Oh, it is only to make my IDE life a better place.  I understand now.  Thanks.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/961f7442-c416-403f-9630-baee0e577c1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: The first line of the Jenkinsfile should be "!#/usr/bin/env groovy", is that correct?

Mark Waite-2
Yes, it helps the editors.  It won't allow you to run a Jenkins Pipeline script from the Linux command line.

On Wed, Oct 11, 2017 at 9:55 AM dandeliondodgeball <[hidden email]> wrote:
My life is full of typos, so yes 

#! /usr/bin/env groovy

Oh, it is only to make my IDE life a better place.  I understand now.  Thanks.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/961f7442-c416-403f-9630-baee0e577c1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtH20C%2BQqAi12-W%2BOF5WtVVq1_K-JFUR39YVcGssWoX-Kg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.