how to pass git commit message from parent to child pipeline in gitlab?

Viewed 71

I have a commit message stored in /tmp/message file in parent's pipeline and I would like to send the contents of this file to the child pipeline in Gitlab. Can someone help me how I can do this using yml pipelines?

1 Answers

One approach is to use a cache (as seen here), or rather an artifact (as seen here), in order to store that message content in a file.

The idea is to share a file (artifact) or key/value (cache) between jobs.

Related