Console Output
Generic Cause
GenericWebhookEnvironmentContributor
Received:
{"object_kind":"push","event_name":"push","before":"1d0119904fc1c449c80709209ae013c997a14e48","after":"1f2067b88a8eafc434754458a65cd548876c1108","ref":"refs/heads/v3.0-jp5.1.2","checkout_sha":"1f2067b88a8eafc434754458a65cd548876c1108","message":null,"user_id":107,"user_name":"wangjie01","user_username":"wangjie01","user_email":null,"user_avatar":"https://www.gravatar.com/avatar/9bb22c86fa37d26f39590edebc276f50?s=80&d=identicon","project_id":512,"project":{"id":512,"name":"mizar","description":"","web_url":"http://159.27.226.4/hardware/mizar","avatar_url":null,"git_ssh_url":"git@159.27.226.4:hardware/mizar.git","git_http_url":"http://159.27.226.4/hardware/mizar.git","namespace":"Hardware","visibility_level":0,"path_with_namespace":"hardware/mizar","default_branch":"main","ci_config_path":null,"homepage":"http://159.27.226.4/hardware/mizar","url":"git@159.27.226.4:hardware/mizar.git","ssh_url":"git@159.27.226.4:hardware/mizar.git","http_url":"http://159.27.226.4/hardware/mizar.git"},"commits":[{"id":"1f2067b88a8eafc434754458a65cd548876c1108","message":"fix_out域控v3.0:\n1.修改相机配置复位脚本,改为复位时不复位max96712,解决大榭车道线相机初始化失败的问题\n2.修改ptp配置文件中的tx_timestamp_timeout参数,减少系统log中ptp超时报错频率\n","title":"fix_out域控v3.0:","timestamp":"2024-01-04T14:39:13+08:00","url":"http://159.27.226.4/hardware/mizar/-/commit/1f2067b88a8eafc434754458a65cd548876c1108","author":{"name":"wangjie01","email":"wangjie01@senior.auto"},"added":["ptp4l.conf"],"modified":["configure-camera/senior_reset_power.sh","deploy.sh"],"removed":[]}],"total_commits_count":1,"push_options":{},"repository":{"name":"mizar","url":"git@159.27.226.4:hardware/mizar.git","description":"","homepage":"http://159.27.226.4/hardware/mizar","git_http_url":"http://159.27.226.4/hardware/mizar.git","git_ssh_url":"git@159.27.226.4:hardware/mizar.git","visibility_level":0}}
Contributing variables:
branch = refs/heads/v3.0-jp5.1.2
object_kind = push
projectId = 512
projectName = mizar
runOpts = GitlabPush
runOpts_0 = GitlabPush
userName = wangjie01
Obtained hardware/mizar.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 8e838581e2392ebe1cc8413da407a6c479e9d265
The recommended git tool is: NONE
using credential gitlab_weilk
> git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/mizar@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 8e838581e2392ebe1cc8413da407a6c479e9d265 (master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 8e838581e2392ebe1cc8413da407a6c479e9d265 # timeout=10
Commit message: "Add new file"
> git rev-list --no-walk 8e838581e2392ebe1cc8413da407a6c479e9d265 # timeout=10
[Pipeline] Start of Pipeline
[Pipeline] echo
mizar
[Pipeline] echo
GitlabPush
[Pipeline] echo
v3.0-jp5.1.2
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/workspace/mizar
[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/mizar/.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 65668e697084992b0d747d3c80fdb4fa6d1af61c (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 65668e697084992b0d747d3c80fdb4fa6d1af61c # timeout=10
Commit message: "Update orin-test.jenkinsfile"
> git rev-list --no-walk 65668e697084992b0d747d3c80fdb4fa6d1af61c # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (checkout)
[Pipeline] script
[Pipeline] {
[Pipeline] echo
v3.0-jp5.1.2
[Pipeline] ansiColor
[Pipeline] {
[Pipeline] echo
>>>>>>>>>>拉取mizar>>>>>>>>>>
[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] sh
+ rm -rf /root/workspace/mizar/mizar /root/workspace/mizar/mizar_2024-01-04_14-39-14 /root/workspace/mizar/mizar_2024-01-04_14-39-14.zip /root/workspace/mizar/version.json
+ mkdir /root/workspace/mizar/mizar/
[Pipeline] dir
Running in /root/workspace/mizar/mizar
[Pipeline] {
[Pipeline] checkout
The recommended git tool is: NONE
using credential gitlab_ota
Cloning the remote Git repository
Cloning repository http://159.27.226.4/hardware/mizar.git
> git init /root/workspace/mizar/mizar # timeout=10
Fetching upstream changes from http://159.27.226.4/hardware/mizar.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/hardware/mizar.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url http://159.27.226.4/hardware/mizar.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
> git rev-parse origin/v3.0-jp5.1.2^{commit} # timeout=10
Checking out Revision 1f2067b88a8eafc434754458a65cd548876c1108 (origin/v3.0-jp5.1.2)
> git config core.sparsecheckout # timeout=10
> git checkout -f 1f2067b88a8eafc434754458a65cd548876c1108 # timeout=10
Commit message: "fix_out域控v3.0: 1.修改相机配置复位脚本,改为复位时不复位max96712,解决大榭车道线相机初始化失败的问题 2.修改ptp配置文件中的tx_timestamp_timeout参数,减少系统log中ptp超时报错频率"
> git rev-list --no-walk 1d0119904fc1c449c80709209ae013c997a14e48 # timeout=10
First time build. Skipping changelog.
[Pipeline] }
[Pipeline] // dir
[Pipeline] sh
+ rm -rf /root/workspace/mizar@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=mizar
Content-Type: application/json
PRIVATE-TOKEN: *****
Sending request to url: http://159.27.226.4/api/v4/projects?search=mizar
Response Code: HTTP/1.1 200 OK
Response:
[{"id":512,"description":"","name":"mizar","name_with_namespace":"Hardware / mizar","path":"mizar","path_with_namespace":"hardware/mizar","created_at":"2022-12-20T06:41:56.925Z","default_branch":"main","tag_list":[],"topics":[],"ssh_url_to_repo":"git@159.27.226.4:hardware/mizar.git","http_url_to_repo":"http://159.27.226.4/hardware/mizar.git","web_url":"http://159.27.226.4/hardware/mizar","readme_url":null,"avatar_url":null,"forks_count":0,"star_count":0,"last_activity_at":"2024-01-04T06:25:44.463Z","namespace":{"id":13,"name":"Hardware","path":"hardware","kind":"group","full_path":"hardware","parent_id":null,"avatar_url":null,"web_url":"http://159.27.226.4/groups/hardware"},"_links":{"self":"http://159.27.226.4/api/v4/projects/512","issues":"http://159.27.226.4/api/v4/projects/512/issues","merge_requests":"http://159.27.226.4/api/v4/projects/512/merge_requests","repo_branches":"http://159.27.226.4/api/v4/projects/512/repository/branches","labels":"http://159.27.226.4/api/v4/projects/512/labels","events":"http://159.27.226.4/api/v4/projects/512/events","members":"http://159.27.226.4/api/v4/projects/512/members","cluster_agents":"http://159.27.226.4/api/v4/projects/512/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":"2022-12-21T06:41:56.982Z"},"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":6,"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":false,"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
hardware/mizar
[Pipeline] echo
512
[Pipeline] echo
512
[Pipeline] dir
Running in /root/workspace/mizar
[Pipeline] {
[Pipeline] dir
Running in /root/workspace/mizar/mizar
[Pipeline] {
[Pipeline] sh
+ echo -n '{"module":['
[Pipeline] sh
+ git rev-parse --short HEAD
[Pipeline] sh
+ python3 /root/weilk/project/get_git_now.py 512 1f2067b
[Pipeline] echo
"device":1,"device_name":"none","type":0,"project":"0"
[Pipeline] sh
+ echo -n '{"repo_name":"mizar","branch":"v3.0-jp5.1.2","port":"hairun","time":"2024-01-04_14-39-43","commit_id":"1f2067b","version":"","commit_msgs":",,"}],"device":1,"device_name":"none","type":0,"project":"0"}'
[Pipeline] sh
+ cat /root/workspace/mizar/version.json
{"module":[{"repo_name":"mizar","branch":"v3.0-jp5.1.2","port":"hairun","time":"2024-01-04_14-39-43","commit_id":"1f2067b","version":"","commit_msgs":",,"}],"device":1,"device_name":"none","type":0,"project":"0"}
[Pipeline] }
[Pipeline] // dir
[Pipeline] sh
+ cp -r mizar/ mizar_2024-01-04_14-39-51
[Pipeline] sh
+ rm -rf mizar_2024-01-04_14-39-51/.git/
[Pipeline] sh
+ zip -rq mizar_2024-01-04_14-39-51.zip ./mizar_2024-01-04_14-39-51/ ./version.json
[Pipeline] sh
+ ls /root/workspace/mizar/
mizar
mizar_2024-01-04_14-39-51
mizar_2024-01-04_14-39-51.zip
mizar@tmp
version.json
[Pipeline] sh
+ curl -X POST http://143.64.91.51:18081/prod-api/otaUploadFileAndVersion --form 'Content-Type="multipart/form-data"' --form 'file=@"/root/workspace/mizar/mizar_2024-01-04_14-39-51.zip"' --form 'version=@"/root/workspace/mizar/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 12.4M 0 0 100 12.4M 0 62.2M --:--:-- --:--:-- --:--:-- 61.9M
100 12.4M 0 0 100 12.4M 0 10.3M 0:00:01 0:00:01 --:--:-- 10.3M
100 12.4M 0 0 100 12.4M 0 5792k 0:00:02 0:00:02 --:--:-- 5790k
100 12.4M 0 0 100 12.4M 0 3982k 0:00:03 0:00:03 --:--:-- 3981k
100 12.4M 0 0 100 12.4M 0 3034k 0:00:04 0:00:04 --:--:-- 3033k
100 12.4M 0 0 100 12.4M 0 2450k 0:00:05 0:00:05 --:--:-- 0
100 12.4M 0 0 100 12.4M 0 2055k 0:00:06 0:00:06 --:--:-- 0
100 12.4M 0 0 100 12.4M 0 1769k 0:00:07 0:00:07 --:--:-- 0
100 12.4M 0 0 100 12.4M 0 1554k 0:00:08 0:00:08 --:--:-- 0
100 12.4M 0 0 100 12.4M 0 1385k 0:00:09 0:00:09 --:--:-- 0
100 12.4M 0 0 100 12.4M 0 1249k 0:00:10 0:00:10 --:--:-- 0
100 12.4M 0 0 100 12.4M 0 1137k 0:00:11 0:00:11 --:--:-- 0
100 12.4M 0 0 100 12.4M 0 1044k 0:00:12 0:00:12 --:--:-- 0
100 12.4M 0 0 100 12.4M 0 965k 0:00:13 0:00:13 --:--:-- 0
100 12.4M 0 0 100 12.4M 0 897k 0:00:14 0:00:14 --:--:-- 0
100 12.4M 0 43 100 12.4M 2 853k 0:00:14 0:00:14 --:--:-- 9
[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://127.0.0.1:8090/otaUploadFileAndVersion --form 'Content-Type="multipart/form-data"' --form 'file=@"/root/workspace/mizar/mizar_2024-01-04_14-39-51.zip"' --form 'version=@"/root/workspace/mizar/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 12.4M 0 43 100 12.4M 76 22.0M --:--:-- --:--:-- --:--:-- 22.0M
[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://172.18.5.234/ota-api/otaUploadFileAndVersion --form 'Content-Type="multipart/form-data"' --form 'file=@"/root/workspace/mizar/mizar_2024-01-04_14-39-51.zip"' --form 'version=@"/root/workspace/mizar/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 12.4M 0 0 100 12.4M 0 13.7M --:--:-- --:--:-- --:--:-- 13.7M
100 12.4M 0 43 100 12.4M 29 8815k 0:00:01 0:00:01 --:--:-- 8815k
[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/mizar/mizar
[Pipeline] {
[Pipeline] sh
+ git rev-parse --short HEAD
[Pipeline] readJSON
[Pipeline] echo
{"project":{"mizar":"hardware/mizar"},"commit":{"mizar":"68f4e17"}}
[Pipeline] sh
+ echo '{"project":{"mizar":"hardware/mizar"},"commit":{"mizar":"1f2067b"}}'
[Pipeline] }
[Pipeline] // dir
[Pipeline] sh
+ rm -rf /root/workspace/mizar/mizar@tmp
[Pipeline] sh
+ rm -rf /root/workspace/mizar@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: null
[Pipeline] echo
用户不存在列表中
[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": "# 版本上传通知
### [mizar更新]
---
- 版本名:mizar_2024-01-04_14-39-51
- 详细信息:v3.0-jp5.1.2
- 状态:<font color=#01B468> 上传成功 </font>
- 执行人:auto
---
> 请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 444 100 27 100 417 293 4532 --:--:-- --:--:-- --:--:-- 4879
[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