-
Bug
-
Resolution: Fixed
-
Major
-
System Properties
Name ↓ Value
awt.toolkit sun.awt.X11.XToolkit
buildInfoConfig.propertiesFile /home/jenkins/workspace/rafastealth_client-tests_PR-906@tmp/artifactory/buildInfo5201462940584537637.properties
com.sun.org.apache.xml.internal.dtm.DTMManager com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault
com.zaxxer.hikari.pool_number 1
executable-war /usr/lib/jenkins/jenkins.war
file.encoding UTF-8
file.encoding.pkg sun.io
file.separator /
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.awt.headless true
java.awt.printerjob sun.print.PSPrinterJob
java.class.path /usr/lib/jenkins/jenkins.war
java.class.version 52.0
java.endorsed.dirs /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/endorsed
java.ext.dirs /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/ext:/usr/java/packages/lib/ext
java.home /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre
java.io.tmpdir /tmp
java.library.path /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.runtime.name OpenJDK Runtime Environment
java.runtime.version 1.8.0_201-b09
java.specification.name Java Platform API Specification
java.specification.vendor Oracle Corporation
java.specification.version 1.8
java.vendor Oracle Corporation
java.vendor.url http://java.oracle.com/
java.vendor.url.bug http://bugreport.sun.com/bugreport/
java.version 1.8.0_201
java.vm.info mixed mode
java.vm.name OpenJDK 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Oracle Corporation
java.vm.specification.version 1.8
java.vm.vendor Oracle Corporation
java.vm.version 25.201-b09
javax.xml.parsers.DocumentBuilderFactory com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
JENKINS_HOME /var/lib/jenkins
jetty.git.hash 27208684755d94a92186989f695db2d7b21ebc51
jna.loaded true
jna.platform.library.path /usr/lib64:/lib64:/usr/lib:/lib
jnidispatch.path /tmp/jna--1712433994/jna8894856556497448699.tmp
line.separator
mail.smtp.sendpartial true
mail.smtps.sendpartial true
org.apache.xml.security.ignoreLineBreaks true
os.arch amd64
os.name Linux
os.version 4.14.114-82.97.amzn1.x86_64
path.separator :
sun.arch.data.model 64
sun.boot.class.path /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/rt.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/jfr.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/classes
sun.boot.library.path /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/amd64
sun.cpu.endian little
sun.cpu.isalist
sun.font.fontmanager sun.awt.X11FontManager
sun.io.unicode.encoding UnicodeLittle
sun.java.command /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
sun.java.launcher SUN_STANDARD
sun.jnu.encoding UTF-8
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level unknown
svnkit.http.methods Digest,Basic,NTLM,Negotiate
svnkit.ssh2.persistent false
user.country US
user.dir /
user.home /var/lib/jenkins
user.language en
user.name jenkins
user.timezone Universal
Environment Variables
Name ↓ Value
_ /etc/alternatives/java
HOME /var/lib/jenkins
LANG en_US.UTF-8
LOGNAME jenkins
PATH /sbin:/usr/sbin:/bin:/usr/bin
PWD /
SHELL /bin/bash
SHLVL 3
TERM linux
USER jenkins
Plugins
Name ↓ Version Enabled
ace-editor 1.1 true
amazon-ecs 1.20 true
analysis-core 1.96 true
android-lint 2.6 true
anka-build 1.18.1 true
ansicolor 0.6.2 true
ant 1.9 true
antisamy-markup-formatter 1.5 true
apache-httpcomponents-client-4-api 4.5.5-3.0 true
artifactory 3.2.3 true
authentication-tokens 1.3 true
aws-credentials 1.27 true
aws-java-sdk 1.11.562 true
basic-branch-build-strategies 1.3.2 true
bouncycastle-api 2.17 true
branch-api 2.5.2 true
browserstack-integration 1.1.3 true
build-timeout 1.19 true
cloudbees-folder 6.8 true
codebuilder-cloud 1.0.1 true
command-launcher 1.3 true
config-file-provider 3.6 true
configuration-as-code 1.20 true
credentials 2.2.0 true
credentials-binding 1.19 true
cucumber-reports 4.7.0 true
display-url-api 2.3.1 true
docker-commons 1.15 true
docker-workflow 1.18 true
durable-task 1.29 true
ec2 1.43 true
email-ext 2.66 true
emailext-template 1.1 true
external-monitor-job 1.7 true
gatling 1.2.6 true
git 3.10.0 true
git-client 2.7.7 true
git-server 1.7 true
github 1.29.4 true
github-api 1.95 true
github-branch-source 2.5.3 false
github-scm-trait-notification-context 1.1 false
gradle 1.32 true
h2-api 1.4.199 true
handlebars 1.1.1 true
ivy 2.1 true
jackson2-api 2.9.9 true
javadoc 1.5 true
jdk-tool 1.2 true
jquery 1.12.4-0 true
jquery-detached 1.2.1 true
jquery-ui 1.0.2 true
jsch 0.1.55 true
junit 1.28 true
ldap 1.20 true
lockable-resources 2.5 true
mailer 1.23 true
mapdb-api 1.0.9.0 true
matrix-auth 2.4.2 true
matrix-project 1.14 true
maven-plugin 3.2 true
momentjs 1.1.1 true
node-iterator-api 1.5.0 true
pam-auth 1.5.1 true
pipeline-build-step 2.9 true
pipeline-github-lib 1.0 true
pipeline-graph-analysis 1.10 true
pipeline-input-step 2.10 true
pipeline-maven 3.7.1 true
pipeline-milestone-step 1.3.1 true
pipeline-model-api 1.3.9 true
pipeline-model-declarative-agent 1.1.1 true
pipeline-model-definition 1.3.9 true
pipeline-model-extensions 1.3.9 true
pipeline-rest-api 2.11 true
pipeline-stage-step 2.3 true
pipeline-stage-tags-metadata 1.3.9 true
pipeline-stage-view 2.11 true
plain-credentials 1.5 true
resource-disposer 0.12 true
role-strategy 2.11 true
saml 1.1.2 true
scm-api 2.4.1 true
script-security 1.60 true
slack 2.24 true
sonar 2.9 true
ssh-agent 1.17 true
ssh-credentials 1.17 true
ssh-slaves 1.30.0 true
structs 1.19 true
subversion 2.12.1 true
timestamper 1.9 true
token-macro 2.8 true
variant 1.2 true
veertu-ci 1.0-SNAPSHOT (private-fce2a028-jenkins) true
windows-slaves 1.4 true
workflow-aggregator 2.6 true
workflow-api 2.35 true
workflow-basic-steps 2.18 true
workflow-cps 2.70 true
workflow-cps-global-lib 2.13 true
workflow-durable-task-step 2.31 true
workflow-job 2.32 true
workflow-multibranch 2.21 true
workflow-scm-step 2.9 true
workflow-step-api 2.20 true
workflow-support 3.3 true
ws-cleanup 0.37 trueSystem Properties Name ↓ Value awt.toolkit sun.awt.X11.XToolkit buildInfoConfig.propertiesFile /home/jenkins/workspace/rafastealth_client-tests_PR-906@tmp/artifactory/buildInfo5201462940584537637.properties com.sun.org.apache.xml.internal.dtm.DTMManager com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault com.zaxxer.hikari.pool_number 1 executable-war /usr/lib/jenkins/jenkins.war file.encoding UTF-8 file.encoding.pkg sun.io file.separator / java.awt.graphicsenv sun.awt.X11GraphicsEnvironment java.awt.headless true java.awt.printerjob sun.print.PSPrinterJob java.class.path /usr/lib/jenkins/jenkins.war java.class.version 52.0 java.endorsed.dirs /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/endorsed java.ext.dirs /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/ext:/usr/java/packages/lib/ext java.home /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre java.io.tmpdir /tmp java.library.path /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib java.runtime.name OpenJDK Runtime Environment java.runtime.version 1.8.0_201-b09 java.specification.name Java Platform API Specification java.specification.vendor Oracle Corporation java.specification.version 1.8 java.vendor Oracle Corporation java.vendor.url http://java.oracle.com/ java.vendor.url.bug http://bugreport.sun.com/bugreport/ java.version 1.8.0_201 java.vm.info mixed mode java.vm.name OpenJDK 64-Bit Server VM java.vm.specification.name Java Virtual Machine Specification java.vm.specification.vendor Oracle Corporation java.vm.specification.version 1.8 java.vm.vendor Oracle Corporation java.vm.version 25.201-b09 javax.xml.parsers.DocumentBuilderFactory com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl JENKINS_HOME /var/lib/jenkins jetty.git.hash 27208684755d94a92186989f695db2d7b21ebc51 jna.loaded true jna.platform.library.path /usr/lib64:/lib64:/usr/lib:/lib jnidispatch.path /tmp/jna--1712433994/jna8894856556497448699.tmp line.separator mail.smtp.sendpartial true mail.smtps.sendpartial true org.apache.xml.security.ignoreLineBreaks true os.arch amd64 os.name Linux os.version 4.14.114-82.97.amzn1.x86_64 path.separator : sun.arch.data.model 64 sun.boot.class.path /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/rt.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/jfr.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/classes sun.boot.library.path /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.43.amzn1.x86_64/jre/lib/amd64 sun.cpu.endian little sun.cpu.isalist sun.font.fontmanager sun.awt.X11FontManager sun.io.unicode.encoding UnicodeLittle sun.java.command /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20 sun.java.launcher SUN_STANDARD sun.jnu.encoding UTF-8 sun.management.compiler HotSpot 64-Bit Tiered Compilers sun.os.patch.level unknown svnkit.http.methods Digest,Basic,NTLM,Negotiate svnkit.ssh2.persistent false user.country US user.dir / user.home /var/lib/jenkins user.language en user.name jenkins user.timezone Universal Environment Variables Name ↓ Value _ /etc/alternatives/java HOME /var/lib/jenkins LANG en_US.UTF-8 LOGNAME jenkins PATH /sbin:/usr/sbin:/bin:/usr/bin PWD / SHELL /bin/bash SHLVL 3 TERM linux USER jenkins Plugins Name ↓ Version Enabled ace-editor 1.1 true amazon-ecs 1.20 true analysis-core 1.96 true android-lint 2.6 true anka-build 1.18.1 true ansicolor 0.6.2 true ant 1.9 true antisamy-markup-formatter 1.5 true apache-httpcomponents-client-4-api 4.5.5-3.0 true artifactory 3.2.3 true authentication-tokens 1.3 true aws-credentials 1.27 true aws-java-sdk 1.11.562 true basic-branch-build-strategies 1.3.2 true bouncycastle-api 2.17 true branch-api 2.5.2 true browserstack-integration 1.1.3 true build-timeout 1.19 true cloudbees-folder 6.8 true codebuilder-cloud 1.0.1 true command-launcher 1.3 true config-file-provider 3.6 true configuration-as-code 1.20 true credentials 2.2.0 true credentials-binding 1.19 true cucumber-reports 4.7.0 true display-url-api 2.3.1 true docker-commons 1.15 true docker-workflow 1.18 true durable-task 1.29 true ec2 1.43 true email-ext 2.66 true emailext-template 1.1 true external-monitor-job 1.7 true gatling 1.2.6 true git 3.10.0 true git-client 2.7.7 true git-server 1.7 true github 1.29.4 true github-api 1.95 true github-branch-source 2.5.3 false github-scm-trait-notification-context 1.1 false gradle 1.32 true h2-api 1.4.199 true handlebars 1.1.1 true ivy 2.1 true jackson2-api 2.9.9 true javadoc 1.5 true jdk-tool 1.2 true jquery 1.12.4-0 true jquery-detached 1.2.1 true jquery-ui 1.0.2 true jsch 0.1.55 true junit 1.28 true ldap 1.20 true lockable-resources 2.5 true mailer 1.23 true mapdb-api 1.0.9.0 true matrix-auth 2.4.2 true matrix-project 1.14 true maven-plugin 3.2 true momentjs 1.1.1 true node-iterator-api 1.5.0 true pam-auth 1.5.1 true pipeline-build-step 2.9 true pipeline-github-lib 1.0 true pipeline-graph-analysis 1.10 true pipeline-input-step 2.10 true pipeline-maven 3.7.1 true pipeline-milestone-step 1.3.1 true pipeline-model-api 1.3.9 true pipeline-model-declarative-agent 1.1.1 true pipeline-model-definition 1.3.9 true pipeline-model-extensions 1.3.9 true pipeline-rest-api 2.11 true pipeline-stage-step 2.3 true pipeline-stage-tags-metadata 1.3.9 true pipeline-stage-view 2.11 true plain-credentials 1.5 true resource-disposer 0.12 true role-strategy 2.11 true saml 1.1.2 true scm-api 2.4.1 true script-security 1.60 true slack 2.24 true sonar 2.9 true ssh-agent 1.17 true ssh-credentials 1.17 true ssh-slaves 1.30.0 true structs 1.19 true subversion 2.12.1 true timestamper 1.9 true token-macro 2.8 true variant 1.2 true veertu-ci 1.0-SNAPSHOT (private-fce2a028-jenkins) true windows-slaves 1.4 true workflow-aggregator 2.6 true workflow-api 2.35 true workflow-basic-steps 2.18 true workflow-cps 2.70 true workflow-cps-global-lib 2.13 true workflow-durable-task-step 2.31 true workflow-job 2.32 true workflow-multibranch 2.21 true workflow-scm-step 2.9 true workflow-step-api 2.20 true workflow-support 3.3 true ws-cleanup 0.37 true
Issue:
When I click Jenkins reports a tag that exists as "Not Found" and failing the build with this message:
12:52:41 Branch indexing
19:52:41 [2019-06-24T19:52:41.964Z] Connecting to https://api.github.com using dev-rafabuildadmin/****** (github dev-rafabuildadmin user (required to publish build/deploy status))
12:52:42 java.io.FileNotFoundException: https://api.github.com/repos/rafastealth/ios-patient-client/git/refs/tags/0.0.4
12:52:42 at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:243)
12:52:42 at com.squareup.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210)
12:52:42 at com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:25)
12:52:42 at org.kohsuke.github.Requester.parse(Requester.java:625)
12:52:42 at org.kohsuke.github.Requester.parse(Requester.java:607)
12:52:42 at org.kohsuke.github.Requester._to(Requester.java:285)
12:52:42 Caused: org.kohsuke.github.GHFileNotFoundException: {"message":"Not Found","documentation_url":"https://developer.github.com/v3/git/refs/#get-a-reference"}
12:52:42 at org.kohsuke.github.Requester.handleApiError(Requester.java:699)
12:52:42 at org.kohsuke.github.Requester._to(Requester.java:306)
12:52:42 at org.kohsuke.github.Requester.to(Requester.java:247)
12:52:42 at org.kohsuke.github.GHRepository.getRef(GHRepository.java:891)
12:52:42 at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:1521)
12:52:42 at jenkins.scm.api.SCMSource.fetch(SCMSource.java:582)
12:52:42 at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:98)
12:52:42 at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293)
12:52:42 at hudson.model.ResourceController.execute(ResourceController.java:97)
12:52:42 at hudson.model.Executor.run(Executor.java:429)
12:52:42 Finished: FAILURE
See "github_tag.png" for proof the tag does indeed exist. I've tried re-indexing, but the issue never resolves.
Repro Steps:
- Set up tags to build with your repo (see tag_setup.png)
- Create a tag (say, 0.0.4) in your git repo and push it up to origin. This will cause it to auto build.
- In git, delete the tag and push that deletion up to Github.
- In Jenkins, in the job made by the tag, click "Build Now" - It should fail to find the tag
- In git, tag a new commit with the same tag name (0.0.4) as above and push it up to Github.
- In Jenkins, in the job made by the tag, click "Build Now" - Note that Jenkins still can't find the tag even though it exists.