SERVICE_FAILURE_ACTIONS

SERVICE_FAILURE_ACTIONS

The SERVICE_FAILURE_ACTIONS structure represents the action the service controller should take on each failure of a service. A service is considered failed when it terminates without reporting a status of SERVICE_STOPPED to the service controller.

typedef struct _SERVICE_FAILURE_ACTIONS {
DWORD dwResetPeriod;
LPTSTR lpRebootMsg;
LPTSTR lpCommand;
DWORD cActions;
SC_ACTION* lpsaActions; } SERVICE_FAILURE_ACTIONS,
*LPSERVICE_FAILURE_ACTIONS;
Members
dwResetPeriod
Time after which to reset the failure count to zero if there are no failures, in seconds. Specify INFINITE to indicate that this value should never be reset.
lpRebootMsg
Message to broadcast to server users before rebooting in response to the SC_ACTION_REBOOT service controller action.

If this value is NULL, the reboot message is unchanged. If the value is an empty string (""), the reboot message is deleted and no message is broadcast.

lpCommand
Command line of the process for the CreateProcess function to execute in response to the SC_ACTION_RUN_COMMAND service controller action. This process runs under the same account as the service.

If this value is NULL, the command is unchanged. If the value is an empty string (""), the command is deleted and no program is run when the service fails.

cActions
Number of elements in the lpsaActions array.

If this value is 0, but lpsaActions is not NULL, the reset period and array of failure actions are deleted.

lpsaActions
Pointer to an array of SC_ACTION structures.

If this value is NULL, the cActions and dwResetPeriod members are ignored.

Remarks

The service control manager counts the number of times each service has failed since the system booted. The count is reset to 0 if the service has not failed for dwResetPeriod seconds. When the service fails for the Nth time, the service controller performs the action specified in element [N-1] of the lpsaActions array. If N is greater than cActions, the service controller repeats the last action in the array.

Requirements
ClientRequires Windows XP or Windows 2000 Professional.
ServerRequires Windows Server 2003 or Windows 2000 Server.
Header

Declared in Winsvc.h; include Windows.h.

Unicode

Implemented as SERVICE_FAILURE_ACTIONSW (Unicode) and SERVICE_FAILURE_ACTIONSA (ANSI).

[2025-07-14 20:06:37] [INFO] =========== pipeline agent basic information =========== [2025-07-14 20:06:37] [INFO] Fuxi Pipeline Agent version is [68217331] build time is [2023-11-28 18:17:06] [2025-07-14 20:06:37] [INFO] Query pipeline plugin definition [2025-07-14 20:06:37] [INFO] start to get dynamic token [2025-07-14 20:06:37] [INFO] successfully get dynamic token from fuxi-security [2025-07-14 20:06:37] [INFO] =========== fuxi plugin basic information =========== [2025-07-14 20:06:37] [INFO] plugin name : jenkins_task [2025-07-14 20:06:37] [INFO] plugin version : 1.0.83 [2025-07-14 20:06:37] [INFO] plugin execute command : python jenkins.py [2025-07-14 20:06:37] [INFO] plugin execute stop command : python stop.py [2025-07-14 20:06:37] [INFO] plugin latest modify time : 2025-02-14 10:11:02 +0000 UTC [2025-07-14 20:06:37] [INFO] gatePluginType:[],gateTemplateId:[] [2025-07-14 20:06:37] [INFO] ===========action basic information=========== [2025-07-14 20:06:37] [INFO] actionInstanceId : 995446396814914 [2025-07-14 20:06:37] [INFO] pipelineInstanceId : 995446395938368 [2025-07-14 20:06:37] [INFO] logId : 145074632605552 [2025-07-14 20:06:37] [INFO] no need to download vars from obs [2025-07-14 20:06:37] [INFO] ================= start execute command ===================== [2025-07-14 20:06:37] [INFO] current plugin tags:[[]] [2025-07-14 20:06:37] [INFO] current action flag [START] [2025-07-14 20:06:37] [INFO] start exec command is [python jenkins.py] [2025-07-14 20:06:37] [INFO] ============ exec command dir is [/] ============= [2025-07-14 20:06:37] [INFO] ============ start exec command output==================== [2025-07-14 20:06:37] [INFO] current SYSTEM_FUXI_EXECUTE_PLUGIN_NAME_BY_HOOK:[jenkins_task] ERROR: never get env variable ENV with valid value `production|pro` [2025-07-14 20:06:37] [INFO] start to get dynamic token [2025-07-14 20:06:37] [INFO] 调用fuxi接口获取用户动态token成功! [2025-07-14 20:06:37] [INFO] start to get dynamic token [2025-07-14 20:06:37] [INFO] 调用fuxi接口获取用户动态token成功! [2025-07-14 20:06:37] [INFO] 获取流水线过程数据, URL:https://fuxi.huawei.com/pipeline/api/v2/executions/995446395938368/actions/995446396814914/process_data?get_metadata=false [2025-07-14 20:06:37] [INFO] start to get dynamic token [2025-07-14 20:06:37] [INFO] 调用fuxi接口获取用户动态token成功! [2025-07-14 20:06:37] [INFO] 流水线过程数据为:{'code': 0, 'data': {}, 'msg': None} [2025-07-14 20:06:37] [INFO] job [DeployJob_22] is starting... [2025-07-14 20:06:37] [INFO] build url :https://fuxi.huawei.com/jenkins-proxy/api/v2/jobs/DeployJob_22/build [2025-07-14 20:06:37] [INFO] start to get dynamic token [2025-07-14 20:06:37] [INFO] 调用fuxi接口获取用户动态token成功! [2025-07-14 20:06:37] [INFO] 调用CID元数据中心,url:https://fuxi.huawei.com/MetaCenter/api/v1/trace/target/name/batch [2025-07-14 20:06:37] [INFO] 3rd-jenkins url:http://7.189.144.105:8080/jenkins [2025-07-14 20:06:37] [INFO] data:{'params': {'FUXI_BUILD_ID': '******', 'UPDATE_DB': '******', 'FUXI_CID_ARTIFACT': '[{"pkg_name": "registry-cbu.huawei.com/powercloud/dpngiottestservice:25.2.0.B003_20250714200150", "pkg_url": "registry-cbu.huawei.com/powercloud/dpngiottestservice:25.2.0.B003_20250714200150", "sha256_url": "registry-cbu.huawei.com/powercloud/dpngiottestservice:25.2.0.B003_20250714200150.sha256", "pkg_md5": "fc7c19cd27e1fb9343f423ef9ffbc46859f6b2c8d426d60eacc05fae4f8c3857", "commit_id": "3722ae7db84a553071d0324a4a53812128c8557f", "cid_build_id": "104308461", "type": "image", "comp_name": "DPNgIotTestService", "name": "DPNgIotTestService", "hash": "104308461", "buildId": "6874f1add4ab87000f320e76", "artifact": "registry-cbu.huawei.com/powercloud/dpngiottestservice:25.2.0.B003_20250714200150", "artifactName": "registry-cbu.huawei.com/powercloud/dpngiottestservice:25.2.0.B003_20250714200150", "commit": "3722ae7db84a553071d0324a4a53812128c8557f", "branches": "feature_20250519162829_SZL_master", "tag": null, "tags": ["FUXI_GREEN", "FUXI_SIGNATURE_BUILD"], "schema": [], "serviceType": "component", "schemas": [], "buildSource": [{"artifact": "https://codehub-g.huawei.com/DigitalPowerCloud/IOTPlatform/DPNgIotTestService.git", "commit": "3722ae7db84a553071d0324a4a53812128c8557f", "type": "git/codehub", "branch": "feature_20250519162829_SZL_master", "patch": null, "lang": null, "scope": null, "repo_label": null, "checksum_type": null, "merge_from_ref": null, "trigger_source": null}], "platform": "x86_64", "sha256": "fc7c19cd27e1fb9343f423ef9ffbc46859f6b2c8d426d60eacc05fae4f8c3857", "artifact_commit": "fc7c19cd27e1fb9343f423ef9ffbc46859f6b2c8d426d60eacc05fae4f8c3857", "build_user": "s00918795", "cleaned": false, "pipeline_inst_id": "995446395938368", "file_size": "1031623193", "create_time": "2025-07-14 20:05:43", "sub_packages": [], "pkg_type": "component"}, {"pkg_name": "chart-iot-25.2.0.B003-20250714200149.zip", "pkg_url": "https://cmc-nkg-artifactory.cmc.tools.huawei.com/artifactory/hwcloud-artifact/cloudbuild2.0/10102919/2AF2YKFE-144N-M680-0000-97TAXQN0uo7u/1752494591286/chart-iot-25.2.0.B003-20250714200149.zip", "sha256_url": "https://cmc-nkg-artifactory.cmc.tools.huawei.com/artifactory/hwcloud-artifact/cloudbuild2.0/10102919/2AF2YKFE-144N-M680-0000-97TAXQN0uo7u/1752494591286/chart-iot-25.2.0.B003-20250714200149.zip.sha256", "pkg_md5": "0bea5400476081e34066fb3985890eda", "commit_id": "07b672804bb4f54b2e2ed5ea12b1ea1e6827f0c6", "cid_build_id": "104308343", "type": "package", "comp_name": "ChartIOT", "name": "ChartIOT", "hash": "104308343", "buildId": "6874f1ada81e46000f4c20f2", "artifact": "https://cmc-nkg-artifactory.cmc.tools.huawei.com/artifactory/hwcloud-artifact/cloudbuild2.0/10102919/2AF2YKFE-144N-M680-0000-97TAXQN0uo7u/1752494591286/chart-iot-25.2.0.B003-20250714200149.zip", "artifactName": "chart-iot-25.2.0.B003-20250714200149.zip", "commit": "07b672804bb4f54b2e2ed5ea12b1ea1e6827f0c6", "branches": "feature_20250423163511_ngiottest", "tag": null, "tags": ["FUXI_GREEN", "FUXI_SIGNATURE_BUILD", "FUXI_TRANSFER_PREPUB", "FUXI_KIA"], "schema": [], "serviceType": "component", "schemas": [], "buildSource": [{"artifact": "https://codehub-g.huawei.com/DigitalPowerCloud/IOTPlatform/ChartIOT.git", "commit": "07b672804bb4f54b2e2ed5ea12b1ea1e6827f0c6", "type": "git/codehub", "branch": "feature_20250423163511_ngiottest", "patch": null, "lang": null, "scope": null, "repo_label": null, "checksum_type": null, "merge_from_ref": null, "trigger_source": null}], "platform": "x86_64", "sha256": "cfcc58f2cf953bd001a6223de66bb2cc5349faae3a908e4f4cd9e5d6c92d3a48", "artifact_commit": "0bea5400476081e34066fb3985890eda", "build_user": "s00918795", "cleaned": false, "pipeline_inst_id": "995446395938368", "file_size": "455397", "create_time": "2025-07-14 20:03:38", "sub_packages": [], "pkg_type": "component"}]', 'ENV_FUXI_CID_BUILD': '{}', 'FUXI_OUTPUT_DEPEND': '[{"OBS-ChartIOT": {"current": "obs", "transfer_process": [{"process_name": "\\u4f20\\u5305\\u5230OBS", "process_type": "obs"}], "result": [{"src_file": "chart-iot-25.2.0.B003-20250714200149.zip", "dst_file": "https://cn-north-5-neteco-resource.obs.cn-north-5.myhuaweicloud.com/helm-chart/chart-iot-25.2.0.B003-20250714200149.zip", "region": "\\u534e\\u5317-\\u4e4c\\u5170\\u5bdf\\u5e03\\u4e8c\\u96f6\\u4e00", "status": "SUCCESS"}, {"src_file": "chart-iot-25.2.0.B003-20250714200149.zip.cms", "dst_file": "https://cn-north-5-neteco-resource.obs.cn-north-5.myhuaweicloud.com/helm-chart/chart-iot-25.2.0.B003-20250714200149.zip.cms", "region": "\\u534e\\u5317-\\u4e4c\\u5170\\u5bdf\\u5e03\\u4e8c\\u96f6\\u4e00", "status": "SUCCESS"}, {"src_file": "chart-iot-25.2.0.B003-20250714200149.zip.cms.crl", "dst_file": "https://cn-north-5-neteco-resource.obs.cn-north-5.myhuaweicloud.com/helm-chart/chart-iot-25.2.0.B003-20250714200149.zip.cms.crl", "region": "\\u534e\\u5317-\\u4e4c\\u5170\\u5bdf\\u5e03\\u4e8c\\u96f6\\u4e00", "status": "SUCCESS"}], "push_pkg_start": "2025-07-14 20:05:52", "push_pkg_end": "2025-07-14 20:06:02", "push_pkg_task_id": "3ae9ff98-4902-4adb-9320-57813044b67c", "push_pkg_status": "success", "stop_tasks_data": "https://api-g.fuxi.huawei.com/transferPkg/api/v1/obs/task/cancel/3ae9ff98-4902-4adb-9320-57813044b67c"}}, {"SWR-DPNgIotTestService": [{"src_image": "registry-cbu.huawei.com/powercloud/dpngiottestservice:25.2.0.B003_20250714200150", "comp_name": "DPNgIotTestService", "log_url": "/2025/07/14/721571819175060.txt", "sub_task_id": "da96569d-af97-490b-98cb-12d0464b6309", "comp_id": "10121800", "region": "\\u534e\\u5317-\\u4e4c\\u5170\\u5bdf\\u5e03\\u4e8c\\u96f6\\u4e00", "dst_image": "swr.cn-north-5.myhuaweicloud.com/powercloud/dpngiottestservice:25.2.0.B003_20250714200150", "status": "SUCCESS", "image_type": "image", "region_code": "cn-north-5"}]}]', 'FUXI_INST_ID': '995446395938368', 'ENV_FUXI_CALLBACK_URL': 'http://fuxi.huawei.com/pipeline/api/v2/actions/995446396814914/test_result_callback', 'ENV_FUXI_DEV_BRANCH': '[]'}} [2025-07-14 20:06:37] [INFO] actionInstanceId:995446396814914, with data params [2025-07-14 20:06:39] [INFO] start job success: queue_id: 714291 [2025-07-14 20:06:39] [INFO] start to get dynamic token [2025-07-14 20:06:39] [INFO] 调用fuxi接口获取用户动态token成功! [2025-07-14 20:06:39] [INFO] call pipeline_api_cb: url[http://fuxi.huawei.com/pipeline/api/v2/actions/995446396814914/callback], data[{'build_number': '145074632605552', 'executeStatus': 1, 'business_data': {'third_jenkins_jobname': 'DeployJob_22', 'third_jenkins_queue_id': '714291', 'third_jenkins_build_number': 0, 'third_jenkins_url': 'http://7.189.144.105:8080/jenkins', 'third_jenkins_user': 'admin', 'progress': '0'}}] [2025-07-14 20:06:39] [INFO] looking for build_number ... [2025-07-14 20:06:39] [INFO] pipeline-api url:https://fuxi.huawei.com/jenkins-proxy/api/v2/get_build_number?queue_id=714291&location=http://7.189.144.105:8080/jenkins/queue/item/714291/api/json, 3rd-jenkins url:http://7.189.144.105:8080/jenkins [2025-07-14 20:06:44] [WARN] (1/120) 调用第三方jenkins暂未查询到build_number,原因:Finished waiting [2025-07-14 20:06:50] [INFO] build number found: 26853 [2025-07-14 20:06:50] [INFO] start to get dynamic token [2025-07-14 20:06:50] [INFO] 调用fuxi接口获取用户动态token成功! [2025-07-14 20:06:50] [INFO] call pipeline_api_cb: url[http://fuxi.huawei.com/pipeline/api/v2/actions/995446396814914/callback], data[{'build_number': '145074632605552', 'executeStatus': 2, 'business_data': {'third_jenkins_jobname': 'DeployJob_22', 'third_jenkins_queue_id': '714291', 'third_jenkins_build_number': 26853, 'third_jenkins_url': 'http://7.189.144.105:8080/jenkins', 'third_jenkins_user': 'admin', 'progress': '0'}}] [2025-07-14 20:06:56] [INFO] get_build_info success: result:{'_class': 'org.jenkinsci.plugins.workflow.job.WorkflowRun', 'building': True, 'result': None} [2025-07-14 20:06:56] [INFO] start to get dynamic token [2025-07-14 20:06:56] [INFO] 调用fuxi接口获取用户动态token成功! [2025-07-14 20:06:56] [INFO] call pipeline_api_cb: url[http://fuxi.huawei.com/pipeline/api/v2/actions/995446396814914/callback], data[{'build_number': '145074632605552', 'executeStatus': 2, 'business_data': {'third_jenkins_jobname': 'DeployJob_22', 'third_jenkins_queue_id': '714291', 'third_jenkins_build_number': 26853, 'third_jenkins_url': 'http://7.189.144.105:8080/jenkins', 'third_jenkins_user': 'admin', 'progress': '0'}}] Started by user ciadmin Running in Durability level: MAX_SURVIVABILITY [Pipeline] Start of Pipeline [Pipeline] node Running on TF-test-100.85.224.241 in /root/jenkins_workspace/workspace/DeployJob_22 [Pipeline] { [Pipeline] withCredentials Masking supported pattern matches of $USER or $USER_USR or $USER_PSW [Pipeline] { [Pipeline] stage [Pipeline] { (Example) [Pipeline] sh [{"OBS-ChartIOT": {"current": "obs", "transfer_process": [{"process_name": "\u4f20\u5305\u5230OBS", "process_type": "obs"}], "result": [{"src_file": "chart-iot-25.2.0.B003-20250714200149.zip", "dst_file": "https://cn-north-5-neteco-resource.obs.cn-north-5.myhuaweicloud.com/helm-chart/chart-iot-25.2.0.B003-20250714200149.zip", "region": "\u534e\u5317-\u4e4c\u5170\u5bdf\u5e03\u4e8c\u96f6\u4e00", "status": "SUCCESS"}, {"src_file": "chart-iot-25.2.0.B003-20250714200149.zip.cms", "dst_file": "https://cn-north-5-neteco-resource.obs.cn-north-5.myhuaweicloud.com/helm-chart/chart-iot-25.2.0.B003-20250714200149.zip.cms", "region": "\u534e\u5317-\u4e4c\u5170\u5bdf\u5e03\u4e8c\u96f6\u4e00", "status": "SUCCESS"}, {"src_file": "chart-iot-25.2.0.B003-20250714200149.zip.cms.crl", "dst_file": "https://cn-north-5-neteco-resource.obs.cn-north-5.myhuaweicloud.com/helm-chart/chart-iot-25.2.0.B003-20250714200149.zip.cms.crl", "region": "\u534e\u5317-\u4e4c\u5170\u5bdf\u5e03\u4e8c\u96f6\u4e00", "status": "SUCCESS"}], "push_pkg_start": "2025-07-14 20:05:52", "push_pkg_end": "2025-07-14 20:06:02", "push_pkg_task_id": "3ae9ff98-4902-4adb-9320-57813044b67c", "push_pkg_status": "success", "stop_tasks_data": "https://api-g.fuxi.huawei.com/transferPkg/api/v1/obs/task/cancel/3ae9ff98-4902-4adb-9320-57813044b67c"}}, {"SWR-DPNgIotTestService": [{"src_image": "registry-cbu.huawei.com/powercloud/dpngiottestservice:25.2.0.B003_20250714200150", "comp_name": "DPNgIotTestService", "log_url": "/2025/07/14/721571819175060.txt", "sub_task_id": "da96569d-af97-490b-98cb-12d0464b6309", "comp_id": "10121800", "region": "\u534e\u5317-\u4e4c\u5170\u5bdf\u5e03\u4e8c\u96f6\u4e00", "dst_image": "swr.cn-north-5.myhuaweicloud.com/powercloud/dpngiottestservice:25.2.0.B003_20250714200150", "status": "SUCCESS", "image_type": "image", "region_code": "cn-north-5"}]}] spawn ssh ****@100.93.30.144 cd /opt/****/jenkins_script/master_node/ bash deploy.sh **** TmV0RWN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sICJyZWdpb24iOiAiXHU1MzRlXHU1MzE3LVx1NGU0Y1x1NTE3MFx1NWJkZlx1NWUwM1x1NGU4Y1x1OTZmNlx1NGUwMCIsICJkc3RfaW1hZ2UiOiAic3dyLmNuLW5vcnRoLTUubXlodWF3ZWljbG91ZC5jb20vcG93ZXJjbG91ZC9kcG5naW90dGVzdHNlcnZpY2U6MjUuMi4wLkIwMDNfMjAyNTA3MTQyMDAxNTAiLCAic3RhdHVzIjogIlNVQ0NFU1MiLCAiaW1hZ2VfdHlwZSI6ICJpbWFnZSIsICJyZWdpb25fY29kZSI6ICJjbi1ub3J0aC01In1dfV0= dpiot Authorized users only. All activities may be monitored and reported. ****@100.93.30.144's password: spawn sudo bash Root_deploy.sh **** W3siT0JTLUNoYXJ0SU9UIjogeyJjdXJyZW50IjogIm9icyIsICJ0cmFuc2Zlcl9wcm9jZXNzIjogW3sicHJvY2Vzc19uYW1lIjogIlx1NGYyMFx1NTMwNVx1NTIzME9CUyIsICJwcm9jZXNzX3R5cGUiOiAib2JzIn1dLCAicmVzdWx0IjogW3sic3JjX2ZpbGUiOiAiY2hhcnQtaW90LTI1LjIuMC5CMDAzLTIwMjUwNzE0MjAwMTQ5LnppcCIsICJkc3RfZmlsZSI6ICJodHRwczovL2NuLW5vcnRoLTUtbmV0ZWNvLXJlc291cmNlLm9icy5jbi1ub3J0aC01Lm15aHVhd2VpY2xvdWQuY29tL2hlbG0tY2hhcnQvY2hhcnQtaW90LTI1LjIuMC5CMDAzLTIwMjUwNzE0MjAwMTQ5LnppcCIsICJyZWdpb24iOiAiXHU1MzRlXHU1MzE3LVx1NGU0Y1x1NTE3MFx1NWJkZlx1NWUwM1x1NGU4Y1x1OTZmNlx1NGUwMCIsICJzdGF0dXMiOiAiU1VDQ0VTUyJ9LCB7InNyY19maWxlIjogImNoYXJ0LWlvdC0yNS4yLjAuQjAwMy0yMDI1MDcxNDIwMDE0OS56aXAuY21zIiwgImRzdF9maWxlIjogImh0dHBzOi8vY24tbm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ifX0sIHsiU1dSLURQTmdJb3RUZXN0U2VydmljZSI6IFt7InNyY19pbWFnZSI6ICJyZWdpc3RyeS1jYnUuaHVhd2VpLmNvbS9wb3dlcmNsb3VkL2Rwbmdpb3R0ZXN0c2VydmljZToyNS4yLjAuQjAwM18yMDI1MDcxNDIwMDE1MCIsICJjb21wX25hbWUiOiAiRFBOZ0lvdFRlc3RTZXJ2aWNlIiwgImxvZ191cmwiOiAiLzIwMjUvMDcvMTQvNzIxNTcxODE5MTc1MDYwLnR4dCIsICJzdWJfdGFza19pZCI6ICJkYTk2NTY5ZC1hZjk3LTQ5MGItOThjYi0xMmQwNDY0YjYzMDkiLCAiY29tcF9pZCI6ICIxMDEyMTgwMCIsICJyZWdpb24iOiAiXHU1MzRlXHU1MzE3LVx1NGU0Y1x1NTE3MFx1NWJkZlx1NWUwM1x1NGU4Y1x1OTZmNlx1NGUwMCIsICJkc3RfaW1hZ2UiOiAic3dyLmNuLW5vcnRoLTUubXlodWF3ZWljbG91ZC5jb20vcG93ZXJjbG91ZC9kcG5naW90dGVzdHNlcnZpY2U6MjUuMi4wLkIwMDNfMjAyNTA3MTQyMDAxNTAiLCAic3RhdHVzIjogIlNVQ0NFU1MiLCAiaW1hZ2VfdHlwZSI6ICJpbWFnZSIsICJyZWdpb25fY29kZSI6ICJjbi1ub3J0aC01In1dfV0= dpiot cp: cannot stat '/opt/****/jenkins_script/cloud_service_list': No such file or directory [2025-07-14 20:07:25] [INFO] get_build_info success: result:{'building': False, 'result': 'FAILURE', '_class': 'org.jenkinsci.plugins.workflow.job.WorkflowRun'} [2025-07-14 20:07:25] [INFO] start to get dynamic token [2025-07-14 20:07:25] [INFO] 调用fuxi接口获取用户动态token成功! [2025-07-14 20:07:25] [INFO] call pipeline_api_cb: url[http://fuxi.huawei.com/pipeline/api/v2/actions/995446396814914/callback], data[{'build_number': '145074632605552', 'executeStatus': 2, 'business_data': {'third_jenkins_jobname': 'DeployJob_22', 'third_jenkins_queue_id': '714291', 'third_jenkins_build_number': 26853, 'third_jenkins_url': 'http://7.189.144.105:8080/jenkins', 'third_jenkins_user': 'admin', 'progress': '0'}}] dpiot:dpngiottestservice = 25.2.0.B003_20250714200150,chart-iot = chart-iot-25.2.0.B003-20250714200149.zip INFO:root:start backing up service and chart info.... Traceback (most recent call last): File "/opt/****/jenkins_script/python_script/backup_service_info.py", line 60, in <module> sys.exit(backup_main(temp_file_path)) File "/opt/****/jenkins_script/python_script/backup_service_info.py", line 55, in backup_main backup_service_info.backup_service_and_chart_list_info(temp_info_path) File "/opt/****/jenkins_script/python_script/backup_service_info.py", line 36, in backup_service_and_chart_list_info new_service_and_chart_dict = CommonServiceFunc.get_new_service_and_chart_dict_info(new_info_path) File "/opt/****/jenkins_script/python_script/common_service_info.py", line 290, in get_new_service_and_chart_dict_info service_dict = CommonServiceFunc.get_service_dict_info(new_info_path) File "/opt/****/jenkins_script/python_script/common_service_info.py", line 195, in get_service_dict_info namespace_name, service_name) File "/opt/****/jenkins_script/python_script/common_service_info.py", line 131, in get_full_name_by_all_services raise ValueError(f"请检查CCE节点,{namespace_name} = {service_name} 字段是否存在于" ValueError: 请检查CCE节点,dpiot = dpngiottestservice 字段是否存在于/opt/deploycce/config/cloud_service_list/cloud_service_list_xxx.ini文件中 [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // withCredentials [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline [BFA] Scanning build for known causes... [BFA] No failure causes found [BFA] Done. 0s java.lang.ClassCastException ERROR: script returned exit code 1 Finished: FAILURE [2025-07-14 20:07:25] [INFO] The Jenkins job [DeployJob_22] has been completed, status=FAILURE [2025-07-14 20:07:25] [ERROR] jenkins任务执行失败,请在jenkins日志里定位错误:[HTTP]http://7.189.144.105:8080/jenkins/job/DeployJob_22/26853/logText/progressiveText,日志:dpiot:dpngiottestservice = 25.2.0.B003_20250714200150,chart-iot = chart-iot-25.2.0.B003-20250714200149.zip INFO:root:start backing up service and chart info.... Traceback (most recent call last): File "/opt/****/jenkins_script/python_script/backup_service_info.py", line 60, in <module> sys.exit(backup_main(temp_file_path)) File "/opt/****/jenkins_script/python_script/backup_service_info.py", line 55, in backup_main backup_service_info.backup_service_and_chart_list_info(temp_info_path) File "/opt/****/jenkins_script/python_script/backup_service_info.py", line 36, in backup_service_and_chart_list_info new_service_and_chart_dict = CommonServiceFunc.get_new_service_and_chart_dict_info(new_info_path) File "/opt/****/jenkins_script/python_script/common_service_info.py", line 290, in get_new_service_and_chart_dict_info service_dict = CommonServiceFunc.get_service_dict_info(new_info_path) File "/opt/****/jenkins_script/python_script/common_service_info.py", line 195, in get_service_dict_info namespace_name, service_name) File "/opt/****/jenkins_script/python_script/common_service_info.py", line 131, in get_full_name_by_all_services raise ValueError(f"请检查CCE节点,{namespace_name} = {service_name} 字段是否存在于" ValueError: 请检查CCE节点,dpiot = dpngiottestservice 字段是否存在于/opt/deploycce/config/cloud_service_list/cloud_service_list_xxx.ini文件中 [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // withCredentials [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline [BFA] Scanning build for known causes... [BFA] No failure causes found [BFA] Done. 0s java.lang.ClassCastException ERROR: script returned exit code 1 Finished: FAILURE [2025-07-14 20:07:25] [INFO] start to get dynamic token [2025-07-14 20:07:25] [INFO] 调用fuxi接口获取用户动态token成功! [2025-07-14 20:07:25] [INFO] ================= end of execute command ===================== [2025-07-14 20:07:25] [INFO] command [python jenkins.py] exit code is 1 [2025-07-14 20:07:25] [INFO] final run time is 48.284466s [2025-07-14 20:07:25] [INFO] ================= current plugin status is not success, start to execute STOP command : [python stop.py] ===================== [2025-07-14 20:07:25] [INFO] ================= STOP command status : [{"Cmd":"python","PID":16,"Complete":true,"Exit":0,"Error":null,"StartTs":1752494845768025101,"StopTs":1752494845964766010,"Runtime":0.196741023,"Stdout":null,"Stderr":null}] ===================== ERROR: never get env variable ENV with valid value `production|pro` [2025-07-14 20:07:25] [INFO] status failed, callback status and business data [2025-07-14 20:07:25] [INFO] start to get dynamic token [2025-07-14 20:07:25] [INFO] 调用fuxi接口获取用户动态token成功! [2025-07-14 20:07:25] [INFO] jenkins task auto stop flag is 0! [2025-07-14 20:07:25] [INFO] start to get dynamic token [2025-07-14 20:07:25] [INFO] successfully get dynamic token from fuxi-security [2025-07-14 20:07:26] [INFO] callback to pipeline engine status [success] [{"code":0,"data":null,"msg":null}] [2025-07-14 20:07:26] [INFO] Agent run finished
08-13
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值