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