[JIRA] (JENKINS-57934) Cannot set URL variable in pipeline: you tried to assign a value to the class 'java.net.URL'

2 views
Skip to first unread message

ovidiu.b13@gmail.com (JIRA)

unread,
Jun 10, 2019, 5:35:03 AM6/10/19
to jenkinsc...@googlegroups.com
Ovidiu-Florin Bogdan created an issue
 
Jenkins / Bug JENKINS-57934
Cannot set URL variable in pipeline: you tried to assign a value to the class 'java.net.URL'
Issue Type: Bug Bug
Assignee: Unassigned
Components: pipeline
Created: 2019-06-10 09:34
Environment: Jenkins ver. 2.164.3
BlueOcean 1.16.0
Pipeline 2.6
Labels: pipeline jenkins user-experience
Priority: Minor Minor
Reporter: Ovidiu-Florin Bogdan

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages