-
Bug
-
Resolution: Unresolved
-
Minor
-
Jenkins ver. 2.164.3
BlueOcean 1.16.0
Pipeline 2.6
With the following Jenkinsfile I get an error complaining that you tried to assign a value to the class 'java.net.URL'
pipeline { environment { URL = "http://foomybar.com" } agent any stages { stage ("do the thing") { steps { sh "echo ${env.URL}" } } } }
I cannot set the URL environment variable through the environment block.