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.