Console Output
Started by user weilikang
Obtained orin-cleanup.jenkinsfile from git http://159.27.226.4/weilikang/jenkinsfiles.git
Loading library jenkinslib@master
Attempting to resolve master from remote references...
> git --version # timeout=10
> git --version # 'git version 2.25.1'
using GIT_ASKPASS to set credentials gitlab_weilk
> git ls-remote -h -- http://159.27.226.4/weilikang/jenkinslib.git # timeout=10
Found match: refs/heads/master revision be37692c70b87cd081ecb3bbecd2a746b2d38daa
The recommended git tool is: NONE
using credential gitlab_weilk
> git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/orin-cleanup@libs/e94781a6efe9f09486b8ea226d2b758971618b049d1fe436de6265fac85ceea3/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url http://159.27.226.4/weilikang/jenkinslib.git # timeout=10
Fetching without tags
Fetching upstream changes from http://159.27.226.4/weilikang/jenkinslib.git
> git --version # timeout=10
> git --version # 'git version 2.25.1'
using GIT_ASKPASS to set credentials gitlab_weilk
> git fetch --no-tags --force --progress -- http://159.27.226.4/weilikang/jenkinslib.git +refs/heads/*:refs/remotes/origin/* # timeout=10
Checking out Revision be37692c70b87cd081ecb3bbecd2a746b2d38daa (master)
> git config core.sparsecheckout # timeout=10
> git checkout -f be37692c70b87cd081ecb3bbecd2a746b2d38daa # timeout=10
Commit message: "Add onlyPost helper and orinRos2Choice onlyPost param"
> git rev-list --no-walk be37692c70b87cd081ecb3bbecd2a746b2d38daa # timeout=10
[Pipeline] Start of Pipeline
[Pipeline] echo
null
[Pipeline] echo
null
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/workspace/orin-cleanup
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
The recommended git tool is: NONE
using credential gitlab_weilk
> git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/orin-cleanup/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url http://159.27.226.4/weilikang/jenkinsfiles.git # timeout=10
Fetching upstream changes from http://159.27.226.4/weilikang/jenkinsfiles.git
> git --version # timeout=10
> git --version # 'git version 2.25.1'
using GIT_ASKPASS to set credentials gitlab_weilk
> git fetch --tags --force --progress -- http://159.27.226.4/weilikang/jenkinsfiles.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision 8c5fb82a6e06c0dbb3c432c0d003f6282693fd19 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 8c5fb82a6e06c0dbb3c432c0d003f6282693fd19 # timeout=10
Commit message: "Update orin-cleanup.jenkinsfile"
> git rev-list --no-walk 8c5fb82a6e06c0dbb3c432c0d003f6282693fd19 # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (checkout)
[Pipeline] script
[Pipeline] {
[Pipeline] echo
rc_dev
[Pipeline] ansiColor
[Pipeline] {
[Pipeline] echo
>>>>>>>>>>拉取orin-cleanup>>>>>>>>>>
[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] sh
+ rm -rf /root/workspace/orin-cleanup/bin /root/workspace/orin-cleanup/cleanup_orin_2026-10-29_10-21-34.zip /root/workspace/orin-cleanup/cron /root/workspace/orin-cleanup/legacy /root/workspace/orin-cleanup/params /root/workspace/orin-cleanup/version.json
[Pipeline] dir
Running in /root/workspace/orin-cleanup
[Pipeline] {
[Pipeline] checkout
The recommended git tool is: NONE
using credential gitlab_ota
> git rev-parse --resolve-git-dir /root/workspace/orin-cleanup/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url http://159.27.226.4/weilikang/orin-cleanup.git # timeout=10
Fetching upstream changes from http://159.27.226.4/weilikang/orin-cleanup.git
> git --version # timeout=10
> git --version # 'git version 2.25.1'
using GIT_ASKPASS to set credentials gitlab_ota
> git fetch --tags --force --progress -- http://159.27.226.4/weilikang/orin-cleanup.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/rc_dev^{commit} # timeout=10
Checking out Revision 9eec662fc5c8006a7407c17f708129d8e7c7f764 (origin/rc_dev)
> git config core.sparsecheckout # timeout=10
> git checkout -f 9eec662fc5c8006a7407c17f708129d8e7c7f764 # timeout=10
Commit message: "feat_out: 1.2.2版本,重写脚本。a.支持自定义配置删除目录。b.修复一些bug。"
> git rev-list --no-walk f6c12bb834ace0fa8b10c72b4d146243d551a432 # timeout=10
[Pipeline] }
[Pipeline] // dir
[Pipeline] sh
+ rm -rf /root/workspace/orin-cleanup@tmp
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (zip->post)
[Pipeline] script
[Pipeline] {
[Pipeline] ansiColor
[Pipeline] {
[Pipeline] echo
>>>>>>>>>>压缩成zip包>>>>>>>>>>
[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] readJSON
[Pipeline] withCredentials
Masking supported pattern matches of $gitlabToken
[Pipeline] {
[Pipeline] httpRequest
Warning: A secret was passed to "httpRequest" using Groovy String interpolation, which is insecure.
Affected argument(s) used the following variable(s): [gitlabToken]
See https://jenkins.io/redirect/groovy-string-interpolation for details.
HttpMethod: GET
URL: http://159.27.226.4/api/v4/projects?search=orin-cleanup&per_page=100
Content-Type: application/json
PRIVATE-TOKEN: *****
Sending request to url: http://159.27.226.4/api/v4/projects?search=orin-cleanup&per_page=100
Response Code: HTTP/1.1 200 OK
Response:
[{"id":2728,"description":"Orin模组的文件自动删除脚本,兼容/senior/log/,/senior/upload/,/senior/app/.firmware/,/home/nvidia/weilk/","name":"Orin Cleanup","name_with_namespace":"weilikang / Orin Cleanup","path":"orin-cleanup","path_with_namespace":"weilikang/orin-cleanup","created_at":"2026-10-28T08:37:34.605Z","default_branch":"main","tag_list":[],"topics":[],"ssh_url_to_repo":"git@159.27.226.4:weilikang/orin-cleanup.git","http_url_to_repo":"http://159.27.226.4/weilikang/orin-cleanup.git","web_url":"http://159.27.226.4/weilikang/orin-cleanup","readme_url":"http://159.27.226.4/weilikang/orin-cleanup/-/blob/main/README.md","avatar_url":null,"forks_count":0,"star_count":0,"last_activity_at":"2026-10-30T03:16:04.391Z","namespace":{"id":41,"name":"weilikang","path":"weilikang","kind":"user","full_path":"weilikang","parent_id":null,"avatar_url":"/uploads/-/system/user/avatar/28/avatar.png","web_url":"http://159.27.226.4/weilikang"},"_links":{"self":"http://159.27.226.4/api/v4/projects/2728","issues":"http://159.27.226.4/api/v4/projects/2728/issues","merge_requests":"http://159.27.226.4/api/v4/projects/2728/merge_requests","repo_branches":"http://159.27.226.4/api/v4/projects/2728/repository/branches","labels":"http://159.27.226.4/api/v4/projects/2728/labels","events":"http://159.27.226.4/api/v4/projects/2728/events","members":"http://159.27.226.4/api/v4/projects/2728/members","cluster_agents":"http://159.27.226.4/api/v4/projects/2728/cluster_agents"},"packages_enabled":true,"empty_repo":false,"archived":false,"visibility":"private","owner":{"id":28,"username":"weilikang","name":"weilikang","state":"active","avatar_url":"http://159.27.226.4/uploads/-/system/user/avatar/28/avatar.png","web_url":"http://159.27.226.4/weilikang"},"resolve_outdated_diff_discussions":false,"container_expiration_policy":{"cadence":"1d","enabled":false,"keep_n":10,"older_than":"90d","name_regex":".*","name_regex_keep":null,"next_run_at":"2026-10-29T08:37:34.664Z"},"issues_enabled":true,"merge_requests_enabled":true,"wiki_enabled":true,"jobs_enabled":true,"snippets_enabled":true,"container_registry_enabled":true,"service_desk_enabled":false,"service_desk_address":null,"can_create_merge_request_in":true,"issues_access_level":"enabled","repository_access_level":"enabled","merge_requests_access_level":"enabled","forking_access_level":"enabled","wiki_access_level":"enabled","builds_access_level":"enabled","snippets_access_level":"enabled","pages_access_level":"private","operations_access_level":"enabled","analytics_access_level":"enabled","container_registry_access_level":"enabled","security_and_compliance_access_level":"private","emails_disabled":null,"shared_runners_enabled":true,"lfs_enabled":true,"creator_id":28,"import_status":"none","open_issues_count":0,"ci_default_git_depth":20,"ci_forward_deployment_enabled":true,"ci_job_token_scope_enabled":false,"ci_separated_caches":true,"public_jobs":true,"build_timeout":3600,"auto_cancel_pending_pipelines":"enabled","build_coverage_regex":null,"ci_config_path":null,"shared_with_groups":[],"only_allow_merge_if_pipeline_succeeds":false,"allow_merge_on_skipped_pipeline":null,"restrict_user_defined_variables":false,"request_access_enabled":true,"only_allow_merge_if_all_discussions_are_resolved":false,"remove_source_branch_after_merge":true,"printing_merge_request_link_enabled":true,"merge_method":"merge","squash_option":"default_off","enforce_auth_checks_on_uploads":true,"suggestion_commit_message":null,"merge_commit_template":null,"squash_commit_template":null,"auto_devops_enabled":true,"auto_devops_deploy_strategy":"continuous","autoclose_referenced_issues":true,"keep_latest_artifact":true,"runner_token_expiration_interval":null,"permissions":{"project_access":{"access_level":30,"notification_level":3},"group_access":null}}]
Success: Status code 200 is in the accepted range: 100:399
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] readJSON
[Pipeline] echo
weilikang/orin-cleanup
[Pipeline] echo
2728
[Pipeline] echo
2728
[Pipeline] dir
Running in /root/workspace/orin-cleanup
[Pipeline] {
[Pipeline] dir
Running in /root/workspace/orin-cleanup
[Pipeline] {
[Pipeline] sh
+ echo -n '{"module":['
[Pipeline] sh
+ git rev-parse --short HEAD
[Pipeline] sh
+ python3 /root/weilk/project/get_git_now.py 2728 9eec662
[Pipeline] echo
"device":"9","device_name":"","type":0,"project":"0"
[Pipeline] sh
+ echo -n '{"repo_name":"orin-cleanup","branch":"rc_dev","time":"2026-10-30_11-20-56","commit_id":"9eec662","version":"","commit_msgs":",IDEuMi4y54mI5pys77yM6YeN5YaZ6ISa5pys44CCYS7mlK/mjIHoh6rlrprkuYnphY3nva7liKDpmaTnm67lvZXjgIJiLuS/ruWkjeS4gOS6m2J1Z+OAgg==,"}],"device":"9","device_name":"","type":0,"project":"0"}'
[Pipeline] sh
+ cat /root/workspace/orin-cleanup/version.json
{"module":[{"repo_name":"orin-cleanup","branch":"rc_dev","time":"2026-10-30_11-20-56","commit_id":"9eec662","version":"","commit_msgs":",IDEuMi4y54mI5pys77yM6YeN5YaZ6ISa5pys44CCYS7mlK/mjIHoh6rlrprkuYnphY3nva7liKDpmaTnm67lvZXjgIJiLuS/ruWkjeS4gOS6m2J1Z+OAgg==,"}],"device":"9","device_name":"","type":0,"project":"0"}
[Pipeline] }
[Pipeline] // dir
[Pipeline] sh
+ zip -rq cleanup_orin_2026-10-30_11-20-58.zip bin/ cron/ legacy/ params/ version.json
[Pipeline] sh
+ ls /root/workspace/orin-cleanup/
bin
cleanup_orin_2026-10-30_11-20-58.zip
cron
legacy
params
version.json
[Pipeline] sh
+ curl -X POST http://172.16.110.138:50080/ota-api/otaUploadFileAndVersion --form 'Content-Type="multipart/form-data"' --form 'file=@"/root/workspace/orin-cleanup/cleanup_orin_2026-10-30_11-20-58.zip"' --form 'version=@"/root/workspace/orin-cleanup/version.json"'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 26589 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 26632 0 43 100 26589 122 75752 --:--:-- --:--:-- --:--:-- 75659
[Pipeline] echo
{"msg":"操作成功","code":200,"data":""}
[Pipeline] readJSON
[Pipeline] echo
[msg:操作成功, code:200, data:]
[Pipeline] echo
status:200
[Pipeline] echo
{"msg":"操作成功","code":200,"data":""}
[Pipeline] }
[Pipeline] // dir
[Pipeline] dir
Running in /root/workspace/orin-cleanup
[Pipeline] {
[Pipeline] sh
+ git rev-parse --short HEAD
[Pipeline] readJSON
[Pipeline] echo
{"project":{"orin-cleanup":"weilikang/orin-cleanup"},"commit":{"orin-cleanup":"f6c12bb"}}
[Pipeline] sh
+ echo '{"project":{"orin-cleanup":"weilikang/orin-cleanup"},"commit":{"orin-cleanup":"9eec662"}}'
[Pipeline] }
[Pipeline] // dir
[Pipeline] sh
+ rm -rf /root/workspace/orin-cleanup@tmp
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] script
[Pipeline] {
[Pipeline] echo
always
[Pipeline] }
[Pipeline] // script
[Pipeline] script
[Pipeline] {
[Pipeline] echo
success
[Pipeline] wrap
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] echo
user: , telphone:
[Pipeline] }
[Pipeline] // script
[Pipeline] sh
+ curl -X POST 'https://oapi.dingtalk.com/robot/send?access_token=c4e318472bbd19d0449efb4060de213f730dc32b4bf44819381a8fa7adf61983' -H 'Content-Type: application/json' -d '{"msgtype": "markdown","markdown": {"title":"jenkins通知","text": "# 版本上传通知
### [orin-cleanup脚本更新]
---
- 版本名:cleanup_orin_2026-10-30_11-20-58
- 详细信息:rc_dev
- 状态:<font color=#01B468> 上传成功 </font>
- 执行人:weilikang
---
> 请ota发布同学尽快发布验证,并在群里同步发布信息~@"},"at": {"atMobiles": [""],"isAtAll": "false"} }'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 463 100 27 100 436 310 5011 --:--:-- --:--:-- --:--:-- 5321
[Pipeline] echo
{"errcode":0,"errmsg":"ok"}
[Pipeline] }
[Pipeline] // wrap
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS