<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Armory Docs – Common Objects</title><link>/plugins/policy-engine/use/packages/common-objects/</link><description>Recent content in Common Objects on Armory Docs</description><generator>Hugo -- gohugo.io</generator><atom:link href="/plugins/policy-engine/use/packages/common-objects/index.xml" rel="self" type="application/rss+xml"/><item><title>Plugins: artifacts</title><link>/plugins/policy-engine/use/packages/common-objects/artifacts/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/plugins/policy-engine/use/packages/common-objects/artifacts/</guid><description>
&lt;p>An &lt;a href="https://spinnaker.io/reference/artifacts/">artifact&lt;/a> is an object that references an external resource.&lt;/p>
&lt;p>The objects and endpoints found in:&lt;/p>
&lt;ul>
&lt;li>&lt;code>artifacts&lt;/code>,&lt;/li>
&lt;li>&lt;code>boundArtifact&lt;/code>,&lt;/li>
&lt;li>&lt;code>createdArtifacts&lt;/code>,&lt;/li>
&lt;li>&lt;code>expectedArtifacts&lt;/code>,&lt;/li>
&lt;li>&lt;code>matchArtifact&lt;/code>,&lt;/li>
&lt;li>&lt;code>optionalArtifacts&lt;/code>,&lt;/li>
&lt;li>and &lt;code>resolvedExpectedArtifacts&lt;/code>,&lt;/li>
&lt;/ul>
&lt;p>are the same. Additionally:&lt;/p>
&lt;ul>
&lt;li>&lt;code>boundArtifact&lt;/code>,&lt;/li>
&lt;li>&lt;code>defaultArtifact&lt;/code>,&lt;/li>
&lt;li>and &lt;code>matchArtifact&lt;/code>&lt;/li>
&lt;/ul>
&lt;p>can be found as sub-arrays of &lt;code>expectedArtifacts&lt;/code> &lt;code>resolvedExpectedArtifacts&lt;/code>.&lt;/p>
&lt;p>The table below continues the path from the artifact array:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Key&lt;/th>
&lt;th>Type&lt;/th>
&lt;th>Description&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;code>artifactAccount&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>If your artifact either was not supplied from a trigger, or it was not found in a prior execution, this account provides a default artifact.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>customKind&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>location&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>metadata.account&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>metadata.id&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>The unique ID of the default artifact&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>name&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>The display name of the default artifact&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>provenance&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>reference&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>type&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>version&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>what version/branch of the artifact should be read from the account.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>id&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>useDefaultArtifact&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>If your artifact either was not supplied from a trigger, or it was not found in a prior execution, the artifact specified below ends up in your pipeline&amp;rsquo;s execution context.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>usePriorArtifact&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>Attempt to match against an artifact in the prior pipeline execution&amp;rsquo;s context. This ensures that you always be using the most recently supplied artifact to this pipeline and is generally a safe choice.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>uuid&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table></description></item><item><title>Plugins: input.pipeline.trigger</title><link>/plugins/policy-engine/use/packages/common-objects/input.pipeline.trigger/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/plugins/policy-engine/use/packages/common-objects/input.pipeline.trigger/</guid><description>
&lt;h2 id="keys">Keys&lt;/h2>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Key&lt;/th>
&lt;th>Type&lt;/th>
&lt;th>Description&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.artifacts[]&lt;/code>&lt;/td>
&lt;td>&lt;code>[array]&lt;/code>&lt;/td>
&lt;td>See &lt;a href="/plugins/policy-engine/use/packages/common-objects/artifacts/">artifacts&lt;/a> for more information.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.correlationId&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.dryRun&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.enabled&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>True if the trigger is enabled.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.eventId&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.executionId&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.expectedArtifacts[]&lt;/code>&lt;/td>
&lt;td>&lt;code>[array]&lt;/code>&lt;/td>
&lt;td>See &lt;a href="/plugins/policy-engine/use/packages/common-objects/artifacts/">artifacts&lt;/a> for more information.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.isDryRun&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.isRebake&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.isStrategy&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.other.artifacts[]&lt;/code>&lt;/td>
&lt;td>&lt;code>[array]&lt;/code>&lt;/td>
&lt;td>See &lt;a href="/plugins/policy-engine/use/packages/common-objects/artifacts/">artifacts&lt;/a> for more information.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.other.dryRun&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.other.enabled&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.other.eventId&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.other.executionId&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.other.expectedArtifacts[]&lt;/code>&lt;/td>
&lt;td>&lt;code>[array]&lt;/code>&lt;/td>
&lt;td>See &lt;a href="/plugins/policy-engine/use/packages/common-objects/artifacts/">artifacts&lt;/a> for more information.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.other.preferred&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.other.rebake&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.other.resolvedExpectedArtifacts[]&lt;/code>&lt;/td>
&lt;td>&lt;code>[array]&lt;/code>&lt;/td>
&lt;td>See &lt;a href="/plugins/policy-engine/use/packages/common-objects/artifacts/">artifacts&lt;/a> for more information.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.other.strategy&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.other.type&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.other.user&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.parameters.&amp;lt;parameterName&amp;gt;&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>The value specified for the parameter when triggering the pipeline.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.preferred&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.rebake&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.resolvedExpectedArtifacts[]&lt;/code>&lt;/td>
&lt;td>&lt;code>[array]&lt;/code>&lt;/td>
&lt;td>See &lt;a href="/plugins/policy-engine/use/packages/common-objects/artifacts/">artifacts&lt;/a> for more information.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.type&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>The type of trigger. See &lt;a href="https://spinnaker.io/guides/user/pipeline/triggers-with-artifactsrewrite/">Triggering Pipelines - Overview&lt;/a> for more information.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.trigger.user&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>For triggers of type &lt;code>git&lt;/code>, the user or organization associated with the git repository.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.triggers[].branch&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>Which branch of the git repository triggers this pipeline.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.triggers[].dryRun&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.triggers[].enabled&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>True if the trigger is enabled.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.triggers[].expectedArtifactIds[]&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.triggers[].id&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.triggers[].preferred&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.triggers[].project&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>A change in what project triggers this pipeline.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.triggers[].rebake&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>True if all baked artifacts should be rebaked, even if their inputs have not changed.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.triggers[].secret&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>The secret that the trigger uses to authenticate with Armory Continuous Deployment.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.triggers[].slug&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>The trigger&amp;rsquo;s slug. For example, with a GitHub trigger this is the project name.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.triggers[].source&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>The type of the source for the trigger. For some trigger types this can be used to disambiguate amongst multiple trigger invokers.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.pipeline.triggers[].type&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>The configured type of the trigger.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table></description></item><item><title>Plugins: input.user</title><link>/plugins/policy-engine/use/packages/common-objects/input.user/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/plugins/policy-engine/use/packages/common-objects/input.user/</guid><description>
&lt;p>The following function can be used in your policies to determine if a user has a particular role assigned to it:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>hasRole(role){
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> input.user.roles[_].name=role
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>}
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Key&lt;/th>
&lt;th>Type&lt;/th>
&lt;th>Description&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;code>input.user.isAdmin&lt;/code>&lt;/td>
&lt;td>&lt;code>boolean&lt;/code>&lt;/td>
&lt;td>Is the user who started this pipeline an admin user&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.user.username&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>What is the user ID of the user that started this pipeline.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;code>input.user.role[]&lt;/code>&lt;/td>
&lt;td>&lt;code>string&lt;/code>&lt;/td>
&lt;td>The names of the roles assigned to the user. This only shows up if FIAT is configured to provide roles.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table></description></item></channel></rss>