-1

I don't know how to use 'set environment variables' in blue ocean.

The following are the details:

  1. I add a step by the Blue Ocean UI
  2. Click tab 'Set Environment Variable'

But i don't know how to use. I want to set a environment variable in a step, and use it in next step.Kindly help.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
tiny
  • 11

1 Answers1

0

I have solved that problem, just like following:
environment
{
TEST1 = readFile '123'
}

tiny
  • 11
  • it's write in Jenkinsfile – tiny Mar 23 '18 at 10:09
  • This doesn't answer the question you posed. First of all this is editing the jenkinsfile, not using Blue Ocean. Second, setting environment variables is a different process to using the "Set Environment Variables" step. – Z. Cochrane Feb 20 '20 at 20:16