0

I have an application who when I click in button, the button trigger a pipeline in another project. After trigger, I get the informations like id etc. I would like to turn a specific stage (build stage) of my Gitlab pipeline to public using Gitlab API, and redirect the user to logs of terminal that stage.

estevan426
  • 123
  • 1
  • 6
  • What have you tried? What is your **specific** question? Add your `.gitlab-ci.yml` file and your runner configuration to your question (in short: [edit] in all the relevant details). – hakre Apr 15 '23 at 05:06

1 Answers1

0

"I would like to turn a specific stage (build stage) of my Gitlab pipeline to public using Gitlab API" has been outlined in How to trigger only specific stage of pipeline with gitlab API? as part of the CI/CD Collective on site, the relevant reference is Trigger pipelines by using the API and the Jobs API.

The Jobs API includes obtaining the logs 1 so that you can "redirect the user to logs of [...] that stage.".


  1. Get a log file: https://docs.gitlab.com/ee/api/jobs.html#get-a-log-file
hakre
  • 193,403
  • 52
  • 435
  • 836