grunt-get-last-pinned

Get the last pinned build number from a teamcity build and saves it to a file

Usage no npm install needed!

<script type="module">
  import gruntGetLastPinned from 'https://cdn.skypack.dev/grunt-get-last-pinned';
</script>

README

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'
      }
    }
  }
});