[JIRA] (JENKINS-41386) need to support or reject non string based environment variables.

2 views
Skip to first unread message

jnord@cloudbees.com (JIRA)

unread,
Jan 24, 2017, 2:22:04 PM1/24/17
to jenkinsc...@googlegroups.com
James Nord created an issue
 
Jenkins / Bug JENKINS-41386
need to support or reject non string based environment variables.
Issue Type: Bug Bug
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2017/Jan/24 7:21 PM
Priority: Minor Minor
Reporter: James Nord

I created a declarative pipeline with the following syntax and it did not behave as I expected.

either the syntax should be rejected or it should work - otherwise surprises ensue...

pipeline {
    agent none
    environment {
        POM_ONLY = false // (also change to true to check)
    }
    stages {
        stage("test") {
            when {
              expression {
                POM_ONLY == false
              }
            }
            steps {
                echo "pom only is false!"
            }
        }
        stage("notest") {
            when {
              expression {
                POM_ONLY != false
              }
            }
            steps {
                echo "pom only is true!"
            }
        }
    }
}
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Feb 10, 2017, 6:47:01 PM2/10/17
to jenkinsc...@googlegroups.com
Andrew Bayer resolved as Duplicate
 

So the implementation in the works for JENKINS-41748 deals with this properly, I believe.

Change By: Andrew Bayer
Status: Open Resolved
Resolution: Duplicate

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:24:54 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Duplicate
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages