diff --git a/coin/instructions/run_license_check.yaml b/coin/instructions/run_license_check.yaml index cd0e48b9314..c7bae237aa7 100644 --- a/coin/instructions/run_license_check.yaml +++ b/coin/instructions/run_license_check.yaml @@ -2,14 +2,29 @@ type: Group instructions: - type: ChangeDirectory directory: "{{.AgentWorkingDir}}" - - type: InstallSourceArchive + - type: EnvironmentVariable + variableName: QTQA_LICHECK_BRANCH + variableValue: "{{ slice .Env.TESTED_MODULE_BRANCH_COIN 5 }}" + enable_if: + condition: runtime + env_var: TESTED_MODULE_BRANCH_COIN + contains_value: "tqtc/" + - type: EnvironmentVariable + variableName: QTQA_LICHECK_BRANCH + variableValue: "{{ .Env.TESTED_MODULE_BRANCH_COIN }}" + disable_if: + condition: runtime + env_var: TESTED_MODULE_BRANCH_COIN + contains_value: "tqtc/" + + # The command must not have whitespace directly after any piping, + # as whitespace directly after pipes will be interpreted as part of the command. + - type: ExecuteCommand + command: ["bash", "-c", "git clone --depth=1 -b {{ .Env.QTQA_LICHECK_BRANCH }} git://{{.Env.QT_COIN_GIT_DAEMON}}/qt-project/qt/qtqa qt/qtqa-latest ||git clone --depth=1 -b dev git://{{.Env.QT_COIN_GIT_DAEMON}}/qt-project/qt/qtqa qt/qtqa-latest"] maxTimeInSeconds: 600 maxTimeBetweenOutput: 600 - project: qt/qtqa - ref: "CURRENT_BRANCH" - directory: qt/qtqa-latest userMessageOnFailure: > - Could not install qtqa source archive. Please investigate why. + Failed to clone qtqa sources. Please investigate why. - type: EnvironmentVariable variableName: QT_MODULE_TO_TEST variableValue: "{{.SourceDir}}"