<p>This may sound like a stupid question, but I am installing Jenkins-X on a Kubernetes cluster on GKE.  When I install through Cloud Shell, the <code>/usr/local/bin</code> folder I am moving it to is refreshed every time the shell is restarted.</p>

<p>My question is two-fold:</p>

<ol>
<li>Am I correct in installing Jenkins-X through Cloud Shell (and not on a particular node)?</li>
<li>How can I get it so the <code>/jx</code> folder is available when the Cloud Shell is restarted (or at least have the <code>/jx</code> folder on the path at all times)?</li>
</ol>

randymay
<p>I am running jx from the Cloud shell</p>

<ol>
<li><p>In the cloud shell you are already logged in and you have a project configured.  To prevent jx to re-login to google cloud/project use the following arguments</p>

<pre><code>jx create cluster gke  --skip-login=true --project-id projectId
</code></pre></li>
<li><p>download jx to ~/bin and update $PATH to include both <code>~/bin</code> and <code>~/.jx/bin</code>. Put the following to <code>~/.profile</code></p>

<pre><code>if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

PATH="$HOME/.jx/bin:$PATH"
</code></pre>

<p>The <code>.jx/bin</code> is the place where JX downloads helm if needed.</p></li>
</ol>
