Re: gcloud ssh pass key file as an environment var?

2018-02-02 Thread red 888
Sorry meant to ask on GCE forum, deleting this post

-- 
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/aead3520-f358-4c20-8526-caabb3a969a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: gcloud ssh pass key file as an environment var?

2018-02-01 Thread niristotle okram
checkout your SO post
https://stackoverflow.com/questions/48569560/read-the-output-of-a-secret-text-file/48572961#48572961


On Thu, Feb 1, 2018 at 3:58 PM, red 888  wrote:

> I tried setting GOOGLE_APPLICATION_CREDENTIALS to the path of my json key
> but it doesn't work:
>
> + gcloud auth activate-service-account
> ERROR: (gcloud.auth.activate-service-account) argument --key-file:
> Must be specified.
>
>
> Many other commands support this env. Is there an env that gcloud auth
> supports? Or do I have to pass it in manually
>
> --
> 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/8c81fdb9-9521-45c3-ae30-08b51ba36ee6%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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/CAPzcO4iLjwj5L%3D3ut15PrydmRcfHsgS%2BW9Gxq6Q7LAHew3nSDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


gcloud ssh pass key file as an environment var?

2018-02-01 Thread red 888
I tried setting GOOGLE_APPLICATION_CREDENTIALS to the path of my json key 
but it doesn't work:

+ gcloud auth activate-service-account
ERROR: (gcloud.auth.activate-service-account) argument --key-file: Must 
be specified.


Many other commands support this env. Is there an env that gcloud auth 
supports? Or do I have to pass it in manually

-- 
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/8c81fdb9-9521-45c3-ae30-08b51ba36ee6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.