jenkinsci / jenkinsci/branch-api-plugin
[JENKINS-72102] incorrect config.xml for durationName for Seconds
- Dominant language
- Java
- Stars
- 39
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Description
When I set via UI the setting for durationName as Seconds, the config.xml show Minute instead (incorrect I would say).
If I set via UI duration name as Minute, the config.xml shows minute (i.e. without big M, but correct behaviour I think); the same goes for hour, etc.
I was relying on the config.xml to write a Job DSL script to configure another pipeline, and this caused me to make a mistake (i.e. I specified durationName in my DSL to Minute, hoping it will be set to Minute, but instead it was set to Seconds in the UI). The pipeline then also behaved like as if I set it as Seconds, causing my builds to trigger on incorrect times.
---
Originally reported by makeevolution, imported from: incorrect config.xml for durationName for Seconds
Raw content of original issue
When I set via UI the setting for durationName as Seconds, the config.xml show Minute instead (incorrect I would say).
If I set via UI duration name as Minute, the config.xml shows minute (i.e. without big M, but correct behaviour I think); the same goes for hour, etc.
I was relying on the config.xml to write a Job DSL script to configure another pipeline, and this caused me to make a mistake (i.e. I specified durationName in my DSL to Minute, hoping it will be set to Minute, but instead it was set to Seconds in the UI). The pipeline then also behaved like as if I set it as Seconds, causing my builds to trigger on incorrect times.
environment
```
Jenkins 2.401.1
Branch API plugin 2.1105.v472604208c55
```
2 attachments
- [setting on UI.PNG](https://issues.jenkins.io/secure/attachment/61234/setting%20on%20UI.PNG)
> 
- [setting on configxml.PNG](https://issues.jenkins.io/secure/attachment/61235/setting%20on%20configxml.PNG)
> 
Contributor guide
Assessment
This issue has not been assessed yet.