马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
- build:
- image: maven:3.6-jdk-8-slim
- stage: prepare
- script:
- - sleep 200
- - mvn package -Dmaven.repo.local=/root/.m2/repository
- artifacts:
- paths:
- - target/
复制代码 假设,我在.gitlab-ci.yml文件中定义了如上内容,那么在runner运行时,会经过哪些步骤呢?
我的猜想是,Runner 服务接收到任务以后,会创建一个maven的容器,并且执行script。但通过逆向启动的容器,发现mvn镜像在启动时,并没有执行script参数,指令如下:
- docker run --name=runner-7fk-ryf4n-project-183422-concurrent-0-7ebcb91b16a8df47-build --hostname=runner-7fk-ryf4n-project-183422-concurrent-0 --env=FF_CMD_DISABLE_DELAYED_ERROR_LEVEL_EXPANSION=false --env=FF_NETWORK_PER_BUILD=false --env=FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY=false --env=FF_USE_DIRECT_DOWNLOAD=true --env=FF_SKIP_NOOP_BUILD_STAGES=true --env=FF_USE_FASTZIP=false --env=FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR=false --env=FF_ENABLE_BASH_EXIT_CODE_CHECK=false --env=FF_USE_WINDOWS_LEGACY_PROCESS_STRATEGY=true --env=FF_USE_NEW_BASH_EVAL_STRATEGY=false --env=FF_USE_POWERSHELL_PATH_RESOLVER=false --env=FF_USE_DYNAMIC_TRACE_FORCE_SEND_INTERVAL=false --env=FF_SCRIPT_SECTIONS=false --env=FF_USE_NEW_SHELL_ESCAPE=false --env=FF_ENABLE_JOB_CLEANUP=false --env=FF_KUBERNETES_HONOR_ENTRYPOINT=false --env=FF_POSIXLY_CORRECT_ESCAPES=false --env=FF_USE_IMPROVED_URL_MASKING=false --env=FF_RESOLVE_FULL_TLS_CHAIN=true --env=FF_DISABLE_POWERSHELL_STDIN=false --env=FF_USE_POD_ACTIVE_DEADLINE_SECONDS=false --env=FF_USE_ADVANCED_POD_SPEC_CONFIGURATION=false --env=FF_SET_PERMISSIONS_BEFORE_CLEANUP=true --env=FF_SECRET_RESOLVING_FAILS_IF_MISSING=true --env=FF_RETRIEVE_POD_WARNING_EVENTS=false --env=CI_JOB_IMAGE=maven:3.6-jdk-8-slim --env=CI_RUNNER_SHORT_TOKEN=7fk-ryf4n --env=CI_BUILDS_DIR=/builds --env=CI_PROJECT_DIR=/builds/ultimate-plan/scenarios/all-in-one-DEMO/benchmarkjava1.2 --env=CI_CONCURRENT_ID=0 --env=CI_CONCURRENT_PROJECT_ID=0 --env=CI_SERVER=yes --env=CI_JOB_STATUS=running --env=CI_JOB_TIMEOUT=3600 --env='CI_SERVER_TLS_CA_FILE=-----BEGIN CERTIFICATE-----
- MIIGbzCCBNegAwIBAgIQe/5vYALTqnAbam42Sh5S+zANBgkqhkiG9w0BAQwFADBZ
- MQswCQYDVQQGEwJDTjElMCMGA1UEChMcVHJ1c3RBc2lhIFRlY2hub2xvZ2llcywg
- SW5jLjEjMCEGA1UEAxMaVHJ1c3RBc2lhIFJTQSBEViBUTFMgQ0EgRzIwHhcNMjMw
- OTExMDAwMDAwWhcNMjQwOTE4MjM1OTU5WjAYMRYwFAYDVQQDDA0qLmppaHVsYWIu
- Y29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxEvoF3hprvJHHSHJ
- fKORBDXV9PDpyRBLwUJk4CCe9UCRfVYM4C8IVV2iWoujZOwey3rL9zABQu3Ic8ak
- BHJGy4Zqt5hxeM5kUHkDeRjauJR4fuQvd2YZWfkOCqZORbO7Oq28UrN6G/IhGpO9
- bVYW15PDn06MKjksVqdfDxW+E/O0M6cy54EVAywvhZt/R3Kwr5jRypmJGrhAj8ss
- g3Ya3Kf30STOKGNa68+Ky1vBwW+q3hznO3Kaw9wd5Iva6l4BikH85nHcjSdeh/pB
- oMtICZd4LmnifpJ8taKny8DH0JbVniZQDCD0H50FChZS7lkdSKSAUCOGCR2/yrLf
- rSPurQIDAQABo4IC8jCCAu4wHwYDVR0jBBgwFoAUXzp8ERB+DGdxYd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wDCBvTAdBgNVHQ4EFgQU
- oBEKIz6W8Qfs4q8p74Klf9AwpLQwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQF
- MAMBAf8wewYDVR0fBHQwcjA4oDagNIYyaHR0cDovL2NybC5jb21vZG9jYS5jb20v
- QUFBQ2VydGlmaWNhdGVTZXJ2aWNlcy5jcmwwNqA0oDKGMGh0dHA6Ly9jcmwuY29t
- b2RvLm5ldC9BQUFDZXJ0aWZpY2F0ZVNlcnZpY2VzLmNybDANBgkqhkiG9w0BAQUF
- AAOCAQEACFb8AvCb6P+k+tZ7xkSAzk/ExfYAWMymtrwUSWgEdujm7l3sAg9g1o1Q
- GE8mTgHj5rCl7r+8dFRBv/38ErjHT1r0iWAFf2C3BUrz9vHCv8S5dIa2LX1rzNLz
- Rt0vxuBqw8M0Ayx9lt1awg6nCpnBBYurDC/zXDrPbDdVCYfeU0BsWO/8tqtlbgT2
- G9w84FoVxp7Z8VlIMCFlA2zs6SFz7JsDoeA3raAVGI/6ugLOpyypEBMs1OUIJqsi
- l2D4kF501KKaU73yqWjgom7C12yxow+ev+to51byrvLjKzg6CYG1a4XXvi3tPxq3
- smPi9WIsgtRqAEFQ8TmDn5XpNpaYbg==
- -----END CERTIFICATE-----' --env=CI_PIPELINE_ID=2567990 --env=CI_PIPELINE_URL=https://jihulab.com/ultimate-plan/scenarios/all-in-one-DEMO/benchmarkjava1.2/-/pipelines/2567990 --env=CI_JOB_ID=13259688 --env=CI_JOB_URL=https://jihulab.com/ultimate-plan/scenarios/all-in-one-DEMO/benchmarkjava1.2/-/jobs/13259688 --env=CI_JOB_TOKEN=glcbt-64_ACp28ku3WbmRg47qiaMb --env=CI_JOB_STARTED_AT=2024-03-15T11:29:51+08:00 --env=CI_REGISTRY_USER=gitlab-ci-token --env=CI_REGISTRY_PASSWORD=glcbt-64_ACp28ku3WbmRg47qiaMb --env=CI_REPOSITORY_URL=https://gitlab-ci-token:glcbt-64_ACp28ku3WbmRg47qiaMb@jih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SPOSnh_w6UGT22D65_P7twElBe00HxCITmvhGcAMQqoY31aa_72FcVbVOVk-HDyOelQ4VSU1uE5I317svlBxBO-ex5llWYCgfcnKJ1hNbQ2qts2Uq06-cswE3TweCX0fRFjehnTL0mky8eMYx46p2TrFSQXRsRD-s7kzPufs9xt89IxF-ZLphJs8mNG_skBCE54-T9BZtYJwDkiZuEQeThIuizdHjxA21sWkGiZnr6bOzHbpJuMcxRTY2hotTCJsL1IgQeljDZD12n9g --env=CI_JOB_NAME=corax-build --env=CI_JOB_NAME_SLUG=corax-build --env=CI_JOB_STAGE=prepare --env=CI_NODE_TOTAL=1 --env=CI=true --env=GITLAB_CI=true --env=CI_COMPONENT_FQDN=jihulab.com --env=CI_SERVER_FQDN=jihulab.com --env=CI_SERVER_URL=https://jihulab.com --env=CI_SERVER_HOST=jihulab.com --env=CI_SERVER_PORT=443 --env=CI_SERVER_PROTOCOL=https --env=CI_SERVER_SHELL_SSH_HOST=jihulab.com --env=CI_SERVER_SHELL_SSH_PORT=22 --env=CI_SERVER_NAME=GitLab --env=CI_SERVER_VERSION=16.10.0-pre --env=CI_SERVER_VERSION_MAJOR=16 --env=CI_SERVER_VERSION_MINOR=10 --env=CI_SERVER_VERSION_PATCH=0 --env=CI_SERVER_REVISION=5a4aaeb8d2a --env=GITLAB_FEATURES=dingtalk_integration,disable_download_button,feishu_bot_integration,real_lines_of_code,performance_analytics,password_expiration,audit_events,blocked_issues,board_iteration_lists,code_owners,code_review_analytics,full_codequality_report,group_activity_analytics,group_bulk_edit,issuable_default_templates,issue_weights,iterations,ldap_group_sync,merge_request_approvers,milestone_charts,multiple_issue_assignees,multiple_ldap_servers,multiple_merge_request_assignees,multiple_merge_request_reviewers,project_merge_request_analytics,protected_refs_for_users,push_rules,resource_access_token,seat_link,usage_quotas,visual_review_app,wip_limits,zoekt_code_search,blocked_work_items,description_diffs,send_emails_from_admin_area,repository_size_limit,maintenance_mode,scoped_issue_board,contribution_analytics,group_webhooks,member_lock,elastic_search,repository_mirrors,ai_chat,adjourned_deletion_for_projects_and_groups,admin_audit_log,auditor_user,blocking_merge_requests,board_assignee_lists,board_milestone_lists,ci_secrets_management,ci_pipeline_cancellation_restrictions,cluster_agents_ci_impersonation,cluster_agents_user_impersonation,cluster_deployments,code_owner_approval_required,code_suggestions,commit_committer_check,commit_committer_name_check,compliance_framework,custom_compliance_frameworks,custom_file_templates,custom_project_templates,cycle_analytics_for_groups,cycle_analytics_for_projects,db_load_balancing,default_branch_protection_restriction_in_groups,default_project_deletion_protection,delete_unconfirmed_users,dependency_proxy_for_packages,disable_name_update_for_users,disable_personal_access_tokens,domain_verification,epics,extended_audit_events,external_authorization_service_api_management,feature_flags_code_references,file_locks,geo,generic_alert_fingerprinting,git_two_factor_enforcement,group_allowed_email_domains,group_coverage_reports,group_forking_protection,group_milestone_project_releases,group_project_templates,group_repository_analytics,group_saml,group_scoped_ci_variables,ide_schema_config,incident_metric_upload,instance_level_scim,jira_issues_integration,ldap_group_sync_filter,merge_request_performance_metrics,admin_merge_request_approvers_rules,merge_trains,metrics_reports,metrics_observability,logs_observability,multiple_alert_http_integrations,multiple_approval_rules,multiple_group_issue_boards,object_storage,microsoft_group_sync,operations_dashboard,package_forwarding,pages_size_limit,pages_multiple_versions,productivity_analytics,project_aliases,protected_environments,reject_non_dco_commits,reject_unsigned_commits,remote_development,saml_group_sync,service_accounts,scoped_labels,smartcard_auth,ssh_certificates,swimlanes,target_branch_rules,type_of_work_analytics,minimal_access_role,unprotection_restrictions,ci_project_subscriptions,incident_timeline_view,oncall_schedules,escalation_policies,zentao_issues_integration,coverage_check_approval_rule,issuable_resource_links,group_protected_branches,group_level_merge_checks_setting,oidc_client_groups_claim,disable_deleting_account_for_users,disable_private_profiles,group_saved_replies,group_ip_restriction,issues_analytics,password_complexity,group_wikis,email_additional_text,custom_file_templates_for_namespace,incident_sla,export_user_permissions,cross_project_pipelines,feature_flags_related_issues,merge_pipelines,ci_cd_projects,github_integration,ones_issues_integration,ligaai_issues_integration,milestone_and_iteration_in_epic,monorepo,ai_config_chat,ai_features,ai_git_command,ai_analyze_ci_job_failure,ai_agents,api_discovery,api_fuzzing,auto_rollback,breach_and_attack_simulation,fill_in_merge_request_template,cluster_image_scanning,external_status_checks,combined_project_analytics_dashboards,compliance_pipeline_configuration,container_scanning,credentials_inventory,custom_roles,dast,dependency_scanning,dora4_analytics,epic_colors,enterprise_templates,environment_alerts,evaluate_group_level_compliance_pipeline,explain_code,external_audit_events,experimental_features,generate_description,generate_commit_message,generate_test_file,ai_generate_cube_query,git_abuse_rate_limit,group_ci_cd_analytics,group_level_compliance_dashboard,group_level_analytics_dashboard,incident_management,inline_codequality,insights,issuable_health_status,issues_completed_analytics,jira_vulnerabilities_integration,jira_issue_association_enforcement,kubernetes_cluster_vulnerabilities,license_scanning,okrs,personal_access_token_expiration_policy,pre_receive_secret_detection,product_analytics,project_quality_summary,project_level_analytics_dashboard,prometheus_alerts,quality_management,related_epics,release_evidence_test_artifacts,report_approver_rules,required_ci_templates,requirements,runner_maintenance_note,runner_performance_insights,runner_upgrade_management,runner_upgrade_management_for_namespace,sast,sast_iac,sast_custom_rulesets,sast_fp_reduction,secret_detection,security_configuration_in_ui,security_dashboard,security_on_demand_scans,security_orchestration_policies,security_training,ssh_key_expiration_policy,summarize_mr_changes,summarize_my_mr_code_review,summarize_new_merge_request,summarize_notes,summarize_submitted_review,stale_runner_cleanup_for_namespace,status_page,suggested_reviewers,subepics,tracing,unique_project_download_limit,vulnerability_auto_fix,vulnerability_finding_signatures,coverage_fuzzing,devops_adoption,group_level_devops_adoption,instance_level_devops_adoption --env=CI_PROJECT_ID=183422 --env=CI_PROJECT_NAME=benchmarkjava1.2 --env=CI_PROJECT_TITLE=BenchmarkJava1.2 --env=CI_PROJECT_DESCRIPTION= --env=CI_PROJECT_PATH=ultimate-plan/scenarios/all-in-one-DEMO/benchmarkjava1.2 --env=CI_PROJECT_PATH_SLUG=ultimate-plan-scenarios-all-in-one-demo-benchmarkjava1-2 --env=CI_PROJECT_NAMESPACE=ultimate-plan/scenarios/all-in-one-DEMO --env=CI_PROJECT_NAMESPACE_ID=289342 --env=CI_PROJECT_ROOT_NAMESPACE=ultimate-plan --env=CI_PROJECT_URL=https://jihulab.com/ultimate-plan/scenarios/all-in-one-DEMO/benchmarkjava1.2 --env=CI_PROJECT_VISIBILITY=private --env=CI_PROJECT_REPOSITORY_LANGUAGES=java,html,javascript,shell,batchfile --env=CI_PROJECT_CLASSIFICATION_LABEL= --env=CI_DEFAULT_BRANCH=main --env=CI_CONFIG_PATH=.gitlab-ci.yml --env=CI_PAGES_DOMAIN=pages.jihulab.net --env=CI_PAGES_URL=https://benchmarkjava1-2-ultimate-plan-scenarios-all-in--ec6b57b31328a6.pages.jihulab.net --env=CI_REGISTRY=registry.jihulab.com --env=CI_REGISTRY_IMAGE=registry.jihulab.com/ultimate-plan/scenarios/all-in-one-demo/benchmarkjava1.2 --env=CI_DEPENDENCY_PROXY_SERVER=jihulab.com:443 --env=CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX=jihulab.com:443/ultimate-plan/dependency_proxy/containers --env=CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX=jihulab.com:443/ultimate-plan/scenarios/all-in-one-demo/dependency_proxy/containers --env=CI_API_V4_URL=https://jihulab.com/api/v4 --env=CI_API_GRAPHQL_URL=https://jihulab.com/api/graphql --env=CI_TEMPLATE_REGISTRY_HOST=registry.gitlab.cn --env=CI_PIPELINE_IID=48 --env=CI_PIPELINE_SOURCE=push --env=CI_PIPELINE_CREATED_AT=2024-03-15T11:20:52+08:00 --env=CI_PIPELINE_NAME= --env=CI_COMMIT_SHA=f438ee97ec309b57b703814ea32ec21f2d4d14a7 --env=CI_COMMIT_SHORT_SHA=f438ee97 --env=CI_COMMIT_BEFORE_SHA=3d486d5ff18ac567033f6f5e503dc87adf8788ea --env=CI_COMMIT_REF_NAME=2-fei-yu-coraxce-shi --env=CI_COMMIT_REF_SLUG=2-fei-yu-coraxce-shi --env=CI_COMMIT_BRANCH=2-fei-yu-coraxce-shi --env='CI_COMMIT_MESSAGE=Corax调用自动生成项目名称及任务' --env='CI_COMMIT_TITLE=Corax调用自动生成项目名称及任务' --env=CI_COMMIT_DESCRIPTION= --env=CI_COMMIT_REF_PROTECTED=false --env=CI_COMMIT_TIMESTAMP=2024-03-15T03:20:51+00:00 --env='CI_COMMIT_AUTHOR=Liberty <chileeb@163.com>' --env='CI_OPEN_MERGE_REQUESTS=ultimate-plan/scenarios/all-in-one-DEMO/benchmarkjava1.2!3' --env=CI_RUNNER_ID=25174 --env=CI_RUNNER_DESCRIPTION=feysh-docker-runner --env='CI_RUNNER_TAGS=["feysh-docker-runner"]' --env=GITLAB_USER_ID=36796 --env=GITLAB_USER_EMAIL=chileeb@163.com --env=GITLAB_USER_LOGIN=chileeb --env=GITLAB_USER_NAME=Liberty --env=CI_DISPOSABLE_ENVIRONMENT=true --env=CI_RUNNER_VERSION=16.2.1 --env=CI_RUNNER_REVISION=674e0e29 --env=CI_RUNNER_EXECUTABLE_ARCH=linux/amd64 --env=RUNNER_TEMP_PROJECT_DIR=/builds/ultimate-plan/scenarios/all-in-one-DEMO/benchmarkjava1.2.tmp --volume=/cache,/root/.m2/repository:/root/.m2/repository --volume=runner-7fk-ryf4n-project-183422-concurrent-0-cache-c33bcaa1fd2c77edfc3893b41966cea8:/builds --restart=no --label='com.gitlab.gitlab-runner.job.ref=2-fei-yu-coraxce-shi' --label='com.gitlab.gitlab-runner.job.sha=f438ee97ec309b57b703814ea32ec21f2d4d14a7' --label='com.gitlab.gitlab-runner.managed=true' --label='com.gitlab.gitlab-runner.job.url=https://jihulab.com/ultimate-plan/scenarios/all-in-one-DEMO/benchmarkjava1.2/-/jobs/13259688' --label='com.gitlab.gitlab-runner.project.id=183422' --label='com.gitlab.gitlab-runner.runner.local_id=0' --label='com.gitlab.gitlab-runner.type=build' --label='com.gitlab.gitlab-runner.job.id=13259688' --label='com.gitlab.gitlab-runner.pipeline.id=2567990' --label='com.gitlab.gitlab-runner.runner.id=7fk-ryf4n' --label='com.gitlab.gitlab-runner.job.before_sha=3d486d5ff18ac567033f6f5e503dc87adf8788ea' --runtime=runc sha256:f3f54c8fc76f35e53616ec989079d0b406ae2a193678191a22f18db37b03deea sh -c 'if [ -x /usr/local/bin/bash ]; then
- exec /usr/local/bin/bash
- elif [ -x /usr/bin/bash ]; then
- exec /usr/bin/bash
- elif [ -x /bin/bash ]; then
- exec /bin/bash
- elif [ -x /usr/local/bin/sh ]; then
- exec /usr/local/bin/sh
- elif [ -x /usr/bin/sh ]; then
- exec /usr/bin/sh
- elif [ -x /bin/sh ]; then
- exec /bin/sh
- elif [ -x /busybox/sh ]; then
- exec /busybox/sh
- else
- echo shell not found
- exit 1
- fi
- '
复制代码 此时,想问一个问题,Runner在执行时,是如何定位到代码的根路径的呢?
猜想:创建的容器包含了$CI_PROJECT_DIR环境变量,那么容器启动后,每条指令都是通过docker exec container /bin/bash cd $CI_PROJECT_DIR && scriptX来执行的吗?
|