How To Set Up jEnv on CircleCI With $BASH_ENV

Adding jEnv to $BASH_ENV

Running which jenv or jenv versions before they are added to $BASH_ENV will cause a build to fail.

 

Solution

To resolve this you can add the following commands to clone jenv and setup $BASH_ENV 

    steps:
      - run: git clone https://github.com/jenv/jenv.git ~/.jenv
      - run: |
         echo "export PATH=$HOME/.jenv/bin:$PATH" >> $BASH_ENV echo "eval $(jenv init -)" >> $BASH_ENV 
      - run: |
         which jenv 
         jenv versions

The jenv commands will now run successfully.

 

Additional Resources

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.