node package manager

grunt-get-last-pinned

grunt-get-last-pinned Build Status NPM version Dependencies

Get the last-pinned build number and change version from a teamcity build

Pretty esoteric at the moment, so maybe it's only me that'll use it.

Provides the task get-last-pinned-buildnumber, which downloads the buildNumber and buildLastChangeVersion of the last pinned build from the teamcity api and populates the grunt.option('buildNumber') and grunt.option('buildLastChangeVersion') properties.

grunt.initConfig({
  'get-last-pinned-buildnumber': {
    'myproject': {
      options: {
        url: 'http://myteamcity.server',
        buildTypeId: 'mybuildTypeId'
      }
    }
  }
});