forked from jenkinsci/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TQA-2187: add runway job to prepare for sample test campaign
- Loading branch information
Nghi Nguyen Van
committed
Mar 24, 2016
1 parent
34cfde1
commit a67bb79
Showing
8 changed files
with
152 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...ared_data/SEC_TEST_AUTO_1/jenkins_home/jobs/TEST_VIRGO__00_run_way/builds/lastFailedBuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-1 |
1 change: 1 addition & 0 deletions
1
...ared_data/SEC_TEST_AUTO_1/jenkins_home/jobs/TEST_VIRGO__00_run_way/builds/lastStableBuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-1 |
1 change: 1 addition & 0 deletions
1
..._data/SEC_TEST_AUTO_1/jenkins_home/jobs/TEST_VIRGO__00_run_way/builds/lastSuccessfulBuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-1 |
1 change: 1 addition & 0 deletions
1
...ed_data/SEC_TEST_AUTO_1/jenkins_home/jobs/TEST_VIRGO__00_run_way/builds/lastUnstableBuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-1 |
1 change: 1 addition & 0 deletions
1
...ata/SEC_TEST_AUTO_1/jenkins_home/jobs/TEST_VIRGO__00_run_way/builds/lastUnsuccessfulBuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-1 |
Empty file.
146 changes: 146 additions & 0 deletions
146
docker_shared_data/SEC_TEST_AUTO_1/jenkins_home/jobs/TEST_VIRGO__00_run_way/config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<project> | ||
<actions/> | ||
<description></description> | ||
<keepDependencies>false</keepDependencies> | ||
<properties> | ||
<jenkins.model.BuildDiscarderProperty> | ||
<strategy class="hudson.tasks.LogRotator"> | ||
<daysToKeep>30</daysToKeep> | ||
<numToKeep>100</numToKeep> | ||
<artifactDaysToKeep>-1</artifactDaysToKeep> | ||
<artifactNumToKeep>-1</artifactNumToKeep> | ||
</strategy> | ||
</jenkins.model.BuildDiscarderProperty> | ||
<hudson.model.ParametersDefinitionProperty> | ||
<parameterDefinitions> | ||
<hudson.model.StringParameterDefinition> | ||
<name>STAGE</name> | ||
<description></description> | ||
<defaultValue>STOP_TEST</defaultValue> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.StringParameterDefinition> | ||
<name>TESTSCRIPT</name> | ||
<description></description> | ||
<defaultValue>TEST_VIRGO</defaultValue> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.StringParameterDefinition> | ||
<name>RESET_CODE</name> | ||
<description>remove existing dataset and extract from the dataset archive</description> | ||
<defaultValue>NO_RESET_CODE</defaultValue> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.StringParameterDefinition> | ||
<name>QUICK_BUILD_FLOW</name> | ||
<description><strong>this field need a complete config line, to run a flow</strong> | ||
<br/> | ||
<quote> | ||
/java/exo-working/VALIDATIONS/TQA-432/PLF-354_VISUALVM_PROFILING_PATCH_20120606 /mnt/nfs4/DATASETS/PLF/PLF3.5.x/3.5.x_02/NODATASET.zip plf_jcr plf_idm!PERF_PLF_INTRANET_99_SIMPLE_CALENDAR_HOMEPAGE 2 10 7200 9999 192.168.5.8 8080 CALENDAR_HOME_PATCH20120606_01 true true - - TQA-432_CALENDAR_HOME_PATCH20120606!eXoPLF.install.sh | ||
<quote></description> | ||
<defaultValue>NO_QUICK_BUILD_FLOW</defaultValue> | ||
</hudson.model.StringParameterDefinition> | ||
</parameterDefinitions> | ||
</hudson.model.ParametersDefinitionProperty> | ||
</properties> | ||
<scm class="hudson.scm.NullSCM"/> | ||
<assignedNode>XSS-AUTO-1</assignedNode> | ||
<canRoam>false</canRoam> | ||
<disabled>false</disabled> | ||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> | ||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> | ||
<triggers/> | ||
<concurrentBuild>false</concurrentBuild> | ||
<builders> | ||
<hudson.tasks.Shell> | ||
<command>#!/bin/bash | ||
|
||
EXO_WORKING_DIR=/java/exo-working | ||
|
||
if [ -d $EXO_WORKING_DIR ]; then | ||
pushd $EXO_WORKING_DIR | ||
|
||
if [ ! -d automation_xss_tc_new ]; then | ||
echo "INFO: downloading automation_xss_tc_new" | ||
git clone https://github.com/nghinv/automation_xss_tc_new.git | ||
ln -s automation_xss_tc_new automation_xss_tc | ||
fi | ||
#download firefox | ||
if [ ! -f firefox-21.0b7.tar.bz2 ]; then | ||
if [ ! -d firefox21 ]; then | ||
# remove firefox folder | ||
rm -frv current_firefox || true | ||
|
||
# download firefox21 | ||
curl -fL https://download-installer.cdn.mozilla.net/pub/firefox/releases/21.0b7/linux-x86_64/en-US/firefox-21.0b7.tar.bz2 -o ${EXO_WORKING_DIR}/firefox-21.0b7.tar.bz2 | ||
tar xf ${EXO_WORKING_DIR}/firefox-21.0b7.tar.bz2 | ||
|
||
# choose ff21 | ||
mv firefox firefox21 | ||
ln -s firefox21 current_firefox | ||
else | ||
echo "INFO: the folder firefox21 existing, abort the download process" | ||
fi | ||
fi | ||
|
||
if [ ! -f selenium-server-standalone-2.52.0.jar ]; then | ||
echo "INFO: downloading selenium-server-standalone-2.52.0.jar" | ||
curl -fL http://selenium-release.storage.googleapis.com/2.52/selenium-server-standalone-2.52.0.jar -o ${EXO_WORKING_DIR}/selenium-server-standalone-2.52.0.jar | ||
fi | ||
|
||
if [ ! -f plf-community-tomcat-standalone-4.3.0.zip ]; then | ||
echo "INFO: downloading plf-community-tomcat-standalone-4.3.0.zip" | ||
curl -fL https://repository.exoplatform.org/service/local/repositories/exo-releases/content/org/exoplatform/platform/distributions/plf-community-tomcat-standalone/4.3.0/plf-community-tomcat-standalone-4.3.0.zip -o ${EXO_WORKING_DIR}/plf-community-tomcat-standalone-4.3.0.zip | ||
mkdir ${EXO_WORKING_DIR}/TC || true | ||
if [ -d ${EXO_WORKING_DIR}/TC/current ]; then | ||
echo "INFO: removing ${EXO_WORKING_DIR}/TC/current" | ||
rm -rf ${EXO_WORKING_DIR}/TC/current | ||
fi | ||
unzip -q ${EXO_WORKING_DIR}/plf-community-tomcat-standalone-4.3.0.zip -d /tmp/PLF | ||
TMP_PLF_DIR=`find /tmp/PLF -maxdepth 1 -mindepth 1` | ||
if [ $? -eq 0 ]; then | ||
mv $TMP_PLF_DIR/* ${EXO_WORKING_DIR}/TC/current/ | ||
# extract dataset | ||
echo "INFO: Extracting dataset" # extract dataset | ||
|
||
pushd ${EXO_WORKING_DIR}/TC/current/ | ||
mkdir DATASET | ||
pushd DATASET | ||
# this dataset contain conf/server.xml and webapps/eXoResources.war together with gatein/data | ||
tar xf ${EXO_WORKING_DIR}/automation_xss_tc/plf_templates/datasets/plf43comm/PLF43_DATASET_HSQL.tar.bz2 | ||
popd | ||
cp DATASET/* . -R | ||
rm -rf DATASET | ||
echo "INFO: ${EXO_WORKING_DIR}/TC/current/ is now ready to run" | ||
popd #to EXO_WORKING_DIR | ||
|
||
echo "${EXO_WORKING_DIR}/TC/current/ RE_USE!SAMPLES 3600 SAMPLE_TEST_WITH_PLF43 SHOULD_WORK!eXoPLF.install.sh" | ||
fi | ||
fi | ||
else | ||
echo "ERROR: Expect to have the folder $EXO_WORKING_DIR to exist" | ||
a=$((1/0)) | ||
fi</command> | ||
</hudson.tasks.Shell> | ||
</builders> | ||
<publishers> | ||
<hudson.tasks.BuildTrigger> | ||
<childProjects>TEST_VIRGO__00_start-new-bridge</childProjects> | ||
<threshold> | ||
<name>SUCCESS</name> | ||
<ordinal>0</ordinal> | ||
<color>BLUE</color> | ||
<completeBuild>true</completeBuild> | ||
</threshold> | ||
</hudson.tasks.BuildTrigger> | ||
</publishers> | ||
<buildWrappers> | ||
<hudson.plugins.build__timeout.BuildTimeoutWrapper plugin="[email protected]"> | ||
<strategy class="hudson.plugins.build_timeout.impl.AbsoluteTimeOutStrategy"> | ||
<timeoutMinutes>5</timeoutMinutes> | ||
</strategy> | ||
<operationList> | ||
<hudson.plugins.build__timeout.operations.FailOperation/> | ||
</operationList> | ||
</hudson.plugins.build__timeout.BuildTimeoutWrapper> | ||
<hudson.plugins.timestamper.TimestamperBuildWrapper plugin="[email protected]"/> | ||
</buildWrappers> | ||
</project> |
1 change: 1 addition & 0 deletions
1
docker_shared_data/SEC_TEST_AUTO_1/jenkins_home/jobs/TEST_VIRGO__00_run_way/nextBuildNumber
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |