Jenkins $WORKSPACE variable override project internal properties "workspace"

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

XMLWordPrintable

      In a Maven Java project of mine, I've got an injected property called "workspace" which is overridden at runtime by Jenkins own $WORKSPACE.

      This property is in a .property file read by Spring configuration.

      A simple workaround would be to rename mine, but far from acceptable, as it shouldn't be up to Jenkins to force project inner properties name.

      Does someone have any other idea ?

      Also, to avoid such problem, Jenkins environment variables should be prefixed by a namespace like "$JENKINS_WORKSPACE", IMHO.

            Assignee:
            Unassigned
            Reporter:
            Mathieu BODIN
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: