Git TaggingΒΆ

A common model of build management is to set a tag in your source control server for commits that pass tests.

You can easily set up a post-build task to push a tag upstream, armed with one key piece of information: in a Solano CI worker, origin isn’t the same as origin on your workstation. Instead, you’ll need to use the ci-origin remote.

So, to tag the current commit with the Solano CI build status, you could write a shell script like this one:

#!/bin/bash

datestr=`date -u +%Y%m%d-%H%M`
tagname="ci-${datestr}"
session_url="https://ci.solanolabs.com/1/reports/${TDDIUM_SESSION_ID}"
git tag -a ${tagname} -m "Build ${TDDIUM_BUILD_STATUS}: ${session_url}"
git push ci-origin master --tags