<p>I've spinnaker with kubernetes manifest v2. Now, I'm creating spinnaker pipeline with manifest files in which I'd like to have namespace named as <strong>applicationName-pipelineName</strong>.</p>

<p>I'm looking for spinnaker environment variable for pipeline name which I can use in manifest file to would append in file.</p>

<p>Ex. I'm using docker registry latest tag as
<code>imageName:${trigger['tag']}</code></p>

<p>similarly something like</p>

<pre><code>apiVersion: v1
kind: Namespace
metadata:
  name: appName-${pipelineName}
</code></pre>

<p>please advise. Thanks.</p>

Jaydeep Soni
<p>During pipeline runtime you have following parameters available:<br>
<code>${execution.id}</code> - unique id of execution;<br>
<code>${execution.name}</code> - name of pipeline used during creation;<br>
<code>${execution.pipelineConfigId}</code> - unique id for pipeline across whole Spinnaker  instance, it also could be set to something meaningful if you create pipeline using API.  </p>

<p>Do not forget that namespace's name is very sensitive to case and non-alphanumerical symbols. Such functions like <code>#alphanumerical(string)</code> and <code>${java.lang.String.toLowerCase()}</code> will be very helpful.</p>

<p>You may find this reference useful - <a href="https://www.spinnaker.io/reference/pipeline/expressions/" rel="nofollow noreferrer">Pipeline Expression Reference</a>.</p>
