A pipeline defines an application deployment flow consisting of one or more stages.
You can create a pipeline by clicking + Create Pipeline, or you can create a pipeline by uploading a pipeline template file.
In Pipeline Management, click + Create Pipeline.
In the Create Pipeline modal window, enter a pipeline name and pipeline description , then click Confirm.
Alternatively, you can create a pipeline with a pipeline template file (pipeline templates use JSON files).
After you upload the pipeline template file, click Confirm.
Pipeline Studio is the page where users can manage basic information about their pipelines, or add, change, or delete the stages that make up a pipeline.
At the top of Pipeline Studio, you'll see basic information about the pipeline: its name, description, last modified date, and creator.
In the Pipeline Studio panel, you can see the stages that make up that pipeline.
You can enter edit mode by clicking the edit mode toggle in the top right corner. In the edit mode, you can add, change, delete, and reposition stages.
When you enable Edit Mode, the left side exposes the Source, Build, Deploy, and Feature groups, which are organized into different stages that you can use to organize your application deployment flow.
You can select the stages you want to add from the four groups and drag and drop them onto the screen.
When a stage is added, select it to enter the required information.
Set the order of execution by concatenating the stages to run before and the stages to add.
You can click Save pipelinein the top right corner to finish adding stages.
You can edit a stage by enabling edit modeand then clicking the stage you want to edit.
After you've finished editing, you can click Save Pipeline in the top right corner to finalize your stage edits.
You can delete a stage by activating edit modeand clicking X at the top right on the stage you want to delete.
After deleting, you can click Save Pipeline in the upper right corner to finalize the stage deletion.
Pipelines can be run manually or automatically.
Manual run allows you to run your pipeline when you want.
In Pipeline Management, click ▶ Run︎, and when the Run Pipeline modal window appears, check out the contents and click Confirm.
Autorun lets you configure your pipeline to run automatically when an event occurs in your GitHub or GitLab repository or when a container image in your image registry is updated.
Click Autorun Settings, and then click Add in the Autorun Settings modal pane.
You can use the GitHub webhook to set up a pipeline to run automatically when an event occurs in a repository on GitHub or GitHub Enterprise. Set the autorun type to GitHub, enter the repository's organization name or username, project name, branch or tag, and secret, and click OK.
To set up an autorun with a tag, enter the tag name in the branch or tag entry, such as refs/tags/tagname
. You can use a JAVA regular expression for the tag name
part.
After setting up autorun with tags, builds are performed with the tags set when using the NHN Cloud build tool. To perform builds with tags in the Build - Jenkins stage, you need to set the following settings.
Set the parameters in Jenkins as follows.
In Pipeline's build tool settings, in the Build Job Parameter, enter the following
Item | Setting value |
---|---|
Payload URL | https://kr1-pipeline.api.nhncloudservice.com/webhooks/git/github |
Content type | application/json |
Secret | The value entered in the secret of the pipeline autorun settings |
event | push event, create event(When using tags) |
You can set certain files to autorun only when they are pushed (up to 5).
Source repository nameselects the source repository you registered with in Preferences. GitHub file path is the path that contains the file in the selected source repository.
You can use the GitLab webhook to set up a pipeline to run automatically when an event occurs in your GitLab repository. Set the autorun type to GitLab, enter the repository's organization or username, project name, branch, or tag, and click Confirm. Support for setting GitLab secrets is coming in the future.
Item | Setting value |
---|---|
URL | https://kr1-pipeline.api.nhncloudservice.com/webhooks/git/gitlab |
Trigger | Select Push events |
Secret | Do not set |
SSL verification | Select Enable SSL verification |
When setting autorun with GitLab's user name, make sure to set the user name to be the same as GitLab's user name. If the user name is set differently, autorun may not work.
If you want the pipeline to run automatically when the container image is updated, set Image Registry for Autorun Type.
After selecting the image registry registered in the environment settings, enter Image Name. Enter the image name in the form of registry name/image name
for NHN Cloud container registry.
For Docker Hub, enter in the form of docker hub account/image name
. Tag can use JAVA regular expression and is automatically executed when a tag matching the entered tag is pushed.
If you do not enter a tag, it will be automatically executed when a new tag except latest is pushed.
When finished, click Confirm.
When you create a new pipeline, the toggle switch for autorun is off. To run the pipeline automatically, you must click the Auto-run toggle switch to enable it.
Users can modify basic information in the pipeline.
You can edit the name and description of a pipeline by clicking the edit icon next to the pipeline name.
After you edit the information, you can click Confirm to finalize your edits.
You can click ▶ Manual Run to run the pipeline, or ■ Stop Running to stop a pipeline that is running.
To view basic information about the pipeline's most recent run and the status of the run for each stage, click Recent Run Details.
You can modify the JSON to change the pipeline.
You can view the pipeline in JSON format by clicking Pipeline Version.
You can view by modification date by clicking the drop-down button in the top left that shows the pipeline modification date.
You can save it as a JSON file by clicking Download Pipeline Templatein the top right corner.
You can click Edit to modify the JSON file directly on the screen.