Console Output
Started by user weilikang
Obtained system-libraries.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 ffe290332d57ef4be1da4de71f843b9b457d6746
The recommended git tool is: NONE
using credential gitlab_weilk
> git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/system-libraries@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 ffe290332d57ef4be1da4de71f843b9b457d6746 (master)
> git config core.sparsecheckout # timeout=10
> git checkout -f ffe290332d57ef4be1da4de71f843b9b457d6746 # timeout=10
Commit message: "Update vehicleInfo.groovy"
> git rev-list --no-walk ffe290332d57ef4be1da4de71f843b9b457d6746 # timeout=10
[Pipeline] Start of Pipeline
[Pipeline] echo
null
[Pipeline] echo
null
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/workspace/system-libraries
[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/system-libraries/.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 b9d33c7a09228605d341c5d518f43206c9b05d1a (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f b9d33c7a09228605d341c5d518f43206c9b05d1a # timeout=10
Commit message: "Update system-libraries.jenkinsfile"
> git rev-list --no-walk 34c2ab92f9e627edccbfa48964ff34a633dd75cb # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (checkout)
[Pipeline] script
[Pipeline] {
[Pipeline] echo
glog
[Pipeline] ansiColor
[Pipeline] {
[Pipeline] echo
>>>>>>>>>>拉取system-libraries>>>>>>>>>>
[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] sh
+ rm -rf /root/workspace/system-libraries/orin32 /root/workspace/system-libraries/orin32@tmp /root/workspace/system-libraries/orin64 /root/workspace/system-libraries/orin64@tmp /root/workspace/system-libraries/version.json
[Pipeline] dir
Running in /root/workspace/system-libraries
[Pipeline] {
[Pipeline] checkout
The recommended git tool is: NONE
using credential gitlab_ota
> git rev-parse --resolve-git-dir /root/workspace/system-libraries/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url http://159.27.226.4/system/system-libraries.git # timeout=10
Fetching upstream changes from http://159.27.226.4/system/system-libraries.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/system/system-libraries.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/glog^{commit} # timeout=10
Checking out Revision dcc39ded4deb77846a50525a1a11f26a18ae41e9 (origin/glog)
> git config core.sparsecheckout # timeout=10
> git checkout -f dcc39ded4deb77846a50525a1a11f26a18ae41e9 # timeout=10
Commit message: "feat_out:删除readme"
> git rev-list --no-walk dcc39ded4deb77846a50525a1a11f26a18ae41e9 # timeout=10
[Pipeline] }
[Pipeline] // dir
[Pipeline] sh
+ rm -rf /root/workspace/system-libraries@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=system-libraries
Content-Type: application/json
PRIVATE-TOKEN: *****
Sending request to url: http://159.27.226.4/api/v4/projects?search=system-libraries
Response Code: HTTP/1.1 200 OK
Response:
[{"id":1610,"description":"系统及三方升级库","name":"system-libraries","name_with_namespace":"System / system-libraries","path":"system-libraries","path_with_namespace":"system/system-libraries","created_at":"2024-12-06T08:35:55.789Z","default_branch":"main","tag_list":[],"topics":[],"ssh_url_to_repo":"git@159.27.226.4:system/system-libraries.git","http_url_to_repo":"http://159.27.226.4/system/system-libraries.git","web_url":"http://159.27.226.4/system/system-libraries","readme_url":"http://159.27.226.4/system/system-libraries/-/blob/main/README.md","avatar_url":null,"forks_count":0,"star_count":0,"last_activity_at":"2024-12-06T08:35:55.789Z","namespace":{"id":14,"name":"System","path":"system","kind":"group","full_path":"system","parent_id":null,"avatar_url":null,"web_url":"http://159.27.226.4/groups/system"},"_links":{"self":"http://159.27.226.4/api/v4/projects/1610","issues":"http://159.27.226.4/api/v4/projects/1610/issues","merge_requests":"http://159.27.226.4/api/v4/projects/1610/merge_requests","repo_branches":"http://159.27.226.4/api/v4/projects/1610/repository/branches","labels":"http://159.27.226.4/api/v4/projects/1610/labels","events":"http://159.27.226.4/api/v4/projects/1610/events","members":"http://159.27.226.4/api/v4/projects/1610/members","cluster_agents":"http://159.27.226.4/api/v4/projects/1610/cluster_agents"},"packages_enabled":true,"empty_repo":false,"archived":false,"visibility":"private","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":"2024-12-07T08:35:55.829Z"},"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":80,"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":20,"notification_level":3},"group_access":null}}]
Success: Status code 200 is in the accepted range: 100:399
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] readJSON
[Pipeline] echo
system/system-libraries
[Pipeline] echo
1610
[Pipeline] echo
1610
[Pipeline] dir
Running in /root/workspace/system-libraries
[Pipeline] {
[Pipeline] sh
+ echo -n '{"module":['
[Pipeline] sh
+ git rev-parse --short HEAD
[Pipeline] sh
+ python3 /root/weilk/project/get_git_now.py 1610 dcc39de
[Pipeline] echo
"device":"9","device_name":"","type":0,"project":"0"
[Pipeline] sh
+ echo -n '{"repo_name":"system-libraries","branch":"glog","time":"2024-12-10_11-30-54","commit_id":"dcc39de","version":"","commit_msgs":",5Yig6ZmkcmVhZG1l,"}],"device":"9","device_name":"","type":0,"project":"0"}'
[Pipeline] sh
+ cat /root/workspace/system-libraries/version.json
{"module":[{"repo_name":"system-libraries","branch":"glog","time":"2024-12-10_11-30-54","commit_id":"dcc39de","version":"","commit_msgs":",5Yig6ZmkcmVhZG1l,"}],"device":"9","device_name":"","type":0,"project":"0"}
[Pipeline] sh
+ cd /root/workspace/system-libraries/
+ ls -d orin32/ orin64/
[Pipeline] echo
仓库共有两个目录:[orin32, orin64],需要生成两个包。
[Pipeline] dir
Running in /root/workspace/system-libraries/orin32
[Pipeline] {
[Pipeline] sh
+ mv libraries.zip libraries-glog-orin32.zip
[Pipeline] sh
+ curl -X POST http://ota.senior.auto/prod-api/otaUploadFileAndVersion --form 'Content-Type="multipart/form-data"' --form 'file=@"/root/workspace/system-libraries/orin32/libraries-glog-orin32.zip"' --form 'version=@"/root/workspace/system-libraries/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
100 243k 0 43 100 243k 134 761k --:--:-- --:--:-- --:--:-- 761k
[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] sh
+ curl -X POST http://159.27.225.200:6201/ota-api/otaUploadFileAndVersion --form 'Content-Type="multipart/form-data"' --form 'file=@"/root/workspace/system-libraries/orin32/libraries-glog-orin32.zip"' --form 'version=@"/root/workspace/system-libraries/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
100 243k 0 0 100 243k 0 1211k --:--:-- --:--:-- --:--:-- 1205k
100 243k 0 43 100 243k 70 398k --:--:-- --:--:-- --:--:-- 397k
[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] sh
+ curl -X POST http://143.64.91.51:18081/prod-api/otaUploadFileAndVersion --form 'Content-Type="multipart/form-data"' --form 'file=@"/root/workspace/system-libraries/orin32/libraries-glog-orin32.zip"' --form 'version=@"/root/workspace/system-libraries/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
100 243k 0 0 100 243k 0 1211k --:--:-- --:--:-- --:--:-- 1205k
100 243k 0 0 100 243k 0 202k 0:00:01 0:00:01 --:--:-- 202k
100 243k 0 0 100 243k 0 110k 0:00:02 0:00:02 --:--:-- 110k
100 243k 0 0 100 243k 0 77856 0:00:03 0:00:03 --:--:-- 77831
100 243k 0 0 100 243k 0 59308 0:00:04 0:00:04 --:--:-- 59308
100 243k 0 0 100 243k 0 47916 0:00:05 0:00:05 --:--:-- 0
100 243k 0 0 100 243k 0 40188 0:00:06 0:00:06 --:--:-- 0
100 243k 0 0 100 243k 0 34607 0:00:07 0:00:07 --:--:-- 0
100 243k 0 0 100 243k 0 30387 0:00:08 0:00:08 --:--:-- 0
100 243k 0 0 100 243k 0 27084 0:00:09 0:00:09 --:--:-- 0
100 243k 0 0 100 243k 0 24429 0:00:10 0:00:10 --:--:-- 0
100 243k 0 0 100 243k 0 22250 0:00:11 0:00:11 --:--:-- 0
100 243k 0 0 100 243k 0 20426 0:00:12 0:00:12 --:--:-- 0
100 243k 0 0 100 243k 0 18879 0:00:13 0:00:13 --:--:-- 0
100 243k 0 0 100 243k 0 17549 0:00:14 0:00:14 --:--:-- 0
100 243k 0 0 100 243k 0 16395 0:00:15 0:00:15 --:--:-- 0
100 243k 0 0 100 243k 0 15383 0:00:16 0:00:16 --:--:-- 0
100 243k 0 0 100 243k 0 14488 0:00:17 0:00:17 --:--:-- 0
100 243k 0 0 100 243k 0 13691 0:00:18 0:00:18 --:--:-- 0
100 243k 0 0 100 243k 0 12978 0:00:19 0:00:19 --:--:-- 0
100 243k 0 0 100 243k 0 12336 0:00:20 0:00:20 --:--:-- 0
100 243k 0 0 100 243k 0 11754 0:00:21 0:00:21 --:--:-- 0
100 243k 0 0 100 243k 0 11225 0:00:22 0:00:22 --:--:-- 0
100 243k 0 0 100 243k 0 10741 0:00:23 0:00:23 --:--:-- 0
100 243k 0 0 100 243k 0 10297 0:00:24 0:00:24 --:--:-- 0
100 243k 0 0 100 243k 0 9889 0:00:25 0:00:25 --:--:-- 0
100 243k 0 0 100 243k 0 9511 0:00:26 0:00:26 --:--:-- 0
100 243k 0 0 100 243k 0 9161 0:00:27 0:00:27 --:--:-- 0
100 243k 0 0 100 243k 0 8837 0:00:28 0:00:28 --:--:-- 0
100 243k 0 0 100 243k 0 8534 0:00:29 0:00:29 --:--:-- 0
100 243k 0 0 100 243k 0 8251 0:00:30 0:00:30 --:--:-- 0
100 243k 0 0 100 243k 0 7987 0:00:31 0:00:31 --:--:-- 0
100 243k 0 0 100 243k 0 7739 0:00:32 0:00:32 --:--:-- 0
100 243k 0 0 100 243k 0 7506 0:00:33 0:00:33 --:--:-- 0
100 243k 0 0 100 243k 0 7286 0:00:34 0:00:34 --:--:-- 0
100 243k 0 0 100 243k 0 7079 0:00:35 0:00:35 --:--:-- 0
100 243k 0 0 100 243k 0 6884 0:00:36 0:00:36 --:--:-- 0
100 243k 0 0 100 243k 0 6699 0:00:37 0:00:37 --:--:-- 0
100 243k 0 0 100 243k 0 6523 0:00:38 0:00:38 --:--:-- 0
100 243k 0 0 100 243k 0 6357 0:00:39 0:00:39 --:--:-- 0
100 243k 0 0 100 243k 0 6199 0:00:40 0:00:40 --:--:-- 0
100 243k 0 0 100 243k 0 6048 0:00:41 0:00:41 --:--:-- 0
100 243k 0 0 100 243k 0 5905 0:00:42 0:00:42 --:--:-- 0
100 243k 0 0 100 243k 0 5768 0:00:43 0:00:43 --:--:-- 0
100 243k 0 0 100 243k 0 5638 0:00:44 0:00:44 --:--:-- 0
100 243k 0 0 100 243k 0 5513 0:00:45 0:00:45 --:--:-- 0
100 243k 0 0 100 243k 0 5394 0:00:46 0:00:46 --:--:-- 0
100 243k 0 0 100 243k 0 5279 0:00:47 0:00:47 --:--:-- 0
100 243k 0 0 100 243k 0 5170 0:00:48 0:00:48 --:--:-- 0
100 243k 0 0 100 243k 0 5065 0:00:49 0:00:49 --:--:-- 0
100 243k 0 0 100 243k 0 4964 0:00:50 0:00:50 --:--:-- 0
100 243k 0 0 100 243k 0 4867 0:00:51 0:00:51 --:--:-- 0
100 243k 0 0 100 243k 0 4774 0:00:52 0:00:52 --:--:-- 0
100 243k 0 0 100 243k 0 4684 0:00:53 0:00:53 --:--:-- 0
100 243k 0 0 100 243k 0 4597 0:00:54 0:00:54 --:--:-- 0
100 243k 0 0 100 243k 0 4514 0:00:55 0:00:55 --:--:-- 0
100 243k 0 0 100 243k 0 4434 0:00:56 0:00:56 --:--:-- 0
100 243k 0 0 100 243k 0 4356 0:00:57 0:00:57 --:--:-- 0
100 243k 0 0 100 243k 0 4281 0:00:58 0:00:58 --:--:-- 0
100 243k 0 0 100 243k 0 4209 0:00:59 0:00:59 --:--:-- 0
100 243k 0 0 100 243k 0 4139 0:01:00 0:01:00 --:--:-- 0
100 243k 0 0 100 243k 0 4072 0:01:01 0:01:01 --:--:-- 0
100 243k 100 176 100 243k 2 4040 0:01:28 0:01:01 0:00:27 39
[Pipeline] echo
<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.18.0 (Ubuntu)</center>
</body>
</html>
[Pipeline] readJSON
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // dir
[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
failure: zip->post
[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=0e635ba9c724e48482d5e4146087ccb44e6b324d34f5e351b80db04fcf41017a' -H 'Content-Type: application/json' -d '{"msgtype": "markdown","markdown": {"title":"Jenkins通知","text": "# 版本编译失败
### [system-libraries更新]
---
- 任务名: [system-libraries]
- 任务号:# 14
- 阶段:zip->post
- 状态:<font color=#FF5151> 上传失败 </font>
- 执行人:weilikang
---
> 请检查失败原因 @"},"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 416 100 27 100 389 257 3704 --:--:-- --:--:-- --:--:-- 3961
[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
hudson.remoting.ProxyException: net.sf.json.JSONException: Invalid JSON String
at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:143)
at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:103)
at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:84)
at org.jenkinsci.plugins.pipeline.utility.steps.json.ReadJSONStepExecution.doRun(ReadJSONStepExecution.java:87)
at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepExecution.run(AbstractFileOrTextStepExecution.java:29)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE