Generic Cause GenericWebhookEnvironmentContributor Received: {"object_kind":"push","event_name":"push","before":"3508b40e7a7d7a75529bf2b3a09dd0240319a01f","after":"c45ac7a0acf1536bbd59902dc69688e40e77f78f","ref":"refs/heads/rc_dev","checkout_sha":"c45ac7a0acf1536bbd59902dc69688e40e77f78f","message":null,"user_id":98,"user_name":"liulei","user_username":"liulei","user_email":"","user_avatar":"https://www.gravatar.com/avatar/f4abf6b25d19e846d0491fcbbbaf3848?s=80&d=identicon","project_id":527,"project":{"id":527,"name":"polaris","description":"","web_url":"http://159.27.226.4/hardware/polaris","avatar_url":null,"git_ssh_url":"git@159.27.226.4:hardware/polaris.git","git_http_url":"http://159.27.226.4/hardware/polaris.git","namespace":"Hardware","visibility_level":0,"path_with_namespace":"hardware/polaris","default_branch":"master","ci_config_path":null,"homepage":"http://159.27.226.4/hardware/polaris","url":"git@159.27.226.4:hardware/polaris.git","ssh_url":"git@159.27.226.4:hardware/polaris.git","http_url":"http://159.27.226.4/hardware/polaris.git"},"commits":[{"id":"c45ac7a0acf1536bbd59902dc69688e40e77f78f","message":"feat_out: polaris_v2.0.1.0.23 修复can时间戳获取延迟问题\n","title":"feat_out: polaris_v2.0.1.0.23 修复can时间戳获取延迟问题","timestamp":"2024-07-13T13:57:30+08:00","url":"http://159.27.226.4/hardware/polaris/-/commit/c45ac7a0acf1536bbd59902dc69688e40e77f78f","author":{"name":"liulei","email":"liulei@senior.auto"},"added":[],"modified":["senior-can.service"],"removed":[]}],"total_commits_count":1,"push_options":{},"repository":{"name":"polaris","url":"git@159.27.226.4:hardware/polaris.git","description":"","homepage":"http://159.27.226.4/hardware/polaris","git_http_url":"http://159.27.226.4/hardware/polaris.git","git_ssh_url":"git@159.27.226.4:hardware/polaris.git","visibility_level":0}} Contributing variables: branch = refs/heads/rc_dev object_kind = push projectId = 527 projectName = polaris runOpts = GitlabPush runOpts_0 = GitlabPush userName = liulei Obtained hardware/polaris.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 44523746dcc3b6fa96722b2fb686e275e6edcbd2 The recommended git tool is: NONE using credential gitlab_weilk > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/polaris@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 44523746dcc3b6fa96722b2fb686e275e6edcbd2 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 44523746dcc3b6fa96722b2fb686e275e6edcbd2 # timeout=10 Commit message: "Update gitlab.groovy" > git rev-list --no-walk 44523746dcc3b6fa96722b2fb686e275e6edcbd2 # timeout=10 [Pipeline] Start of Pipeline [Pipeline] echo polaris [Pipeline] echo GitlabPush [Pipeline] echo rc_dev [Pipeline] node Running on Jenkins in /var/lib/jenkins/workspace/polaris [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/polaris/.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 f2d2b9384e0154cf7dd08cb68c2ab038f11577d2 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f f2d2b9384e0154cf7dd08cb68c2ab038f11577d2 # timeout=10 Commit message: "Update xiamen-submodule.jenkinsfile" > git rev-list --no-walk f2d2b9384e0154cf7dd08cb68c2ab038f11577d2 # 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  >>>>>>>>>>拉取polaris>>>>>>>>>>  [Pipeline] } [Pipeline] // ansiColor [Pipeline] sh + rm -rf /root/workspace/polaris/polaris /root/workspace/polaris/polaris_2024-07-13_13-53-58 /root/workspace/polaris/polaris_2024-07-13_13-53-58.zip /root/workspace/polaris/version.json + mkdir /root/workspace/polaris/polaris/ [Pipeline] dir Running in /root/workspace/polaris/polaris [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/polaris.git > git init /root/workspace/polaris/polaris # timeout=10 Fetching upstream changes from http://159.27.226.4/hardware/polaris.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/polaris.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url http://159.27.226.4/hardware/polaris.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch > git rev-parse origin/rc_dev^{commit} # timeout=10 Checking out Revision c45ac7a0acf1536bbd59902dc69688e40e77f78f (origin/rc_dev) > git config core.sparsecheckout # timeout=10 > git checkout -f c45ac7a0acf1536bbd59902dc69688e40e77f78f # timeout=10 Commit message: "feat_out: polaris_v2.0.1.0.23 修复can时间戳获取延迟问题" > git rev-list --no-walk 3508b40e7a7d7a75529bf2b3a09dd0240319a01f # timeout=10 [Pipeline] } [Pipeline] // dir [Pipeline] sh + rm -rf /root/workspace/polaris@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=polaris Content-Type: application/json PRIVATE-TOKEN: ***** Sending request to url: http://159.27.226.4/api/v4/projects?search=polaris Response Code: HTTP/1.1 200 OK Response: [{"id":527,"description":"","name":"polaris","name_with_namespace":"Hardware / polaris","path":"polaris","path_with_namespace":"hardware/polaris","created_at":"2023-01-30T03:34:42.526Z","default_branch":"master","tag_list":[],"topics":[],"ssh_url_to_repo":"git@159.27.226.4:hardware/polaris.git","http_url_to_repo":"http://159.27.226.4/hardware/polaris.git","web_url":"http://159.27.226.4/hardware/polaris","readme_url":null,"avatar_url":null,"forks_count":0,"star_count":0,"last_activity_at":"2024-07-13T05:56:04.700Z","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/527","issues":"http://159.27.226.4/api/v4/projects/527/issues","merge_requests":"http://159.27.226.4/api/v4/projects/527/merge_requests","repo_branches":"http://159.27.226.4/api/v4/projects/527/repository/branches","labels":"http://159.27.226.4/api/v4/projects/527/labels","events":"http://159.27.226.4/api/v4/projects/527/events","members":"http://159.27.226.4/api/v4/projects/527/members","cluster_agents":"http://159.27.226.4/api/v4/projects/527/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":"2023-01-31T03:34:42.574Z"},"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_url":null,"import_type":null,"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":40,"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/polaris [Pipeline] echo 527 [Pipeline] echo 527 [Pipeline] dir Running in /root/workspace/polaris [Pipeline] { [Pipeline] dir Running in /root/workspace/polaris/polaris [Pipeline] { [Pipeline] sh + echo -n '{"module":[' [Pipeline] sh + git rev-parse --short HEAD [Pipeline] sh + python3 /root/weilk/project/get_git_now.py 527 c45ac7a [Pipeline] echo "device":1,"device_name":"none","type":1,"project":"0" [Pipeline] sh + echo -n '{"repo_name":"polaris","branch":"rc_dev","port":"hairun","time":"2024-07-13_13-55-33","commit_id":"c45ac7a","version":"","commit_msgs":",IHBvbGFyaXNfdjIuMC4xLjAuMjMg5L+u5aSNY2Fu5pe26Ze05oiz6I635Y+W5bu26L+f6Zeu6aKY,"}],"device":1,"device_name":"none","type":1,"project":"0"}' [Pipeline] sh + cat /root/workspace/polaris/version.json {"module":[{"repo_name":"polaris","branch":"rc_dev","port":"hairun","time":"2024-07-13_13-55-33","commit_id":"c45ac7a","version":"","commit_msgs":",IHBvbGFyaXNfdjIuMC4xLjAuMjMg5L+u5aSNY2Fu5pe26Ze05oiz6I635Y+W5bu26L+f6Zeu6aKY,"}],"device":1,"device_name":"none","type":1,"project":"0"} [Pipeline] } [Pipeline] // dir [Pipeline] sh + cp -r polaris/ polaris_2024-07-13_13-55-36 [Pipeline] sh + rm -rf polaris_2024-07-13_13-55-36/.git/ [Pipeline] sh + zip -rq polaris_2024-07-13_13-55-36.zip ./polaris_2024-07-13_13-55-36/ ./version.json [Pipeline] sh + ls /root/workspace/polaris/ polaris polaris_2024-07-13_13-55-36 polaris_2024-07-13_13-55-36.zip polaris@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/polaris/polaris_2024-07-13_13-55-36.zip"' --form 'version=@"/root/workspace/polaris/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 10.8M 0 0 100 10.8M 0 9279k 0:00:01 0:00:01 --:--:-- 9279k 100 10.8M 0 0 100 10.8M 0 5061k 0:00:02 0:00:02 --:--:-- 5061k 100 10.8M 0 0 100 10.8M 0 3479k 0:00:03 0:00:03 --:--:-- 3479k 100 10.8M 0 0 100 10.8M 0 2650k 0:00:04 0:00:04 --:--:-- 2650k 100 10.8M 0 0 100 10.8M 0 2141k 0:00:05 0:00:05 --:--:-- 2141k 100 10.8M 0 0 100 10.8M 0 1795k 0:00:06 0:00:06 --:--:-- 0 100 10.8M 0 43 100 10.8M 6 1611k 0:00:06 0:00:06 --:--:-- 9 100 10.8M 0 43 100 10.8M 6 1611k 0:00:06 0:00:06 --:--:-- 11 [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/polaris/polaris_2024-07-13_13-55-36.zip"' --form 'version=@"/root/workspace/polaris/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 10.8M 0 0 100 10.8M 0 54.1M --:--:-- --:--:-- --:--:-- 53.8M 100 10.8M 0 43 100 10.8M 106 27.0M --:--:-- --:--:-- --:--:-- 26.9M [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/polaris/polaris_2024-07-13_13-55-36.zip"' --form 'version=@"/root/workspace/polaris/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 33 10.8M 0 0 33 3776k 0 8581k 0:00:01 --:--:-- 0:00:01 8562k 100 10.8M 0 43 100 10.8M 25 6705k 0:00:01 0:00:01 --:--:-- 6701k 100 10.8M 0 43 100 10.8M 25 6705k 0:00:01 0:00:01 --:--:-- 6701k [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/polaris/polaris_2024-07-13_13-55-36.zip"' --form 'version=@"/root/workspace/polaris/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 10.8M 0 0 100 10.8M 0 9279k 0:00:01 0:00:01 --:--:-- 9279k 100 10.8M 0 0 100 10.8M 0 5061k 0:00:02 0:00:02 --:--:-- 5061k 100 10.8M 0 43 100 10.8M 15 3891k 0:00:02 0:00:02 --:--:-- 3889k 100 10.8M 0 43 100 10.8M 15 3891k 0:00:02 0:00:02 --:--:-- 3889k [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/polaris/polaris [Pipeline] { [Pipeline] sh + git rev-parse --short HEAD [Pipeline] readJSON [Pipeline] echo {"project":{"polaris":"hardware/polaris"},"commit":{"polaris":"3be326f"}} [Pipeline] sh + echo '{"project":{"polaris":"hardware/polaris"},"commit":{"polaris":"c45ac7a"}}' [Pipeline] } [Pipeline] // dir [Pipeline] sh + rm -rf /root/workspace/polaris/polaris@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": "# 版本上传通知 ### [polaris更新] --- - 版本名:polaris_2024-07-13_13-55-36 - 详细信息:rc_dev - 状态: 上传成功 - 执行人: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 442 100 27 100 415 281 4322 --:--:-- --:--:-- --:--:-- 4604 [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