Skip to content

Commit

Permalink
chore(goss): add environement variable to goss execution (#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
smerle33 authored May 14, 2024
1 parent 9fa2029 commit 4279919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions build-jenkins-agent-ubuntu.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ build {

provisioner "shell" {
execute_command = "{{ .Vars }} sudo -E su - jenkins -c \"bash -eu '{{ .Path }}'\""
environment_vars = local.provisioning_env_vars
inline = [
"source /home/jenkins/.asdf/asdf.sh", # Required as this is a non-interactive and non-login `bash`
"goss --version",
Expand Down
1 change: 1 addition & 0 deletions build-jenkins-agent-windows.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ build {

provisioner "powershell" {
pause_before = "2m" # long pause as 1m is not enough
environment_vars = local.provisioning_env_vars
inline = [
"$ErrorActionPreference = 'Stop'",
"goss --version",
Expand Down

0 comments on commit 4279919

Please sign in to comment.