jenkinsci / jenkinsci/credentials-plugin
[JENKINS-73790] Jenkins Token expiry after 2 hours on login
Open
component:credentials-plugin
imported-jira-issue
priority:blocker
resolution:unresolved
- Dominant language
- Java
- Stars
- 134
- Forks
- 258
- Avg merge
- 48m
- Merged PRs (30d)
- 1
Description
please find below steps to reproduce the token issue
Steps to re-produce the issue:
- Create new API credentials in Jenkins and pass that token as Environment Variable in Jenkins Script.
- In Jenkins upstream pipeline, add stage to download artifact from downstream pipeline by accessing Jenkins URL using the API credentials which is mentioned in Environment Variable.
- The pipeline will fail due to 401 Access Issue while trying to access URL to download artifact.
- The same pipeline will work for minimum 2 hours once we open the Jenkins URL in Jenkins Windows machine manually and tried to run the pipeline from Jenkins Website locally without any issue.
- After 2 hours, if we try to re-trigger the pipeline again its failing due to 401 access issue while trying to access URL to download artifact.
---
Originally reported by shivuboschbm, imported from: Jenkins Token expiry after 2 hours on login
Raw content of original issue
please find below steps to reproduce the token issue
Steps to re-produce the issue:
- Create new API credentials in Jenkins and pass that token as Environment Variable in Jenkins Script.
- In Jenkins upstream pipeline, add stage to download artifact from downstream pipeline by accessing Jenkins URL using the API credentials which is mentioned in Environment Variable.
- The pipeline will fail due to 401 Access Issue while trying to access URL to download artifact.
- The same pipeline will work for minimum 2 hours once we open the Jenkins URL in Jenkins Windows machine manually and tried to run the pipeline from Jenkins Website locally without any issue.
- After 2 hours, if we try to re-trigger the pipeline again its failing due to 401 access issue while trying to access URL to download artifact.
Contributor guide
Assessment
This issue has not been assessed yet.