Jenkins using Jenkinsfile does not report status on github

0

I have a Jenkinsfile file with the following content:

pipeline {
  agent none

  triggers {
    githubPush()
  }

  stages {
    stage('Installing dependencies') {
      agent {
        label 'rails'
      }

      steps {
        sh "gem install bundler"
        sh "bundle install --jobs=4"
      }
    }

    stage('Test') {
      agent {
        label 'rails'
      }

      steps {
        sh "bundle exec rspec"
      }
    }
  }
}

It happens that when I push the remote repository, it automatically recognizes and builds it. So far so good.

I wanted to display the build status for each commit or Pull Request in GitHub. I have tried several examples, none works

    
asked by anonymous 14.08.2018 / 00:40

0 answers