Multi-line sh
steps from Jenkins retain outer quotes
#174
-
For a minimal Jenkins pipeline such as pipeline {
agent { label 'workers' }
stages {
stage('My stage') {
steps {
sh script: """
docker buildx build \
--platform linux/amd64,linux/arm64 \
--target prod \
--build-arg go_version=${goVersion} \
--tag sometag \
--push \
.
""", label: 'My shell script'
}
}
}
}
name: github-org/some-repo/main
on:
workflow_dispatch:
jobs:
My_stage:
name: My stage
runs-on:
- self-hosted
- workers
steps:
- name: checkout
uses: actions/checkout@v3.5.0
- name: sh
shell: bash
run: |-
"""
docker buildx build \
--platform linux/amd64,linux/arm64 \
--target prod \
--build-arg go_version=${{ env.goVersion }} \
--tag sometag \
--push \
.
""" The |
Beta Was this translation helpful? Give feedback.
Answered by
begonaguereca
Jun 20, 2023
Replies: 2 comments 2 replies
-
Hi @bewuethr thank you for bringing this to our attention. I just opened a PR to address this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bewuethr
-
Ok the PR has been merged! If you pull down the latest container you will be able to access the updated code. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @bewuethr thank you for bringing this to our attention. I just opened a PR to address this issue.