Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Job left in pending status in github after a merge #107

Open
ChrisRamsayITV opened this issue Mar 11, 2021 · 1 comment
Open

Job left in pending status in github after a merge #107

ChrisRamsayITV opened this issue Mar 11, 2021 · 1 comment
Labels

Comments

@ChrisRamsayITV
Copy link

Version report

Jenkins and plugins versions report:

Jenkins: 2.263.4
OS: Linux - 5.4.95-42.163.amzn2.x86_64
---
jacoco:3.1.1
greenballs:1.15.1
github-pr-comment-build:2.3
jquery-detached:1.2.1
gradle:1.36
build-pipeline-plugin:1.5.8
cloudbees-folder:6.15
ws-cleanup:0.39
durable-task:1.35
plain-credentials:1.7
pipeline-stage-view:2.19
blueocean-commons:1.24.4
google-oauth-plugin:1.0.3
metrics:4.0.2.7
rebuild:1.31
blueocean-pipeline-api-impl:1.24.4
strict-crumb-issuer:2.1.0
cobertura:1.16
htmlpublisher:1.25
handy-uri-templates-2-api:2.1.8-1.0
delivery-pipeline-plugin:1.4.2
pipeline-utility-steps:2.6.1
github:1.33.1
ant:1.11
bouncycastle-api:2.18
kubernetes-credentials:0.8.0
maven-plugin:3.8
blueocean-dashboard:1.24.4
workflow-job:2.40
config-file-provider:3.7.0
blueocean-i18n:1.24.4
job-dsl:1.77
compress-buildlog:1.2
pipeline-model-api:1.8.4
workflow-step-api:2.23
timestamper:1.11.8
blueocean-bitbucket-pipeline:1.24.4
build-blocker-plugin:1.7.6
kubernetes-client-api:4.13.2-1
code-coverage-api:1.3.2
workflow-aggregator:2.6
ldap:1.26
docker-commons:1.17
authentication-tokens:1.4
blueocean-github-pipeline:1.24.4
configuration-as-code:1.47
pipeline-model-extensions:1.8.4
blueocean-display-url:2.4.1
okhttp-api:3.14.9
pipeline-stage-tags-metadata:1.8.4
plugin-util-api:2.0.0
blueocean-config:1.24.4
echarts-api:5.0.1-1
workflow-multibranch:2.22
cloudbees-bitbucket-branch-source:2.9.7
aws-java-sdk:1.11.955
blueocean-rest:1.24.4
apache-httpcomponents-client-4-api:4.5.13-1.0
ssh-credentials:1.18.1
matrix-project:1.18
bootstrap4-api:4.6.0-2
blueocean-web:1.24.4
run-condition:1.5
variant:1.4
blueocean-pipeline-editor:1.24.4
lockable-resources:2.10
workflow-support:3.7
branch-api:2.6.2
display-url-api:2.3.4
conditional-buildstep:1.4.1
popper-api:1.16.1-2
github-autostatus:3.6.2
pam-auth:1.6
momentjs:1.1.1
blueocean-personalization:1.24.4
ace-editor:1.1
jquery:1.12.4-1
workflow-durable-task-step:2.37
workflow-cps-global-lib:2.18
pipeline-stage-step:2.5
favorite:2.3.2
token-macro:2.13
docker-workflow:1.26
blueocean-jwt:1.24.4
git-client:3.6.0
blueocean-events:1.24.4
git-server:1.9
ivy:2.1
blueocean-rest-impl:1.24.4
jsch:0.1.55.2
checks-api:1.6.0
blueocean-pipeline-scm-api:1.24.4
javadoc:1.6
kubernetes:1.29.2
structs:1.22
artifactory:3.10.5
pipeline-rest-api:2.19
blueocean-autofavorite:1.2.4
git:4.6.0
matrix-auth:2.6.5
handlebars:1.1.1
antisamy-markup-formatter:2.1
jdk-tool:1.5
workflow-scm-step:2.12
pipeline-milestone-step:1.3.2
github-branch-source:2.9.7
snakeyaml-api:1.27.0
pipeline-build-step:2.13
pipeline-input-step:2.12
oauth-credentials:0.4
aws-secrets-manager-credentials-provider:0.5.3
trilead-api:1.0.13
font-awesome-api:5.15.2-2
workflow-api:2.41
jackson2-api:2.12.1
blueocean-git-pipeline:1.24.4
github-api:1.123
ssh-agent:1.21
sse-gateway:1.24
ansicolor:0.7.5
script-security:1.76
jquery3-api:3.5.1-3
jenkins-design-language:1.24.4
mailer:1.32.1
scm-api:2.6.4
pipeline-model-definition:1.8.4
junit:1.48
folder-properties:1.2.1
pipeline-graph-analysis:1.10
jjwt-api:0.11.2-9.c8b45b8bb173
workflow-basic-steps:2.23
groovy:2.3
pubsub-light:1.13
credentials-binding:1.24
resource-disposer:0.15
slack:2.45
blueocean:1.24.4
command-launcher:1.5
active-directory:2.23
permissive-script-security:0.6
parameterized-trigger:2.39
credentials:2.3.15
workflow-cps:2.90
blueocean-core-js:1.24.4
  • What Operating System are you using (both controller, and any agents involved in the problem)?
Jenkins: 2.263.4
OS: Linux - 5.4.95-42.163.amzn2.x86_64

Reproduction steps

Firstly - great plugin :)

  • I have a merge job which runs automatically. After the merge has run, the checks are left in a pending state in github - although the jenkins job is marked as successful
  • Merge stage:
stage ('Merge') {
  withCredentials([usernamePassword(credentialsId: 'github-token', usernameVariable: 'GITHUB_USERNAME', passwordVariable: 'GITHUB_TOKEN',)]) {
    sh '''
      REPONAME=$(echo $CHANGE_URL | awk -F '/' '{print $5}')
      curl -X PUT -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/MYORG/${REPONAME}/pulls/${CHANGE_ID}/merge
    '''
  }
}

Results

Expected result:

Checks should marked as Passed

Actual result:

Checks are marked as Pending

minorchange

@ghost
Copy link

ghost commented Apr 8, 2021

any update on this issue? I have similar problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant