Sha256: 2199bed9f39f4509eb387a1d2ef97240280fba25d7a358f1764df187ae6e99c3

Contents?: true

Size: 1.27 KB

Versions: 8

Compression:

Stored size: 1.27 KB

Contents

# Run any time a commit is merged to the 'master' branch
trigger:
  - master

# There is a separate pipeline for PRs (it does not do deploys)
pr: none

pool:
  vmImage: 'ubuntu-latest'

steps:
  - task: DownloadSecureFile@1
    name: "rubyGemsCredentials"
    inputs:
      secureFile: 'credentials'

  - task: UseRubyVersion@0
    inputs:
      versionSpec: '>= 2.5'

  - script: |
      gem install bundler
      bundle update
      bundle install --retry=3 --jobs=4
    displayName: 'bundle install'

  - task: Bash@3
    displayName: 'Run tests'
    inputs:
      targetType: 'inline'
      script: |
        bundle exec rake

  - task: PublishTestResults@2
    inputs:
      testResultsFormat: 'JUnit'
      testResultsFiles: '**/TEST-*.xml'
      mergeTestResults: true
      failTaskOnFailedTests: true
      testRunTitle: 'Publish tests'

  - task: Bash@3
    displayName: 'Build gem'
    inputs:
      targetType: 'inline'
      script: |
        gem build newrelic-fluentd-output.gemspec

  - task: Bash@3
    displayName: 'Publish gem to RubyGems'
    inputs:
      targetType: 'inline'
      script: |
        eval "$(rbenv init -)"
        mv $(rubyGemsCredentials.secureFilePath) ~/.gem/credentials
        sudo chmod 600 ~/.gem/credentials
        gem push fluent-plugin-newrelic-*.gem

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fluent-plugin-newrelic-1.2.3 merge-to-master-pipeline.yml
fluent-plugin-newrelic-1.2.2 merge-to-master-pipeline.yml
fluent-plugin-newrelic-1.2.1 merge-to-master-pipeline.yml
fluent-plugin-newrelic-1.2.0 merge-to-master-pipeline.yml
fluent-plugin-newrelic-1.1.10 merge-to-master-pipeline.yml
fluent-plugin-newrelic-1.1.9 merge-to-master-pipeline.yml
fluent-plugin-newrelic-1.1.8 merge-to-master-pipeline.yml
fluent-plugin-newrelic-1.1.5 merge-to-master-pipeline.yml