I have a pipeline which will be having suite coming in as pipeline argument.
For example it will be as
SUITE = TEST1 or TEST2 or TEST3
These 3 values can come in from pipeline argument variables
I have written yaml file as :
- if ["$SUITE" == "TEST1"]; then
- mvn clean verify -s settings.xml -DfailIfNoTests=false -P 'test.db.it'
- if ["$SUITE" == "TEST2"]; then
- mvn clean verify -s settings.xml -DfailIfNoTests=false -P 'test.db.it2'
- else
- mvn clean verify -s settings.xml -DfailIfNoTests=false -P 'test.db.it3'
- fi
However this is not workin and i am getting following error in pipeline logs
/scripts-26729843-1777860709/step_script: eval: line 209: syntax error: unexpected end of file
Please suggest what i am missing here the intention here is to get a pipeline argument and then use it inside script tag for gitlab ci .yaml
