-
Bug
-
Resolution: Fixed
-
Minor
-
Jenkins=2.479.1
Drop Down ViewsTabBar plugin=1.7
-
-
2.485, 2.479.2
Programmatically created jobs (via posting XML to url /createItem/api/json?name=my_job_name) now attached to default view in Jenkins (i can see them in /var/lib/jenkins/config.xml eather, section <views><listView><jobNames>).
This behavior started since we've updated Jenkins from previous LTS (2.462.3) to current LTS (2.479.1)
Steps to reproduce:
- upgrade to Jenkins 2.479.1
- prepare any valid job XML config (see below)
curl -X POST -u "username:api-token" \ -H "Content-Type: application/xml" \ --data-binary @job.xml \ "https://<jenkins_host>/createItem/api/json?name=my_job_name"
Expected:
Job doesn't attached to any view
Actual:
Job attached to default view
job.xml example:
<?xml version='1.1' encoding='UTF-8'?> <project> <description>tst job from API</description> <keepDependencies>false</keepDependencies> <properties/> <canRoam>true</canRoam> <disabled>false</disabled> <triggers/> <builders/> <publishers/> <buildWrappers/> </project>
Jenkins settings:
Job attached to default view:
- links to
[JENKINS-74795] Job created via REST API attaches to default view (regression in 2.475)
Attachment | New: image-2024-10-31-19-56-01-815.png [ 63485 ] | |
Attachment | New: image-2024-10-31-19-53-42-792.png [ 63486 ] | |
Description |
Original:
Programmatically created jobs (via posting XML to url /createItem/api/json?name=my_job_name) now attached to default view in Jenkins (i can see them in /var/lib/jenkins/config.xml eather, section <views><listView><jobNames>).
This behavior started since we've updated Jenkins from previous LTS (2.462.3) to current LTS (2.479.1) |
New:
Programmatically created jobs (via posting XML to url /createItem/api/json?name=my_job_name) now attached to default view in Jenkins (i can see them in /var/lib/jenkins/config.xml eather, section <views><listView><jobNames>).
This behavior started since we've updated Jenkins from previous LTS (2.462.3) to current LTS (2.479.1) *Steps to reproduce:* # upgrade to Jenkins 2.479.1 # prepare any valid job XML config (see below) # {code:bash} curl -X POST -u "username:api-token" \ -H "Content-Type: application/xml" \ --data-binary @job.xml \ "https://<jenkins_host>/createItem/api/json?name=my_job_name" {code} *Expected:* Job doesn't attached to any view *Actual:* Job attached to default view {_}job.xml example{_}: {code:xml} <?xml version='1.1' encoding='UTF-8'?> <project> <description>tst job from API</description> <keepDependencies>false</keepDependencies> <properties/> <canRoam>true</canRoam> <disabled>false</disabled> <triggers/> <builders/> <publishers/> <buildWrappers/> </project> {code} Jenkins settings: !image-2024-10-31-19-53-42-792.png! Job attached to default view: !image-2024-10-31-19-56-01-815.png! |
Environment | Original: Jenkins 2.479.1 |
New:
Jenkins=2.479.1
Drop Down ViewsTabBar plugin=1.7 |
Attachment | New: plugins.txt [ 63487 ] |
Attachment | New: run-jenkins.sh [ 63488 ] |
Attachment | New: pipeline-config.xml [ 63489 ] |
Summary | Original: Jobs created via API start attaching to default view after update to Jenkins 2.479.1 | New: Jobs created via REST API attaches to default view after update to Jenkins 2.479.1 |
Please provide more details so that others can duplicate the issue. "How to report an issue" describes the type of information to be included.