From 5bcc89861f49be1bafb6c23c2ec629478340f4ce Mon Sep 17 00:00:00 2001 From: Claudia Agache Date: Mon, 26 Oct 2020 13:28:54 +0200 Subject: [PATCH] try to fix the regex --- .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index e9e8a76f80..b8ee4ff1cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -75,7 +75,8 @@ jobs: stage: Tests install: - | - if [[ ${TRAVIS_COMMIT_MESSAGE} =~ /\[tests on community\]/ ]]; then + echo ${TRAVIS_COMMIT_MESSAGE} + if [[ ${TRAVIS_COMMIT_MESSAGE} =~ '"[tests on community]"' ]]; then travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-rm-community-repo -am else travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-rm-enterprise-repo -am @@ -83,8 +84,7 @@ jobs: - travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-rm-automation-community-rest-api -am before_script: - | - echo ${TRAVIS_COMMIT_MESSAGE} - if [[ ${TRAVIS_COMMIT_MESSAGE} =~ /\[tests on community\]/ ]]; then + if [[ ${TRAVIS_COMMIT_MESSAGE} =~ '"[tests on community]"' ]]; then bash scripts/startAlfresco.sh $COMMUNITY_REPO_PATH else bash scripts/startAlfresco.sh $ENTERPRISE_REPO_PATH @@ -119,7 +119,7 @@ jobs: target_paths: $TRAVIS_BUILD_NUMBER before_install: - | - if [[ ${TRAVIS_COMMIT_MESSAGE} =~ /\[tests on community\]/ ]]; then + if [[ ${TRAVIS_COMMIT_MESSAGE} =~ '"[tests on community]"' ]]; then travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-rm-community-repo,:alfresco-rm-community-share -am else travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-rm-enterprise-repo,:alfresco-rm-enterprise-share -am @@ -127,7 +127,7 @@ jobs: - travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-rm-automation-ui -am install: - | - if [[ ${TRAVIS_COMMIT_MESSAGE} =~ /\[tests on community\]/ ]]; then + if [[ ${TRAVIS_COMMIT_MESSAGE} =~ '"[tests on community]"' ]]; then bash scripts/startAlfresco.sh $COMMUNITY_SHARE_PATH else bash scripts/startAlfresco.sh $ENTERPRISE_SHARE_PATH