如果一个 script 中由多个命令字符串组成,GItLab 只会根据最后一个命令的成功与否展示 Job 结果,之前命令的失败将会被忽略,这可能影响到您的整个 Pipeline。要解决这个问题,可以将命令存放在单独的脚本中(推荐),或在每个命令的字符串添加一个 exit 1 的判断,类似这样: ...
Streamlined UI by loading jobs inside pipeline details. Added support for multi-project pipelines. Enabled manual triggering of child pipelines. Improved artifact download action in job details view. Fixed expandable input for multiline support. ...
workflow: auto_cancel: on_new_commit: interruptible job1: interruptible: true script: sleep 60 job2: interruptible: false # Default when not defined. script: sleep 60 In this example: When a new commit is pushed to a branch, GitLab creates a new pipeline and job1 and job2 start. If ...
GitLab sends email notifications when your pipeline succeeds, fails, or is fixed. In previous releases, these emails looked similar. This made it hard to tell the pipeline status without reading the entire body of the email. This release updates the subject line of these email notifications so...
Pipeline views. Security dashboards. Artifacts created forartifacts: reportsare always uploaded, regardless of the job results (success or failure). You can useartifacts:expire_into set an expiration time for the artifacts, which overrides the instance’sdefault setting. GitLab.com might have adif...
GitLab reads the .gitlab-ci.yml file, sends the information to the Runner (which runs the script commands), under which the variables are exposed. For example, two jobs under the same pipeline can share the same CI_PIPELINE_ID variable, but each one has its own CI_JOB_ID variable. NO...
When the feature has been enabled, an Auto DevOps pipeline is triggered on the default branch. Enable for a percentage of projects There is also a feature flag to enable Auto DevOps by default to your chosen percentage of projects. This can be enabled from the console with the following, ...
after_script artifacts before_script cache image interruptible retry services tags timeout The following example sets the ruby:2.5 image as the default for all jobs in the pipeline. The rspec 2.6 job does not use the default, because it overrides the default with a job-specific image: section...
This merge request will progress on pipeline tiers until it reaches the last tier: pipelinetier-3. We will trigger a new pipeline for each transition to a higher tier. Before you set this MR to auto-merge, please check the following: You are the last maintainer of this merge request The...
We also have!1194 (closed)which can be used to wrap each command into its own section as well, so then we just to remove the truncating of multi-line commands in this issue. Just to make it clear: Add a section per script like!1194 (closed)is doing ...