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

Support of environment variables

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Would be nice to have support for environment variables, like ${JENKINS_WORKSPACE}, in thinBackup settings, e.g. Backup directory.

        Attachments

          Activity

          Hide
          tofuatjava Thomas Fürer added a comment -

          Integrated in thinBackup #22
          o JENKINS-10994: more fixes for environment var support. not yet tested extensively
          o JENKINS-10994: more fixes for environment var support. not yet tested extensively
          o JENKINS-10994: more fixes for environment var support. not yet tested extensively
          o JENKINS-10994: better error handling for env var replacement (and (non-related) made the HudsonBackup unit-testing-specific constructor protected)
          + JENKINS-10994: added algorithm to expand environment variables in a string, but did not yet apply to backup path

          alienllama : 39913
          Files :

          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java

          alienllama : 39912
          Files :

          • /trunk/hudson/plugins/thinBackup/src/main/webapp/help/help-backupPath.html
          • /trunk/hudson/plugins/thinBackup/src/test/java/org/jvnet/hudson/plugins/thinbackup/backup/TestHudsonBackup.java
          • /trunk/hudson/plugins/thinBackup/src/test/java/org/jvnet/hudson/plugins/thinbackup/utils/TestUtils.java

          alienllama : 39911
          Files :

          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/EnvironmentVariableNotDefinedException.java
          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPeriodicWork.java
          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupMgmtLink.java
          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/Utils.java
          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPluginImpl.java
          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java

          alienllama : 39904
          Files :

          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/Utils.java
          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java
          • /trunk/hudson/plugins/thinBackup/src/test/java/org/jvnet/hudson/plugins/thinbackup/utils/TestUtils.java

          alienllama : 39903
          Files :

          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/Utils.java
          • /trunk/hudson/plugins/thinBackup/src/test/java/org/jvnet/hudson/plugins/thinbackup/utils/TestUtils.java
          Show
          tofuatjava Thomas Fürer added a comment - Integrated in thinBackup #22 o JENKINS-10994 : more fixes for environment var support. not yet tested extensively o JENKINS-10994 : more fixes for environment var support. not yet tested extensively o JENKINS-10994 : more fixes for environment var support. not yet tested extensively o JENKINS-10994 : better error handling for env var replacement (and (non-related) made the HudsonBackup unit-testing-specific constructor protected) + JENKINS-10994 : added algorithm to expand environment variables in a string, but did not yet apply to backup path alienllama : 39913 Files : /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java alienllama : 39912 Files : /trunk/hudson/plugins/thinBackup/src/main/webapp/help/help-backupPath.html /trunk/hudson/plugins/thinBackup/src/test/java/org/jvnet/hudson/plugins/thinbackup/backup/TestHudsonBackup.java /trunk/hudson/plugins/thinBackup/src/test/java/org/jvnet/hudson/plugins/thinbackup/utils/TestUtils.java alienllama : 39911 Files : /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/EnvironmentVariableNotDefinedException.java /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPeriodicWork.java /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupMgmtLink.java /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/Utils.java /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPluginImpl.java /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java alienllama : 39904 Files : /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/Utils.java /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java /trunk/hudson/plugins/thinBackup/src/test/java/org/jvnet/hudson/plugins/thinbackup/utils/TestUtils.java alienllama : 39903 Files : /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/Utils.java /trunk/hudson/plugins/thinBackup/src/test/java/org/jvnet/hudson/plugins/thinbackup/utils/TestUtils.java
          Hide
          alienllama Matthias Steinkogler added a comment -

          you're welcome, hugo

          Show
          alienllama Matthias Steinkogler added a comment - you're welcome, hugo
          Hide
          tofuatjava Thomas Fürer added a comment -

          Integrated in thinBackup #26
          o JENKINS-10994: finish env var expansion (Revision 40136)
          o JENKINS-10994: finish env var expansion (Revision 40135)
          o JENKINS-10994: more fixes for environment var support. not yet tested extensively (Revision 40133)

          Result = UNSTABLE
          alienllama : 40136
          Files :

          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPluginImpl.java
          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/Utils.java

          alienllama : 40135
          Files :

          • /trunk/hudson/plugins/thinBackup/src/test/java/org/jvnet/hudson/plugins/thinbackup/utils/TestUtils.java

          alienllama : 40133
          Files :

          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupMgmtLink.java
          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPeriodicWork.java
          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPluginImpl.java
          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/BackupSet.java
          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/DirectoriesZipper.java
          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/DirectoryCleaner.java
          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java
          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/PluginList.java
          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/hudson/model/AsyncPeriodicWork.java
          • /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/restore/HudsonRestore.java
          Show
          tofuatjava Thomas Fürer added a comment - Integrated in thinBackup #26 o JENKINS-10994 : finish env var expansion (Revision 40136) o JENKINS-10994 : finish env var expansion (Revision 40135) o JENKINS-10994 : more fixes for environment var support. not yet tested extensively (Revision 40133) Result = UNSTABLE alienllama : 40136 Files : /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPluginImpl.java /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/Utils.java alienllama : 40135 Files : /trunk/hudson/plugins/thinBackup/src/test/java/org/jvnet/hudson/plugins/thinbackup/utils/TestUtils.java alienllama : 40133 Files : /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupMgmtLink.java /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPeriodicWork.java /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPluginImpl.java /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/BackupSet.java /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/DirectoriesZipper.java /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/DirectoryCleaner.java /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/PluginList.java /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/hudson/model/AsyncPeriodicWork.java /trunk/hudson/plugins/thinBackup/src/main/java/org/jvnet/hudson/plugins/thinbackup/restore/HudsonRestore.java
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: alienllama
          Path:
          src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/Utils.java
          src/test/java/org/jvnet/hudson/plugins/thinbackup/utils/TestUtils.java
          http://jenkins-ci.org/commit/thin-backup-plugin/e6de9f0d2ef0d8c39eaedc07095cb095bf0e9941
          Log:
          + JENKINS-10994: added algorithm to expand environment variables in a string, but did not yet apply to backup path

          git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@39903 71c3de6d-444a-0410-be80-ed276b4c234a

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: alienllama Path: src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/Utils.java src/test/java/org/jvnet/hudson/plugins/thinbackup/utils/TestUtils.java http://jenkins-ci.org/commit/thin-backup-plugin/e6de9f0d2ef0d8c39eaedc07095cb095bf0e9941 Log: + JENKINS-10994 : added algorithm to expand environment variables in a string, but did not yet apply to backup path git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@39903 71c3de6d-444a-0410-be80-ed276b4c234a
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: alienllama
          Path:
          src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java
          src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/Utils.java
          src/test/java/org/jvnet/hudson/plugins/thinbackup/utils/TestUtils.java
          http://jenkins-ci.org/commit/thin-backup-plugin/c3ebcefac5bdb9a4b3ef8de3460fc93f44376f8f
          Log:
          o JENKINS-10994: better error handling for env var replacement (and (non-related) made the HudsonBackup unit-testing-specific constructor protected)

          git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@39904 71c3de6d-444a-0410-be80-ed276b4c234a

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: alienllama Path: src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/Utils.java src/test/java/org/jvnet/hudson/plugins/thinbackup/utils/TestUtils.java http://jenkins-ci.org/commit/thin-backup-plugin/c3ebcefac5bdb9a4b3ef8de3460fc93f44376f8f Log: o JENKINS-10994 : better error handling for env var replacement (and (non-related) made the HudsonBackup unit-testing-specific constructor protected) git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@39904 71c3de6d-444a-0410-be80-ed276b4c234a
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: alienllama
          Path:
          src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupMgmtLink.java
          src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPeriodicWork.java
          src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPluginImpl.java
          src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java
          src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/EnvironmentVariableNotDefinedException.java
          src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/Utils.java
          http://jenkins-ci.org/commit/thin-backup-plugin/0101c4f9cc2be131110eea450dc03e83ead391a8
          Log:
          o JENKINS-10994: more fixes for environment var support. not yet tested extensively

          git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@39911 71c3de6d-444a-0410-be80-ed276b4c234a

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: alienllama Path: src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupMgmtLink.java src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPeriodicWork.java src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPluginImpl.java src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/EnvironmentVariableNotDefinedException.java src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/Utils.java http://jenkins-ci.org/commit/thin-backup-plugin/0101c4f9cc2be131110eea450dc03e83ead391a8 Log: o JENKINS-10994 : more fixes for environment var support. not yet tested extensively git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@39911 71c3de6d-444a-0410-be80-ed276b4c234a
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: alienllama
          Path:
          src/main/webapp/help/help-backupPath.html
          src/test/java/org/jvnet/hudson/plugins/thinbackup/backup/TestHudsonBackup.java
          src/test/java/org/jvnet/hudson/plugins/thinbackup/utils/TestUtils.java
          http://jenkins-ci.org/commit/thin-backup-plugin/b23366e2fe48894d72635d600a51fafcdc9e500c
          Log:
          o JENKINS-10994: more fixes for environment var support. not yet tested extensively

          git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@39912 71c3de6d-444a-0410-be80-ed276b4c234a

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: alienllama Path: src/main/webapp/help/help-backupPath.html src/test/java/org/jvnet/hudson/plugins/thinbackup/backup/TestHudsonBackup.java src/test/java/org/jvnet/hudson/plugins/thinbackup/utils/TestUtils.java http://jenkins-ci.org/commit/thin-backup-plugin/b23366e2fe48894d72635d600a51fafcdc9e500c Log: o JENKINS-10994 : more fixes for environment var support. not yet tested extensively git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@39912 71c3de6d-444a-0410-be80-ed276b4c234a
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: alienllama
          Path:
          src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java
          http://jenkins-ci.org/commit/thin-backup-plugin/ca0fb9f0eb5f8724d906b82b4805f25f7153474d
          Log:
          o JENKINS-10994: more fixes for environment var support. not yet tested extensively

          git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@39913 71c3de6d-444a-0410-be80-ed276b4c234a

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: alienllama Path: src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java http://jenkins-ci.org/commit/thin-backup-plugin/ca0fb9f0eb5f8724d906b82b4805f25f7153474d Log: o JENKINS-10994 : more fixes for environment var support. not yet tested extensively git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@39913 71c3de6d-444a-0410-be80-ed276b4c234a
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: alienllama
          Path:
          src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupMgmtLink.java
          src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPeriodicWork.java
          src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPluginImpl.java
          src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/BackupSet.java
          src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/DirectoriesZipper.java
          src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/DirectoryCleaner.java
          src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java
          src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/PluginList.java
          src/main/java/org/jvnet/hudson/plugins/thinbackup/hudson/model/AsyncPeriodicWork.java
          src/main/java/org/jvnet/hudson/plugins/thinbackup/restore/HudsonRestore.java
          http://jenkins-ci.org/commit/thin-backup-plugin/f8925dc0f312e0bd23768162fa639029604e4a6b
          Log:
          o JENKINS-10994: more fixes for environment var support. not yet tested extensively

          git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@40133 71c3de6d-444a-0410-be80-ed276b4c234a

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: alienllama Path: src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupMgmtLink.java src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPeriodicWork.java src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPluginImpl.java src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/BackupSet.java src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/DirectoriesZipper.java src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/DirectoryCleaner.java src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/HudsonBackup.java src/main/java/org/jvnet/hudson/plugins/thinbackup/backup/PluginList.java src/main/java/org/jvnet/hudson/plugins/thinbackup/hudson/model/AsyncPeriodicWork.java src/main/java/org/jvnet/hudson/plugins/thinbackup/restore/HudsonRestore.java http://jenkins-ci.org/commit/thin-backup-plugin/f8925dc0f312e0bd23768162fa639029604e4a6b Log: o JENKINS-10994 : more fixes for environment var support. not yet tested extensively git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@40133 71c3de6d-444a-0410-be80-ed276b4c234a
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: alienllama
          Path:
          src/test/java/org/jvnet/hudson/plugins/thinbackup/utils/TestUtils.java
          http://jenkins-ci.org/commit/thin-backup-plugin/51a24a14e0cf26aaf92d556d7b41fed499e13494
          Log:
          o JENKINS-10994: finish env var expansion

          git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@40135 71c3de6d-444a-0410-be80-ed276b4c234a

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: alienllama Path: src/test/java/org/jvnet/hudson/plugins/thinbackup/utils/TestUtils.java http://jenkins-ci.org/commit/thin-backup-plugin/51a24a14e0cf26aaf92d556d7b41fed499e13494 Log: o JENKINS-10994 : finish env var expansion git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@40135 71c3de6d-444a-0410-be80-ed276b4c234a
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: alienllama
          Path:
          src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPluginImpl.java
          src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/Utils.java
          http://jenkins-ci.org/commit/thin-backup-plugin/86d899fad561a3d6dc4f7149e0f5c059e78bbc03
          Log:
          o JENKINS-10994: finish env var expansion

          git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@40136 71c3de6d-444a-0410-be80-ed276b4c234a

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: alienllama Path: src/main/java/org/jvnet/hudson/plugins/thinbackup/ThinBackupPluginImpl.java src/main/java/org/jvnet/hudson/plugins/thinbackup/utils/Utils.java http://jenkins-ci.org/commit/thin-backup-plugin/86d899fad561a3d6dc4f7149e0f5c059e78bbc03 Log: o JENKINS-10994 : finish env var expansion git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@40136 71c3de6d-444a-0410-be80-ed276b4c234a

            People

            • Assignee:
              alienllama Matthias Steinkogler
              Reporter:
              drhookson Hugo Koblmueller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: