Merge pull request #1280 from Alfresco/feature-3.4/APPS-594_Intermittent#15_editClassificationAddNewSource_no

Apps 594 intermittent edit classification add new source
This commit is contained in:
Claudia Agache
2020-11-16 15:40:05 +02:00
committed by GitHub
3 changed files with 27 additions and 8 deletions

View File

@@ -17,7 +17,7 @@
<ags.repo>alfresco-governance-services-community-repo</ags.repo> <ags.repo>alfresco-governance-services-community-repo</ags.repo>
<tas.restapi.version>1.38</tas.restapi.version> <tas.restapi.version>1.38</tas.restapi.version>
<fluent.json.version>2.0.0</fluent.json.version> <fluent.json.version>2.0.0</fluent.json.version>
<jackson.databind.version>2.7.7</jackson.databind.version> <jackson.databind.version>2.7.9.1</jackson.databind.version>
</properties> </properties>
<build> <build>
@@ -90,10 +90,10 @@
<artifactId>docker-java</artifactId> <artifactId>docker-java</artifactId>
<version>3.0.14</version> <version>3.0.14</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>
<version>${jackson.databind.version}</version> <version>${jackson.databind.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

12
scripts/getLogs.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -x
alfrescoContainerId=$(docker ps -a | grep '_alfresco_' | awk '{print $1}')
shareContainerId=$(docker ps -a | grep '_share_' | awk '{print $1}')
solrContainerId=$(docker ps -a | grep '_search_' | awk '{print $1}')
docker logs $alfrescoContainerId > alfresco.log
if [ -n "$shareContainerId" ]; then
docker logs $shareContainerId > share.log
fi
docker logs $solrContainerId > solr.log

View File

@@ -58,6 +58,9 @@ jobs:
- ./rm-automation/rm-automation-ui/target/surefire-reports - ./rm-automation/rm-automation-ui/target/surefire-reports
- ./rm-automation/rm-automation-ui/target/reports - ./rm-automation/rm-automation-ui/target/reports
- ./rm-automation/rm-automation-ui/target/screenshots - ./rm-automation/rm-automation-ui/target/screenshots
- alfresco.log
- solr.log
- share.log
target_paths: $TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER target_paths: $TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER
install: install:
- | - |
@@ -75,6 +78,7 @@ jobs:
- travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-ui -am - travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-ui -am
script: script:
- travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -Dskip.automationtests=false -DsuiteXmlFile=communitySmokeRecords.xml -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS} - travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -Dskip.automationtests=false -DsuiteXmlFile=communitySmokeRecords.xml -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS}
after_failure: bash scripts/getLogs.sh
- <<: *community_shared_UI_configuration - <<: *community_shared_UI_configuration
name: "Community Smoke UI Tests for actions in RM site" name: "Community Smoke UI Tests for actions in RM site"
@@ -102,6 +106,9 @@ jobs:
- ./rm-automation/rm-automation-ui/target/surefire-reports - ./rm-automation/rm-automation-ui/target/surefire-reports
- ./rm-automation/rm-automation-ui/target/reports - ./rm-automation/rm-automation-ui/target/reports
- ./rm-automation/rm-automation-ui/target/screenshots - ./rm-automation/rm-automation-ui/target/screenshots
- alfresco.log
- solr.log
- share.log
target_paths: $TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER target_paths: $TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER
install: install:
- travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-governance-services-enterprise-repo,:alfresco-governance-services-enterprise-share -am - travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-governance-services-enterprise-repo,:alfresco-governance-services-enterprise-share -am
@@ -112,6 +119,7 @@ jobs:
- sudo free -m -t - sudo free -m -t
script: script:
- travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -Dskip.automationtests=false -DsuiteXmlFile=enterpriseLevel2Tests.xml -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS} - travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -Dskip.automationtests=false -DsuiteXmlFile=enterpriseLevel2Tests.xml -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS}
after_failure: bash scripts/getLogs.sh
- <<: *enterprise_shared_UI_configuration - <<: *enterprise_shared_UI_configuration
name: "Enterprise Classification Level 2 UI Tests" name: "Enterprise Classification Level 2 UI Tests"
@@ -155,4 +163,3 @@ jobs:
script: script:
- travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -DsuiteXmlFile=wormTestSuite.xml -Dskip.automationtests=false -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS} - travis_wait 90 xvfb-run --server-args="-screen 0 1920x1080x24" mvn -B test -pl :alfresco-governance-services-automation-ui -DsuiteXmlFile=wormTestSuite.xml -Dskip.automationtests=false -Dshare.url=${SHARE_URL} -Dalfresco.url=${ALFRESCO_URL} ${WEBDRIVER_ARGUMENTS}
after_script: bash scripts/cleanup.sh after_script: bash scripts/cleanup.sh
after_failure: docker ps -a | grep '_alfresco_1' | awk '{print $1}' | xargs docker logs | tail -5000