Showing ConcourseCI build status on github pull requests - github

I currently have a fully functioning pipeline that's been deployed to a concourse server. It will receive push events from a github repo, and run the pipeline as such.
I have a webhook that's also able to talk from github to the concourseCI server.
It looks something like this:
https://concourse.myorganization.app/api/v1/teams/my_team/pipelines/git-repo-name/resources/git-repo-pull-requests/check/webhook?webhook_token=some_token
I have it dropped into the settings of the Github repo as a webhook, and it's returning 2xx after each push to a pull request. How can I get the status of the build in ConcourseCI to show up on the pull request like this

GitHub build status is independent from the webhook: the webhook goes from GitHub to Concourse, while here we need the opposite direction: from Concourse to GitHub. Also, it cannot be synchronous, since the webhook triggers a build that takes time to complete.
You need to signal the build status with a Concourse resource. The one I prefer (since I wrote it :-) is https://github.com/Pix4D/cogito.

Related

GitHub and Jenkins Pull Request Check

I have a question regarding GitHub checks for Pull Request. I have an integration between GitHub and Jenkins, which each time a Pull Request is opened it will trigger a Jenkins jobs to run. But how do I configure it so that if the Jenkins job is successful, it will pass back a Check validation back to GitHub Pull Request as a success as shown in below image?
I created a GitHub App and the Jenkins job is able to trigger during Pull Request, but no status is pass back. I think I am missing a step somewhere, but not sure which.

Triggering Pull Request Builds automatically on draft pull requests in Azure DevOps (ADO)

If I make a pull request in ADO from one of my branches then any commits I push to my branch automatically trigger the build pipeline:
This is configured in the build validation branch policies on master:
But for draft pull requests I need to trigger builds manually:
The documentation (here) does not mention any distinction between active and draft pull requests. How do I configure my project so that commits to branches in a draft pull requests automatically trigger a build?
According to the docs:
Draft pull requests do not include reviewers or run builds by default
but allow you to manually add reviewers and run builds. To promote the
pull request to a normal pull request, simply click the Publish button
from the pull request detail page.
So, it looks like you experience the expected behavior.

Circle ci trigger a build on pull request creation or update

We are usng circle ci and github.
So i have a remote k8 cluster for staging, on which we have our test suite.
I have a project on github, and id like to deploy and run the tests on the cluster everytime a pull request is created or updated. The reason for doing it on pull requests is that we wwant to merge the feature branch with master and then run the tests on the rmeote testing cluster:
I have read a few articles, but nothing that explains to me how this could be achieved.
Github web hooks calling circle ci on pull request creation or update?
Build status based on the result of remote testing?
Not currently possible on CircleCI, they do not expose all the payload from a github.
its on their todo list
Yes it is possible now, just don't specify any branch and it will trigger on every pull requests creation or update.

Showing Jenkins pipeline status against pull requests in GitHub

I have recently started using Jenkins Pipelines and have a multibranch job configured which is happily picking up Jenkinsfile on one of my branches.
I have seen in screenshots on posts\articles that Jenkins can report back to pull requests in GitHub the status of whether the branch has passed\failed checks performed in the pipeline.
I am not seeing any such feedback for my pull request I have opened, I can see in Jenkins it has triggered a pipeline build which has passed.
How can I get the notification to show the pipeline checks have passed in GitHub. Do I need to configure something else?
I found out this was simply down to me using the Git instead of GitHub sources option when configuring the multibranch pipeline job in Jenkins.
The docs for the GitHub Branch Source plugin gave me the clues!
I now get status messages on my pull requests showing whether pipeline checks are pending\failed\passed.
Check out the Github Pull Request Builder Plugin, it should do what you require: https://wiki.jenkins-ci.org/display/JENKINS/GitHub+pull+request+builder+plugin

How to trigger Jenkins Builds from Github Pull Requests

Using an organization type project in jenkins, I expected the pull requests to get automatically built.
I have a github webhook created in github settings. but nothing seems to be done?
Is there anything i need to put in my jenkinsfile to make this happen