Class ArtifactStoreFunctions

java.lang.Object
com.netflix.spinnaker.kork.expressions.functions.ArtifactStoreFunctions
All Implemented Interfaces:
com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider, com.netflix.spinnaker.kork.plugins.api.internal.SpinnakerExtensionPoint, org.pf4j.ExtensionPoint

public class ArtifactStoreFunctions extends Object implements com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider
Houses all SpEL related functions that deal specifically with the artifact store
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider

    com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider.FunctionDefinition, com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider.FunctionDocumentation, com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider.FunctionParameter, com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider.Functions, com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider.FunctionUsageExample
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    Used to return the original based64 reference that was stored by the artifact store.
    com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider.Functions
     
    @Nullable String
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.netflix.spinnaker.kork.plugins.api.internal.SpinnakerExtensionPoint

    getExtensionClass, getPluginId
  • Constructor Details

    • ArtifactStoreFunctions

      public ArtifactStoreFunctions()
  • Method Details

    • getNamespace

      @Nullable public @Nullable String getNamespace()
      Specified by:
      getNamespace in interface com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider
    • fetchReference

      public static String fetchReference(String ref)
      Used to return the original based64 reference that was stored by the artifact store. It's important to note that utilizing this SpEL function will balloon the context, e.g. increasing the size of the execution context.

      ${ #fetchReference(#stage('Bake Manifest').context.artifacts[0].reference) }

    • getFunctions

      public com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider.Functions getFunctions()
      Specified by:
      getFunctions in interface com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider