User Tools

Site Tools


gitlab_satis

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
gitlab_satis [2018/11/14 16:04] – [Optional] admingitlab_satis [2018/11/14 16:54] (current) – [Optional] admin
Line 124: Line 124:
 # GitLab install # GitLab install
 gitlab_url="https://gitlab.example.org/" gitlab_url="https://gitlab.example.org/"
 +
 +# Satis Project id (integer, not the project name)
 +satis_project_id="XX"
  
 #### Config end #### Config end
Line 152: Line 155:
  # Trigger Pipeline  # Trigger Pipeline
   if payloadBefore != payloadCurrent && composerExists == '200'   if payloadBefore != payloadCurrent && composerExists == '200'
-  exec("curl --request POST --form \"token=#{trigger_token}\" --form ref=master #{gitlab_url}/api/v4/projects/36/trigger/pipeline")+  exec("curl --request POST --form \"token=#{trigger_token}\" --form ref=master #{gitlab_url}/api/v4/projects/#{satis_project_id}/trigger/pipeline")
  end  end
   
 end end
 </code> </code>
gitlab_satis.1542207853.txt.gz · Last modified: 2018/11/14 16:04 by admin