Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

environment directive gets ignored #145

Open
johanneskraemer-lhind opened this issue Sep 27, 2023 · 0 comments
Open

environment directive gets ignored #145

johanneskraemer-lhind opened this issue Sep 27, 2023 · 0 comments

Comments

@johanneskraemer-lhind
Copy link

johanneskraemer-lhind commented Sep 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant