The content of this page has been automatically translated by AI. If you encounter any problems while reading, you can view the corresponding content in Chinese.

Worker Common Commands

Last updated: 2024-09-05 16:33:54

This article introduces common commands for the qci-worker service.

Prerequisites

Before configuring the CODING-CI build environment, you must activate the CODING DevOps service for your Tencent Cloud account. For details, please refer to Activate Services.

Open Project

1. log in to CODING console, click Team Domain to enter the CODING page.
2. After entering the target project, select Continuous Integration from the left navigation bar

Description of the Feature

When accessing from a Definition build node, the Worker service will be installed in the environment. This service schedules CI build tasks and allocates computing resources. Therefore, being familiar with common commands of the Worker service will help better coordinate CI build tasks. For installation methods on different operating systems, please refer to Definition Nodes.

Common Configuration Item Commands

Signup

qci_worker reg_cci --token token --server server --home home
--token Project Token, required
--server Specified Access Service, not required
--home Specify Working Directory
Example:
qci_worker cci_reg --token db6fd4d6a2fc7d753a2985d55c44a2262f3e543f --server ws://codingcorp.nh113vufq.dev.coding.io --home ~/.codingqci

Startup Services

qci_worker up -d

Restarting Service

qci_worker stop
qci_worker up -d

Manually Delete Node

qci_worker stop #Stop qci_worker
qci_worker remove #Remove Node in Background

Modifying Configuration

To apply the specified Jenkins configuration, you need to stop the Jenkins service process first, then restart the qci_worker service.
qci_worker config JENKINS_HOST=127.0.0.1 #Specify Jenkins startup host
qci_worker config JENKINS_PORT=15740 #Specify Jenkins startup port
qci_worker config JENKINS_ENCODING='UTF-8'
qci_worker config JENKINS_OPT="-Xms4096m -Xmx4096m" #Specify the JVM memory allocation for Jenkins
qci_worker config PACKAGE_AUTO_UPDATE=0 #Turn off auto-updates