Calendar day constants not allowed in pipeline scripts

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      While trying to implement a day-of-week check in one of our pipelines, I ran across the following error:

      Scripts not permitted to use staticField java.util.Calendar TUESDAY
      

      Currently, you're allowed to use Calendar.getInstance().get(Calendar.DAY_OF_WEEK), but not the constants you need to interpret the result. This seems like an obvious accidental omission.

            Assignee:
            Andrew Bayer
            Reporter:
            Moritz Baumann
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: