Skip to content

environment directive gets ignored #145

Description

@johanneskraemer-lhind

An environment variable set by an environment directive gets ignored in envVariables:

stage('Deploy') {
  environment {
    SOME_VAR = "TEST"
  }
  steps {
    awsCodeBuild(
      region: 'eu-central-1',
      projectName: 'TestProject',
      envVariables: '[{ ENV_VAR, ${SOME_VAR } }]',
      credentialsType: 'keys',
      sourceControlType: 'project'
    )
  }
}
[AWS CodeBuild Plugin] Starting build with 
  > project name: TestProject
  > environment variables: [{ ENV_VAR, ${SOME_VAR} }]

I would expect the output to be

  > environment variables: [{ ENV_VAR, TEST }]

I know that I can use double quotes in envVariables, but then special characters like äöüß get replaced by ä.

Same problem exists with Variables set by build-user-vars-plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions