Hi, everyone.
Please take your attention on the picture below. Is there any posibility to make the step more informative?
Hello @Namig Garajamirli ,
Thank you for reaching out to Atlassian Community!
The log section you shared will print the command being executed by the script. I'm afraid it's not possible to change that to a different value as that is the name of the command. However I can think of the following workarounds that might help get more context of what the pipe is doing :
- step:With this change, there would be only one pipe per step, and you would be able to differentiate each step name in the step list on the right side.
name: SSH into serverA
script:
- pipe: atlassian/ssh-run:0.4.1
variables:
SSH_USER: '<string>'
SERVER: '<string>'
COMMAND: '<string>'
- step:
name: SSH into serverB
script:
- pipe: atlassian/ssh-run:0.4.1
variables:
SSH_USER: '<string>'
SERVER: '<string>'
COMMAND: '<string>
- step:This will show the echo command before each pipe execution
name: My step
script:
- echo "SSH into server A"
- pipe: atlassian/ssh-run:0.4.1
variables:
SSH_USER: '<string>'
SERVER: '<string>'
COMMAND: '<string>'
- echo "SSH into server B"
- pipe: atlassian/ssh-run:0.4.1
variables:
SSH_USER: '<string>'
SERVER: '<string>'
COMMAND: '<string>'
Hope that helps! Let me know in case you have any other questions.
Thank you, @Namig Garajamirli !
Patrik S
Thank you for the detailed answer, @Patrik S!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
According to the docs, you should be able to just set the name besides variables:
https://support.atlassian.com/bitbucket-cloud/docs/step-options/#Name
https://support.atlassian.com/bitbucket-cloud/docs/step-options/#Pipe
Is this currently a bug? @Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.