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

Unable to use VERSION environment variable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • customtools-plugin
    • None
    • Jenkins 1.646
      Custom Tools Plugin 0.4.4
      Extended Choice Parameter Plug-In 0.28

      I have defined a `phpenv` custom tool which has a `PHP_VERSION` parameter which allows the requested PHP version to be specified. The installation script for this custom tool is roughly as follows:

      ```
      export PHPENV_ROOT=$(pwd)/phpenv
      export PATH="$PATH:$(pwd)/phpenv/bin"

      if test -d $PHPENV_ROOT; then
      $PHPENV_ROOT/bin/phpenv update
      else
      (curl -L http://git.io/phpenv-installer | bash)
      fi

      phpenv install $PHP_VERSION
      phpenv global $PHP_VERSION
      ```

      It seems, however, that the `$PHP_VERSION` environment variable is not set. Am I correct in thinking that the version parameter is exposed through an environment variable?

            Unassigned Unassigned
            joshuaspence Joshua Spence
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: