Could not update commit status, please check if your scan creds

In the lab " Deploying Docker Container with Jenkis Pipleline" during the "Deploy to Production" stage  getting the following error

Could not update commit status, please check if your scan credentials belong to a member of the organization or a collaborator of the repository and repo:status scope is selected

Any pointers on the fix?

Full log

Started by user jenkins
10:31:39 Connecting to https://api.github.com using aravindsivaraman/****** (GitHub Key)
Obtained Jenkinsfile from 7bc0c1db3bec482485ae102fd96b86bc70754668
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/workspace/train-schedule_master-ESGKM5F7W43U3ERZNSPNBFMAA2G2YGCOVLG7NVF27GPRDB5CIFSQ
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/aravindsivaraman/cicd-pipeline-train-schedule-dockerdeploy.git # timeout=10
Fetching without tags
Fetching upstream changes from https://github.com/aravindsivaraman/cicd-pipeline-train-schedule-dockerdeploy.git
> git --version # timeout=10
using GIT_ASKPASS to set credentials GitHub Key
> git fetch --no-tags --progress https://github.com/aravindsivaraman/cicd-pipeline-train-schedule-dockerdeploy.git +refs/heads/master:refs/remotes/origin/master
Checking out Revision 7bc0c1db3bec482485ae102fd96b86bc70754668 (master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 7bc0c1db3bec482485ae102fd96b86bc70754668
Commit message: "Update Jenkinsfile"
> git rev-list --no-walk 7bc0c1db3bec482485ae102fd96b86bc70754668 # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] echo
Running build automation
[Pipeline] sh
[train-schedule_master-ESGKM5F7W43U3ERZNSPNBFMAA2G2YGCOVLG7NVF27GPRDB5CIFSQ] Running shell script
+ ./gradlew build --no-daemon
:nodeSetup UP-TO-DATE
:npmSetup UP-TO-DATE
:npmInstall UP-TO-DATE
:npm_test

> cicd-pipeline-train-schedule-git@0.0.0 test /var/lib/jenkins/workspace/train-schedule_master-ESGKM5F7W43U3ERZNSPNBFMAA2G2YGCOVLG7NVF27GPRDB5CIFSQ
> mocha



Index Page
[0mGET / [32m200 [0m350.513 ms - 829[0m
✓ renders successfully (392ms)

Trains API
[0mGET /trains [32m200 [0m3.212 ms - 1093[0m
✓ returns data successfully


2 passing (426ms)

:npm_build
:zip UP-TO-DATE
:build UP-TO-DATE

BUILD SUCCESSFUL in 13s
6 actionable tasks: 2 executed, 4 up-to-date
[Pipeline] archiveArtifacts
Archiving artifacts
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build Docker Image)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[train-schedule_master-ESGKM5F7W43U3ERZNSPNBFMAA2G2YGCOVLG7NVF27GPRDB5CIFSQ] Running shell script
+ docker build -t aravindsivaraman/train-schedule .
Sending build context to Docker daemon 466.9 kB

Step 1/7 : FROM node:carbon
---> 3b7ecd51ffe5
Step 2/7 : WORKDIR /usr/src/app
---> Using cache
---> b33ce422219c
Step 3/7 : COPY package*.json ./
---> Using cache
---> 63767bcf7221
Step 4/7 : RUN npm install
---> Using cache
---> 9791b24dcdaa
Step 5/7 : COPY . .
---> 2601bf4ad58c
Removing intermediate container 6ff7e585cac5
Step 6/7 : EXPOSE 8080
---> Running in e09598fa0f03
---> b5e3fb754819
Removing intermediate container e09598fa0f03
Step 7/7 : CMD npm start
---> Running in 3d0c357855a8
---> ed92a7c6a0a3
Removing intermediate container 3d0c357855a8
Successfully built ed92a7c6a0a3
[Pipeline] dockerFingerprintFrom
[Pipeline] sh
[train-schedule_master-ESGKM5F7W43U3ERZNSPNBFMAA2G2YGCOVLG7NVF27GPRDB5CIFSQ] Running shell script
+ docker inspect -f . aravindsivaraman/train-schedule
.
[Pipeline] withDockerContainer
Jenkins does not seem to be running inside a container
$ docker run -t -d -u 996:993 -w /var/lib/jenkins/workspace/train-schedule_master-ESGKM5F7W43U3ERZNSPNBFMAA2G2YGCOVLG7NVF27GPRDB5CIFSQ -v /var/lib/jenkins/workspace/train-schedule_master-ESGKM5F7W43U3ERZNSPNBFMAA2G2YGCOVLG7NVF27GPRDB5CIFSQ:/var/lib/jenkins/workspace/train-schedule_master-ESGKM5F7W43U3ERZNSPNBFMAA2G2YGCOVLG7NVF27GPRDB5CIFSQ:rw,z -v /var/lib/jenkins/workspace/train-schedule_master-ESGKM5F7W43U3ERZNSPNBFMAA2G2YGCOVLG7NVF27GPRDB5CIFSQ@tmp:/var/lib/jenkins/workspace/train-schedule_master-ESGKM5F7W43U3ERZNSPNBFMAA2G2YGCOVLG7NVF27GPRDB5CIFSQ@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** aravindsivaraman/train-schedule cat
$ docker top 6d086053e42d7e4a746873532092ea2dc46bd926b825686b9d4802b8f6d12160 -eo pid,comm
[Pipeline] {
[Pipeline] sh
[train-schedule_master-ESGKM5F7W43U3ERZNSPNBFMAA2G2YGCOVLG7NVF27GPRDB5CIFSQ] Running shell script
+ curl localhost:8080
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8080: Connection refused
+ echo

[Pipeline] }
$ docker stop --time=1 6d086053e42d7e4a746873532092ea2dc46bd926b825686b9d4802b8f6d12160
$ docker rm -f 6d086053e42d7e4a746873532092ea2dc46bd926b825686b9d4802b8f6d12160
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Push Docker Image)
[Pipeline] script
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withDockerRegistry
Wrote authentication to /var/lib/jenkins/.dockercfg
[Pipeline] {
[Pipeline] sh
[train-schedule_master-ESGKM5F7W43U3ERZNSPNBFMAA2G2YGCOVLG7NVF27GPRDB5CIFSQ] Running shell script
+ docker tag aravindsivaraman/train-schedule registry.hub.docker.com/aravindsivaraman/train-schedule:8
[Pipeline] sh
[train-schedule_master-ESGKM5F7W43U3ERZNSPNBFMAA2G2YGCOVLG7NVF27GPRDB5CIFSQ] Running shell script
+ docker push registry.hub.docker.com/aravindsivaraman/train-schedule:8
The push refers to a repository [registry.hub.docker.com/aravindsivaraman/train-schedule]
03402ad42a95: Preparing
2d55846baf0e: Preparing
94999b414a69: Preparing
6fd2eef64c08: Preparing
2bb63dd3f049: Preparing
e598d634d073: Preparing
4a6166f16a0e: Preparing
e02b32b1ff99: Preparing
f75e64f96dbc: Preparing
8f7ee6d76fd9: Preparing
c23711a84ad4: Preparing
90d1009ce6fe: Preparing
e598d634d073: Waiting
4a6166f16a0e: Waiting
e02b32b1ff99: Waiting
f75e64f96dbc: Waiting
8f7ee6d76fd9: Waiting
c23711a84ad4: Waiting
90d1009ce6fe: Waiting
94999b414a69: Layer already exists
2bb63dd3f049: Layer already exists
6fd2eef64c08: Layer already exists
2d55846baf0e: Layer already exists
e598d634d073: Layer already exists
4a6166f16a0e: Layer already exists
e02b32b1ff99: Layer already exists
f75e64f96dbc: Layer already exists
8f7ee6d76fd9: Layer already exists
c23711a84ad4: Layer already exists
90d1009ce6fe: Layer already exists
03402ad42a95: Pushed
8: digest: sha256:33816cc87ea39c6ead4d0287b510a2722688b093cf4ed59eb5456fd2cea519aa size: 2846
[Pipeline] sh
[train-schedule_master-ESGKM5F7W43U3ERZNSPNBFMAA2G2YGCOVLG7NVF27GPRDB5CIFSQ] Running shell script
+ docker tag aravindsivaraman/train-schedule registry.hub.docker.com/aravindsivaraman/train-schedule:latest
[Pipeline] sh
[train-schedule_master-ESGKM5F7W43U3ERZNSPNBFMAA2G2YGCOVLG7NVF27GPRDB5CIFSQ] Running shell script
+ docker push registry.hub.docker.com/aravindsivaraman/train-schedule:latest
The push refers to a repository [registry.hub.docker.com/aravindsivaraman/train-schedule]
03402ad42a95: Preparing
2d55846baf0e: Preparing
94999b414a69: Preparing
6fd2eef64c08: Preparing
2bb63dd3f049: Preparing
e598d634d073: Preparing
4a6166f16a0e: Preparing
e02b32b1ff99: Preparing
f75e64f96dbc: Preparing
8f7ee6d76fd9: Preparing
c23711a84ad4: Preparing
90d1009ce6fe: Preparing
e598d634d073: Waiting
4a6166f16a0e: Waiting
e02b32b1ff99: Waiting
f75e64f96dbc: Waiting
8f7ee6d76fd9: Waiting
c23711a84ad4: Waiting
90d1009ce6fe: Waiting
6fd2eef64c08: Layer already exists
2d55846baf0e: Layer already exists
94999b414a69: Layer already exists
03402ad42a95: Layer already exists
2bb63dd3f049: Layer already exists
e02b32b1ff99: Layer already exists
e598d634d073: Layer already exists
4a6166f16a0e: Layer already exists
8f7ee6d76fd9: Layer already exists
f75e64f96dbc: Layer already exists
c23711a84ad4: Layer already exists
90d1009ce6fe: Layer already exists
latest: digest: sha256:33816cc87ea39c6ead4d0287b510a2722688b093cf4ed59eb5456fd2cea519aa size: 2846
[Pipeline] }
[Pipeline] // withDockerRegistry
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (DeployToProduction)
[Pipeline] input
Deploy to Production?
Proceed or Abort
Approved by jenkins
[Pipeline] milestone
Trying to pass milestone 1
[Pipeline] withCredentials
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline

Could not update commit status, please check if your scan credentials belong to a member of the organization or a collaborator of the repository and repo:status scope is selected


GitHub has been notified of this commit’s build result

groovy.lang.MissingPropertyException: No such property: prod_ip for class: groovy.lang.Binding
at groovy.lang.Binding.getVariable(Binding.java:63)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:242)
at org.kohsuke.groovy.sandbox.impl.Checker$6.call(Checker.java:288)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:292)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:268)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:268)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:268)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:268)
at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:29)
at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20)
at WorkflowScript.run(WorkflowScript:46)
at ___cps.transform___(Native Method)
at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:74)
at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66)
at sun.reflect.GeneratedMethodAccessor305.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
at com.cloudbees.groovy.cps.Next.step(Next.java:83)
at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:122)
at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:261)
at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$101(SandboxContinuable.java:34)
at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda$run0$0(SandboxContinuable.java:59)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:58)
at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:174)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:332)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(CpsThreadGroup.java:83)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:244)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:232)
at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE

  • post-author-pic
    Will B
    12-07-2018

    GitHub has changed slightly since this course was created. You can get around that error by adding a new permission to your GitHub personal access token. Navigate to the token in GitHub, and add the "repo: status" permission. This should get you around that error.

Looking For Team Training?

Learn More