I have to execute commands multiple times, with different parameters while inside a script. is there a better way of doing it rather than copy paste the same command and changing the parameters?
- job: Configure_in_QA
variables:
- group: development
pool:
vmImage: 'ubuntu-latest'
steps:
- task: Cache@2
inputs:
key: piper-go-official
path: bin
displayName: Configure_Iflow_in_QA
- script: |
bin/piper integrationArtifactUpdateConfiguration --verbose true --apiServiceKey $(CREDENTIALS) --integrationFlowId "Test_IFlow1_QA" --integrationFlowVersion 'Active' --Key 'LogEnabled' --Value 'true'
bin/piper integrationArtifactUpdateConfiguration --verbose true --apiServiceKey $(CREDENTIALS) --integrationFlowId "Test_IFlow1_QA" --integrationFlowVersion 'Active' --Key 'SNDPRN' --Value '1010101'