WTBuildHelpersGem
This is a set of scripts for multiple platforms to help with building and testing tasks specific to WillowTree's pipelines and integrations.
JIRA
perform_jira_update
Updates any jira tickets based on the supplied git commit range.
Environment Variables
- JIRA_URL - Base url for JIRA
- JIRA_USERNAME - Username for accessing JIRA
- JIRA_PASSWORD - Password for accessing JIRA
- Supplied by Travis-CI:
- TRAVIS_COMMIT_RANGE - range of commits to update
- TRAVIS_BUILD_NUMBER - build number
- Supplied by TeamCity
- BUILD_NUMBER - build number
- TRAMCITY_COMMIT_RANGE - created by teamcity_git_range_fetch
Command Line Usage:
$ wtbuild_jira_update
TeamCity
teamcity_git_range_fetch
Fetches the last good build from the TeamCity server and uses that to produce the a git commit range.
Command Line Usage (from TeamCity build step):
$ wtbuild_teamcity_fetch_git_range "%teamcity.serverUrl%" "%system.teamcity.buildType.id%" "%system.teamcity.auth.userId%" "%system.teamcity.auth.password%"``
Installation
Add this line to your application's Gemfile:
gem 'WTBuildHelpersGem'
And then execute:
$ bundle
Or install it yourself as:
$ gem install WTBuildHelpersGem
Usage
Development
After checking out the repo, run bin/setup to install dependencies. Then, run bin/console for an interactive prompt that will allow you to experiment.