How can I pass variables to the Rake Plugin?

Issue

  • Can I pass variables to the Rake Plugin?
  • What is the proper syntax for passing variables to the Rake Plugin?

Environment

  • CloudBees Jenkins Enterprise 1.580
  • Rake Plugin

Resolution

You need to be able to pass in parameters to a rake task.

For example:

rake spec role=web env=dev

In this case, the values of role and env are variables. The appropriate syntax for this is:

rake spec role=${ROLE} env=${ENV}

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.