For the complete documentation index, see llms.txt. This page is also available as Markdown.

Expressions

Expressions provide dynamic values to your pipeline at runtime.

Harness Open Source provides variables that can be referenced in expressions and conditions. Expressions are also used to reference secrets.

Variables

Variables can be referenced throughout your pipeline with the expression syntax ${{ variable.name }}.

This pipeline sends a message to slack containing the build number after the test step completes.

kind: pipeline
spec:
  stages:
  - type: ci
    spec:
      steps:
      - name: test
        type: run
        spec:
          container: maven:3-jdk-10
          script: |-
            mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V

      - name: notify
        type: plugin
        spec:
          name: slack
          inputs:
            template: build number ${{ build.number }} completed
            webhook: ${{ secrets.get("slack_webhook") }}

This pipeline prints all files changed in the commit range based on the before and after commits.

Last updated

Was this helpful?