如果取的label比较新,BI的shiphome可能还存在于/net/slcnas552/export/farm_metadata/BIPLATFORM_12.2.1.2.0_LINUX.X64_T<>路径下,可以在host上查看一下。如果真的存在,则shiphome参数无需特殊指定。如果不存在则说明该label的安装包已经在/net/下删除,需要将shiphome参数指定为%ADE_VIEW_ROOT%/biplatform/shiphome/*bi_platform* [BI 12c(12c/bics/dvd)安装包的地址]
ADE Label:BIPLATFORM_12.2.1.2.0_LINUX.X64_160712.1027.252.S 【BI 12c(12c/bics/dvd) 的label--要安装的产品】
COORDINATES:com.oracle.biqa.tests:bi-test-manifest:12.1.4.0.0-20140711223334:zip【test code 的label】
ENV:FARMVIEW:MANIFEST:把prerelease 修改为 release (新label不需要)
DBTARBALL=false :如果在一个给定的机器上执行DTE job,该参数必须设置为false,否则有env issue出现。(新label不需要)
查找最新的label 可以通过aimeweb或者Pipeline Dashboard 来查看
DTE Command Run:
<1> JobReqAgent run on a random farm machine
/usr/local/packages/aime/dte/DTE/bin/jobReqAgent -u ziwzhang -topoid 88633 -p LINUX.X64 -v ucf_rh60_64 -s "/net/slcnas552/export/farm_metadata/BIPLATFORM_12.2.1.2.0_LINUX.X64_T17849635/shiphome/*bi_platform*linux64.*" -l BIPLATFORM_12.2.1.2.0_LINUX.X64_160714.0457.261.S -numofmachines 1 -maxduration 8 -topoalias=MATS_BI_ENT_CFGASST -intgflag 3 GRADLE_TASK="downloadUpgradetool downloadBiqaArtifactFiles :bout:testBoutEnterprise :bitest:testBitestEnterprise :functional-tests:testFunctionalEnterprise" USE_DTE_ARTIFACTS_IN_LIBERTE="true" -noalways="true" TESTNAME="MATS_BI_ENT_CFGASST" COORDINATES="com.oracle.biqa.tests:bi-test-manifest" TLP_PROPERTY_FILE="%ADE_VIEW_ROOT%/oracle/work/BI_INSTALL_CONFIG.DOWNLOAD_TEST1/TESTSRC/tlp/mats.properties" -jobzone="UCF" BI_INSTALL_CONFIG.BI_CONFIG_ASSISTANT1:NEW_DB_SCHEMA_PREFX="BISCHEMA" -DTE_SNAPSHOT="/tmp/Process20043/tmp/com/oracle/dte/bi/12.2.1.2.0-160714.0000/bi-12.2.1.2.0-160714.0000.zip" SHIPHOME_BI_12.2.1.2.0="/net/slcnas552/export/farm_metadata/BIPLATFORM_12.2.1.2.0_LINUX.X64_T17849635/shiphome/*bi_platform*linux64.*" DBTARBALL="true" ENV:FARMVIEW:MANIFEST="manifest.integration.prerelease:bi-linux_x64-manifest:12.2.1.2.0-160714.0837.262:pom" ENV:FARMVIEW:DISTRIBUTION_VERSION="12.2.1.2.0" -hoursafter="8"<2> Run_One_Job run on a fixed machine
/usr/local/packages/aime/dte/DTE/bin/run_one_job -u ziwzhang -topoid 88633 -p LINUX.X64 -v ucf_rh60_64 -s "/net/slcnas552/export/farm_metadata/BIPLATFORM_12.2.1.2.0_LINUX.X64_T17833854/shiphome/*bi_platform*linux64.*" -e wayne.granger@xxx.com -l BIPLATFORM_12.2.1.2.0_LINUX.X64_160712.1027.252.S -numofmachines 1 -maxduration 8 -topoalias=MATS_BI_ENT_CFGASST -intgflag 3 GRADLE_TASK="downloadUpgradetool downloadBiqaArtifactFiles :bitest:testBISSLConfiguration :bout:testBoutEnterprise :bitest:testBitestEnterprise :functional-tests:testFunctionalEnterprise" GRADLE_PROPERTIES="-Dbissl.enable::true" USE_DTE_ARTIFACTS_IN_LIBERTE="true" -noalways="true" TESTNAME="MATS_BI_ENT_CFGASST" COORDINATES="com.oracle.biqa.tests:bi-test-manifest" TLP_PROPERTY_FILE="%ADE_VIEW_ROOT%/oracle/work/BI_INSTALL_CONFIG.DOWNLOAD_TEST1/TESTSRC/tlp/mats.properties" -jobzone="UCF" BI_INSTALL_CONFIG.BI_CONFIG_ASSISTANT1:NEW_DB_SCHEMA_PREFX="BISCHEMA" -DTE_SNAPSHOT="/tmp/Process24686/tmp/com/oracle/dte/bi/12.2.1.2.0-160712.0000/bi-12.2.1.2.0-160712.0000.zip" SHIPHOME_BI_12.2.1.2.0="/net/slcnas552/export/farm_metadata/BIPLATFORM_12.2.1.2.0_LINUX.X64_T17833854/shiphome/*bi_platform*linux64.*" DBTARBALL="true" ENV:FARMVIEW:MANIFEST="manifest.integration.release:bi-linux_x64-manifest:12.2.1.2.0-160712.1449.253:pom" ENV:FARMVIEW:DISTRIBUTION_VERSION="12.2.1.2.0" -noshutdown //-nocheckshiphome -report
<3> Cron Job auto run in fixed time
create a shell script like: BI_PLATFORM_MATS_12C_FARM.sh
<pre name="code" class="plain">#!/bin/bash
echo "starting Farm job...";
/usr/local/packages/aime/dte/DTE/bin/jobReqAgent -u ziwzhang -topoid 88633 -p LINUX.X64 -v ucf_rh60_64 -s "/net/slcnas552/export/farm_metadata/BIPLATFORM_
12.2.1.2.0_LINUX.X64_T17849635/shiphome/*bi_platform*linux64.*" -l BIPLATFORM_12.2.1.2.0_LINUX.X64_160714.0457.261.S -numofmachines 1 -maxduration 8 -topo
alias=MATS_BI_ENT_CFGASST -intgflag 3 GRADLE_TASK="downloadUpgradetool downloadBiqaArtifactFiles :bout:testBoutEnterprise :bitest:testBitestEnterprise :fu
nctional-tests:testFunctionalEnterprise" USE_DTE_ARTIFACTS_IN_LIBERTE="true" -noalways="true" TESTNAME="MATS_BI_ENT_CFGASST" COORDINATES="com.oracle.biqa.
tests:bi-test-manifest" TLP_PROPERTY_FILE="%ADE_VIEW_ROOT%/oracle/work/BI_INSTALL_CONFIG.DOWNLOAD_TEST1/TESTSRC/tlp/mats.properties" -jobzone="UCF" BI_INS
TALL_CONFIG.BI_CONFIG_ASSISTANT1:NEW_DB_SCHEMA_PREFX="BISCHEMA" -DTE_SNAPSHOT="/tmp/Process20043/tmp/com/oracle/dte/bi/12.2.1.2.0-160714.0000/bi-12.2.1.2.
0-160714.0000.zip" SHIPHOME_BI_12.2.1.2.0="/net/slcnas552/export/farm_metadata/BIPLATFORM_12.2.1.2.0_LINUX.X64_T17849635/shiphome/*bi_platform*linux64.*"
DBTARBALL="true" ENV:FARMVIEW:MANIFEST="manifest.integration.prerelease:bi-linux_x64-manifest:12.2.1.2.0-160714.0837.262:pom" ENV:FARMVIEW:DISTRIBUTION_VE
RSION="12.2.1.2.0" -hoursafter="8"
echo "**********************************************************";
$crontab -e
#0 23 * * * /home/ziwzhang/cron/BIPLATFORM/BI_PLATFORM_MATS_12C_FARM.sh
<4> Standalone Job to run one specify case.
gradle -b bi_platform_test_va.gradle cleanTest test -DTEST_GROUPS=VA_SRG_RPD -Dbiee.browser="firefox" -Dbiee.url.va=http://adc01hbc.us.oracle.com:9502/va -DTEST_INCLUDES=va/mats -Dbiee.result.mode=true -Dbiee.user=weblogic -Dbiee.pwd=welcome1 -Dbiee.cleanup.after.test=true -DSELENIUM_VERSION=2.48.0 -DFF_VERSION=42 -Dbiee.run.testcase=testCreateATableView