Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48333

NumberFormatException when using CHOICE parameters

    XMLWordPrintable

Details

    Description

      With a job using CHOICE parameters the parameterised scheduler fails
      java.lang.NumberFormatException: For input string: "STACK=base"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:580)
      at java.lang.Integer.parseInt(Integer.java:615)
      at java.text.MessageFormat.makeFormat(MessageFormat.java:1427)
      Caused: java.lang.IllegalArgumentException: can't parse argument number: STACK=base
      at java.text.MessageFormat.makeFormat(MessageFormat.java:1429)

      The schedule is defined as
      0 0 1 * * % STACK=base; OS_RELEASE=centos7

      Attachments

        Activity

          rumble Phil Rumble added a comment - Jenkins ver. 2.73.2     Parameterized Scheduler  v0.5
          dirathea Aldira Raharja added a comment - - edited

          Hi rumble, I'm recently encounter this issue too. In my case, the logs also display the following line : 

          02:24:04 	at jenkins.plugins.slack.ActiveNotifier$MessageBuilder.escape(ActiveNotifier.java:490)
          02:24:04 	at jenkins.plugins.slack.ActiveNotifier$MessageBuilder.append(ActiveNotifier.java:369)
          02:24:04 	at jenkins.plugins.slack.ActiveNotifier.started(ActiveNotifier.java:70)
          02:24:04 	at jenkins.plugins.slack.SlackNotifier.prebuild(SlackNotifier.java:345)

          Seems like the plugins has conflict with Jenkins Slack Plugin. That's odd...

          Once I'm remove the plugins from the job, the scheduler works as expected. Maybe it helps

          dirathea Aldira Raharja added a comment - - edited Hi rumble , I'm recently encounter this issue too. In my case, the logs also display the following line :  02:24:04 at jenkins.plugins.slack.ActiveNotifier$MessageBuilder.escape(ActiveNotifier.java:490) 02:24:04 at jenkins.plugins.slack.ActiveNotifier$MessageBuilder.append(ActiveNotifier.java:369) 02:24:04 at jenkins.plugins.slack.ActiveNotifier.started(ActiveNotifier.java:70) 02:24:04 at jenkins.plugins.slack.SlackNotifier.prebuild(SlackNotifier.java:345) Seems like the plugins has conflict with Jenkins Slack Plugin . That's odd... Once I'm remove the plugins from the job, the scheduler works as expected. Maybe it helps

          Is this still an issue on the latest version?

          raihaan Raihaan Shouhell added a comment - Is this still an issue on the latest version?

          Cannot reproduce on the latest version 0.9.1

          raihaan Raihaan Shouhell added a comment - Cannot reproduce on the latest version 0.9.1

          People

            Unassigned Unassigned
            rumble Phil Rumble
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: