You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use gitlab's multi-project pipelines to trigger agent build (#19130)
* Use gitlab's multi-project pipelines to trigger agent build
* fix "only" section
* switch from only to rules
* Fix variables
* fix compare to
* hardcode compare_to target
* explain why we hardcode compare_to
* remove old stages
* fix and speed up logs pipeline validation
* add job to validate agent build
* remove validation step, default pipeline check is enough
* support triggering manually from any branch
* fix rules
* don't require manual build step in order for pipeline to pass
* add job to show pipeline as failed if manual trigger fails
* remove "validation" job, it won't do what we think it should
if [[ $GITLAB_USER_LOGIN = "codesync" ]]; then EMAIL=$(git show -s --format="%ae" "$CI_COMMIT_SHA"); else EMAIL=$GITLAB_USER_EMAIL; fi
77
-
SLACK_AUTHOR=$(echo $EMAIL | email2slackid)
78
-
if [ -z "$SLACK_AUTHOR" ]; then echo "${EMAIL} cannot be translated into a Slack user, defaulting to ${AGENT_BUILD_NOTIFICATIONS_SLACK_CHANNEL}"; SLACK_AUTHOR=$AGENT_BUILD_NOTIFICATIONS_SLACK_CHANNEL; fi
79
-
80
-
MESSAGE="Starting a build of the agent, watch ${CI_PIPELINE_URL}."
if [[ $GITLAB_USER_LOGIN = "codesync" ]]; then EMAIL=$(git show -s --format="%ae" "$CI_COMMIT_SHA"); else EMAIL=$GITLAB_USER_EMAIL; fi
110
-
SLACK_AUTHOR=$(echo $EMAIL | email2slackid)
111
-
if [ -z "$SLACK_AUTHOR" ]; then echo "${EMAIL} cannot be translated into a Slack user, defaulting to ${AGENT_BUILD_NOTIFICATIONS_SLACK_CHANNEL}"; SLACK_AUTHOR=$AGENT_BUILD_NOTIFICATIONS_SLACK_CHANNEL; fi
0 commit comments