tencent cloud

All product documents
Add Deployment Stage to Build Plan
Last updated: 2024-01-03 11:58:24
Add Deployment Stage to Build Plan
Last updated: 2024-01-03 11:58:24
Before you trigger deployment in Continuous Deployment, go to the CODING-CD Console to associate your application with the project.

You can add a deployment stage to a build plan in either of the following ways:
Directly use a build plan template
Add a deployment stage to an existing build plan

Use Build Plan Template

Note:
Associate the cloud account for the relevant cluster in the CODING-CD Console. For more information, see Cloud Accounts.
Click Continuous Deployment in the product section on the left, and then click "Create Build Plan" in the upper-right corner. Under the Deployment category, select the Push to Kubernetes template.

Select the corresponding artifact repository, remote cluster address, and other information as instructed. When you are done, select "Trigger build after creation".

After the setup is complete, you can run the continuous build plan to automate the release process.

Add Deployment Stage

Click Build Plan > Process Configuration to add a deployment stage by using an editor or entering a command.

Graphical editor

Add a deployment stage in the existing build plan settings, and then fill in the image URL, cluster, namespace, etc.


Jenkinsfile

stage('Push to CODING Docker artifact repository') {
steps {
script {
docker.withRegistry(
"${env.CCI_CURRENT_WEB_PROTOCOL}://${env.CODING_DOCKER_REG_HOST}",
"${env.CODING_ARTIFACTS_CREDENTIALS_ID}"
) }
docker.image("${CODING_DOCKER_IMAGE_NAME}:${env.DOCKER_IMAGE_VERSION}").push()

}

}

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon