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

Move inline entities to Git

Convert existing inline entities to remote and save them in Git

You can move your inline pipelines and input sets to Git.

Moving inline entities like pipelines to a Git repository can provide several benefits, including:

  • Version control: By storing the pipelines in a Git repository, you can easily track changes and roll back if necessary.

  • Collaboration: Multiple people can work on pipelines at the same time. This makes it easy to review and merge changes.

  • Reusability: You can pull the pipelines from the Git repository and use it in different projects or environments.

  • Compliance: Storing pipelines in a Git repository can help with compliance and auditing.

  • Flexibility: The pipelines can be run from different environments by using a CI/CD pipeline.

  • Security: Only authorized users can access them.

Move Inline Pipeline

This section explains steps to move an inline pipeline and its associated input sets to Git.

  1. In app.harness.io, go to your project.

  2. Select Pipelines.

  3. Select Move to Git next to the inline pipeline you want to move to Git.

  4. The Move Pipeline to Git dialog opens.

  5. In Git Connector, select or create a Git Connector to the repo for your Project. For more information, see Code Repo Connectors.

IMPORTANT

Connector must use the Enable API access option and Token The Connector must use the Enable API access option and Username and Token authentication. Harness requires the token for API access. Generate the token in your account on the Git provider and add it to Harness as a Secret. Next, use the token in the credentials for the Git Connector.​

For GitHub, the token must have the following scopes:

  1. In Repository, select your repository. There are only a few repositories listed here, so if yours isn't listed, enter its name.

    Create the repository in Git before entering it in Select Repository. Harness does not create the repository for you.

  2. In Git Branch, select your branch. If your branch isn't listed, enter its name since only a select few branches are filled here.

    Create the branch in your repository before entering it in Git Branch. Harness does not create the branch for you.

  3. Harness pre-populates the YAML Path. You can change this path and the file name.

  4. Enter a message in Commit Message.

  5. Select Move to Git.

    Your pipeline now appears in the list as a remote entity with the repository details next to it.

Move Inline Input Sets

After you move your pipeline to Git, you can move your input sets to Git as well.

  1. Go to Input Sets in your pipeline.

  2. Click the 3 dots to the right of the set and click Move to Git

  3. Repeat steps 4-10 for move inline pipeline

Last updated

Was this helpful?