Commit de9f0161 authored by Enrique Alcántara's avatar Enrique Alcántara

Merge branch 'selhorn-okr-triggers' into 'master'

Edited UI text

See merge request gitlab-org/gitlab!52284
parents 0adf5c66 68b0a887
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.col-lg-12 .col-lg-12
.card .card
.card-header .card-header
Manage your project's triggers = s_("Manage your project's triggers")
.card-body .card-body
= render "projects/triggers/form", btn_text: "Add trigger" = render "projects/triggers/form", btn_text: "Add trigger"
%hr %hr
...@@ -14,39 +14,33 @@ ...@@ -14,39 +14,33 @@
%table.table %table.table
%thead %thead
%th %th
%strong Token %strong
= s_("Token")
%th %th
%strong Description %strong
= s_("Description")
%th %th
%strong Owner %strong
= s_("Owner")
%th %th
%strong Last used %strong
= s_("Last used")
%th %th
= render partial: 'projects/triggers/trigger', collection: @triggers, as: :trigger = render partial: 'projects/triggers/trigger', collection: @triggers, as: :trigger
- else - else
%p.settings-message.text-center.gl-mb-3{ data: { testid: 'no_triggers_content' } } %p.settings-message.text-center.gl-mb-3{ data: { testid: 'no_triggers_content' } }
No triggers have been created yet. Add one using the form above. = s_("No triggers exist yet. Use the form above to create one.")
.card-footer .card-footer
%p %p
In the following examples, you can see the exact API call you need to = s_("These examples show how to trigger this project's pipeline for a branch or tag.")
make in order to rebuild a specific
%code ref
(branch or tag) with a trigger token.
%p
All you need to do is replace the
%code TOKEN
and
%code REF_NAME
with the trigger token and the branch or tag name respectively.
%h5.gl-mt-3
Use cURL
%p.light %p.light
Copy one of the tokens above, set your branch or tag name, and that = s_("Triggers|In each example, replace %{code_start}TOKEN%{code_end} with the trigger token you generated and replace %{code_start}REF_NAME%{code_end} with the branch or tag name.").html_safe % { code_start: "<code>".html_safe, code_end: "</code>".html_safe }
reference will be rebuilt.
%h5.gl-mt-3
= s_("Use cURL")
%pre %pre
:plain :plain
...@@ -55,39 +49,26 @@ ...@@ -55,39 +49,26 @@
-F ref=REF_NAME \ -F ref=REF_NAME \
#{builds_trigger_url(@project.id)} #{builds_trigger_url(@project.id)}
%h5.gl-mt-3 %h5.gl-mt-3
Use .gitlab-ci.yml = s_("Use .gitlab-ci.yml")
%p.light
In the
%code .gitlab-ci.yml
of another project, include the following snippet.
The project will be rebuilt at the end of the pipeline.
%pre %pre
:plain :plain
trigger_build: script:
stage: deploy - "curl -X POST -F token=TOKEN -F ref=REF_NAME #{builds_trigger_url(@project.id)}"
script:
- "curl -X POST -F token=TOKEN -F ref=REF_NAME #{builds_trigger_url(@project.id)}"
%h5.gl-mt-3 %h5.gl-mt-3
Use webhook = s_("Use webhook")
%p.light
Add the following webhook to another project for Push and Tag push events.
The project will be rebuilt at the corresponding event.
%pre %pre
:plain :plain
#{builds_trigger_url(@project.id, ref: 'REF_NAME')}?token=TOKEN #{builds_trigger_url(@project.id, ref: 'REF_NAME')}?token=TOKEN
%h5.gl-mt-3 %h5.gl-mt-3
Pass job variables = s_("Pass job variables")
%p.light %p.light
Add = s_("Triggers|To pass variables to the triggered pipeline, add %{code_start}variables[VARIABLE]=VALUE%{code_end} to the API request.").html_safe % { code_start: "<code>".html_safe, code_end: "</code>".html_safe }
%code variables[VARIABLE]=VALUE
to an API request. Variable values can be used to distinguish between triggered pipelines and normal pipelines.
With cURL: %p.light
= s_("cURL:")
%pre %pre
:plain :plain
...@@ -97,8 +78,8 @@ ...@@ -97,8 +78,8 @@
-F "variables[RUN_NIGHTLY_BUILD]=true" \ -F "variables[RUN_NIGHTLY_BUILD]=true" \
#{builds_trigger_url(@project.id)} #{builds_trigger_url(@project.id)}
%p.light %p.light
With webhook: = s_("Webhook:")
%pre.gl-mb-0 %pre.gl-mb-0
:plain :plain
#{builds_trigger_url(@project.id, ref: 'REF_NAME')}?token=TOKEN&variables[RUN_NIGHTLY_BUILD]=true #{builds_trigger_url(@project.id, ref: 'REF_NAME')}?token=TOKEN&variables[RUN_NIGHTLY_BUILD]=true
---
title: Updated UI text to match style guidelines
merge_request: 52284
author:
type: other
...@@ -17292,6 +17292,9 @@ msgstr "" ...@@ -17292,6 +17292,9 @@ msgstr ""
msgid "Manage your license" msgid "Manage your license"
msgstr "" msgstr ""
msgid "Manage your project's triggers"
msgstr ""
msgid "Managed Account" msgid "Managed Account"
msgstr "" msgstr ""
...@@ -19519,6 +19522,9 @@ msgstr "" ...@@ -19519,6 +19522,9 @@ msgstr ""
msgid "No test coverage" msgid "No test coverage"
msgstr "" msgstr ""
msgid "No triggers exist yet. Use the form above to create one."
msgstr ""
msgid "No vulnerabilities present" msgid "No vulnerabilities present"
msgstr "" msgstr ""
...@@ -20667,6 +20673,9 @@ msgstr "" ...@@ -20667,6 +20673,9 @@ msgstr ""
msgid "Participants" msgid "Participants"
msgstr "" msgstr ""
msgid "Pass job variables"
msgstr ""
msgid "Passed" msgid "Passed"
msgstr "" msgstr ""
...@@ -28874,6 +28883,9 @@ msgstr "" ...@@ -28874,6 +28883,9 @@ msgstr ""
msgid "There was an error with the reCAPTCHA. Please solve the reCAPTCHA again." msgid "There was an error with the reCAPTCHA. Please solve the reCAPTCHA again."
msgstr "" msgstr ""
msgid "These examples show how to trigger this project's pipeline for a branch or tag."
msgstr ""
msgid "These existing issues have a similar title. It might be better to comment there instead of creating another similar issue." msgid "These existing issues have a similar title. It might be better to comment there instead of creating another similar issue."
msgstr "" msgstr ""
...@@ -30003,6 +30015,9 @@ msgstr "" ...@@ -30003,6 +30015,9 @@ msgstr ""
msgid "Toggles :%{name}: emoji award." msgid "Toggles :%{name}: emoji award."
msgstr "" msgstr ""
msgid "Token"
msgstr ""
msgid "Token valid until revoked" msgid "Token valid until revoked"
msgstr "" msgstr ""
...@@ -30251,6 +30266,12 @@ msgstr "" ...@@ -30251,6 +30266,12 @@ msgstr ""
msgid "Triggerer" msgid "Triggerer"
msgstr "" msgstr ""
msgid "Triggers|In each example, replace %{code_start}TOKEN%{code_end} with the trigger token you generated and replace %{code_start}REF_NAME%{code_end} with the branch or tag name."
msgstr ""
msgid "Triggers|To pass variables to the triggered pipeline, add %{code_start}variables[VARIABLE]=VALUE%{code_end} to the API request."
msgstr ""
msgid "Troubleshoot and monitor your application with tracing" msgid "Troubleshoot and monitor your application with tracing"
msgstr "" msgstr ""
...@@ -30944,12 +30965,18 @@ msgstr "" ...@@ -30944,12 +30965,18 @@ msgstr ""
msgid "Use %{code_start}::%{code_end} to create a %{link_start}scoped label set%{link_end} (eg. %{code_start}priority::1%{code_end})" msgid "Use %{code_start}::%{code_end} to create a %{link_start}scoped label set%{link_end} (eg. %{code_start}priority::1%{code_end})"
msgstr "" msgstr ""
msgid "Use .gitlab-ci.yml"
msgstr ""
msgid "Use Service Desk to connect with your users (e.g. to offer customer support) through email right inside GitLab" msgid "Use Service Desk to connect with your users (e.g. to offer customer support) through email right inside GitLab"
msgstr "" msgstr ""
msgid "Use an one time password authenticator on your mobile device or computer to enable two-factor authentication (2FA)." msgid "Use an one time password authenticator on your mobile device or computer to enable two-factor authentication (2FA)."
msgstr "" msgstr ""
msgid "Use cURL"
msgstr ""
msgid "Use custom color #FF0000" msgid "Use custom color #FF0000"
msgstr "" msgstr ""
...@@ -30968,6 +30995,9 @@ msgstr "" ...@@ -30968,6 +30995,9 @@ msgstr ""
msgid "Use this token to validate received payloads" msgid "Use this token to validate received payloads"
msgstr "" msgstr ""
msgid "Use webhook"
msgstr ""
msgid "Use your global notification setting" msgid "Use your global notification setting"
msgstr "" msgstr ""
...@@ -31908,6 +31938,9 @@ msgstr "" ...@@ -31908,6 +31938,9 @@ msgstr ""
msgid "Webhook Settings" msgid "Webhook Settings"
msgstr "" msgstr ""
msgid "Webhook:"
msgstr ""
msgid "Webhooks" msgid "Webhooks"
msgstr "" msgstr ""
...@@ -33313,6 +33346,9 @@ msgstr "" ...@@ -33313,6 +33346,9 @@ msgstr ""
msgid "by" msgid "by"
msgstr "" msgstr ""
msgid "cURL:"
msgstr ""
msgid "can contain only letters of the Base64 alphabet (RFC4648) with the addition of '@', ':' and '.'" msgid "can contain only letters of the Base64 alphabet (RFC4648) with the addition of '@', ':' and '.'"
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment