Step 4: Define a Pipeline

JFrog Hosting Models Documentation

Content Type
User Guide

This step will walk you through creating a simple automated CI/CD pipeline with JFrog Pipelines.

  1. Add an Artifactory integration.

    Your Pipeline will be consuming and producing artifacts/builds. First, we need to connect your Artifactory instance to it.

    1. Generate and copy an API Keyfrom yourUser Profile, by clicking on the admin username on the top right and selecting Edit Profile.

    2. Navigate to the Application Module. Click on the Pipelines menu and the Integrations menu item.

    3. Create a new integration called “art” of type Artifactory, with the url “<JFrog Cloud Platform URL>/artifactory” (e.g. “https://<server_name>., User “admin”, and the API Key you just copied.

  2. Add a GitHub integration.

    Your pipeline will execute a YAML file stored in GitHub.

    1. Log in to your GitHub account and generate a new personal access tokencalled “pipelines-token” that has all scopes selected.

    2. In the JFrog Platform, navigate back to the Application module, create a new integration called “my_github” of type GitHub, with the Token you just created in your GitHub account.

  3. Create your first sample pipeline triggering GitHub.

    1. Fork the JFrog Github Pipeline, containing a simple YAML example of a pre-defined pipeline.

    2. Update the pipeline definition by editing the pipelines.yml file, and changing the path from: “jfrog/jfrog-pipelines-simple-example” to your forked GitHub repository: “<github_user_name>/jfrog-pipelines-simple-example”.

      updating the pipeline definition.png
  4. Add a pipeline source.

    1. Navigate back to the Application module, in the Platform UI, expand the Pipelines menu and the Pipeline Sources menu item. Add a pipeline source as outlined in the Adding a Pipeline Source section..

  5. Manually trigger the pipeline.

    1. Navigate to the Application module, expand the Pipelines menu and click the My Pipelines menu item. Click on the basic_pipeline, click on step_1 and trigger the step.

      manually trigger the pipeline.png

Congratulations! You’re all set and ready to continue exploring the JFrog Platform.