Trigger the Hello World example pipeline

Now that you have successfully installed the Codefresh runtime, you can trigger one of the Hello World demo pipelines included in the runtime package. The two Hello World example pipelines are triggered by different event conditions:

  • Git (GitHub) event
  • Calendar (cron) event

For the quick start, let’s focus on the github/hello-world pipeline.

Create a PAT token

To commit resources for the github/hello-world pipeline, you need to add a PAT to Codefresh.

  1. Create your personal token with a valid expiration date and scope with base64 encoding.
    For the pipeline, you need repo and admin-repo.hook scopes:

GitHub PAT permissions for Hello World pipeline

GitHub PAT permissions for Hello World pipeline
  1. In the Codefresh UI, go to User Settings, add your token.

View pipelines

View the pipelines in Codefresh.

  1. In the Codefresh UI, go to Delivery Pipelines.

Demo pipelines in the Pipelines page

Demo pipelines in the Pipelines page
  • The github/hello-world pipeline has not been triggered as it requires a Git event to trigger it.
  • The cron/hello-world pipeline shows statistics as it has already been triggered based on the cron interval.

View and update manifest

As we don’t have a workflow for this pipeline, you will configure the Git Source resource in the pipeline’s Manifest tab.

  1. In the Pipelines page, to drill down, select the pipeline name.
  2. Select the Manifest tab, and click the arrowhead to expand the resource view.

Expand resource view in Mainfests tab

Expand resource view in Mainfests tab

You can see these resources:

  • Event Source (event-source.git-source.yaml).
  • Sensor (sensor.git-source.yaml)
  • Workflow Template (workflow-template.hellow-world.yaml)

The pipeline is configured to run on a PUSH event in the Git repository.

Codefresh does the following:

  • Commits the changes to your Git repository.
  • Synchronizes the changes in Git back to your cluster, and updates the event-source.git-source resource.
  • Triggers this pipeline after the PUSH event to your repository.
  • Creates a workflow. View it in the UI, in the Workflows dashboard.
    Select view workflow details to see the workflow log.

What to do next

Create a basic CI pipeline