-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Windows script requires escape special chars to run successfully #7740
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
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Comments
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Expected Behavior
Windows and Linux script should behave the same way when you are writing the scripts. Windows should not require to escape special chars.
Actual Behavior
Windows and Linux scripts are considering different validations about escaping chars
For example for windows you need to create the script as follow, if not the var are going to be added to the file as an empty value:
For Linux cases it is not necessary to keep escaping char, so the coding is more natural.
Steps to Reproduce the Problem
Additional Info
A possible solution is to encode the script before create the file, like the non windows script logic https://github.com/tektoncd/pipeline/blob/main/pkg/pod/script.go#L189
When a script requires windows, the script can be encoded and then create the output file command like the following example:
https://github.com/tektoncd/pipeline/blob/main/pkg/pod/script.go#L177C3-L180C23
v1.27.9
v0.56.1
The text was updated successfully, but these errors were encountered: