зеркало из https://github.com/microsoft/lisa.git
Merge branch 'master' of https://github.com/iamshital/LISAv2
This commit is contained in:
Коммит
06b32c8440
|
@ -1,57 +1,35 @@
|
|||
#!/bin/bash
|
||||
|
||||
#Required
|
||||
JenkinsUser="microsoft"
|
||||
#####################################################################################################
|
||||
#How to use:
|
||||
|
||||
#Required
|
||||
UpstreamBuildNumber="unique-string"
|
||||
# Method 1: You can pass all the parameters from a parameters file.
|
||||
#./LaunchTestPipelineRemotely.sh -ParametersFile <Path to parameters file>
|
||||
|
||||
#Required any one of the following
|
||||
ImageSource=""
|
||||
CustomVHD=""
|
||||
CustomVHDURL=""
|
||||
# Method 2: You can also pass all the perameters to commandline.
|
||||
#./LaunchTestPipelineRemotely.sh -JenkinsUser "assigned username" -UpstreamBuildNumber <UniqueBuildID> ... etc.
|
||||
|
||||
#Required
|
||||
Kernel="default"
|
||||
|
||||
#Required any of the following if Kernel=custom
|
||||
CustomKernelFile=""
|
||||
CustomKernelURL=""
|
||||
|
||||
#Required
|
||||
GitUrlForAutomation="https://github.com/LIS/LISAv2.git"
|
||||
|
||||
#Required
|
||||
GitBranchForAutomation="master"
|
||||
|
||||
#Required at least one test selection choise from following.
|
||||
#TestByTestname="Azure>>VERIFY-DEPLOYMENT-PROVISION>>eastus2,Azure>>VERIFY-DEPLOYMENT-PROVISION>>eastus"
|
||||
TestByTestname=""
|
||||
TestByCategorisedTestname=""
|
||||
TestByCategory=""
|
||||
TestByTag=""
|
||||
|
||||
#Required
|
||||
Email=""
|
||||
|
||||
#Optional
|
||||
LinuxUsername=""
|
||||
LinuxPassword=""
|
||||
|
||||
#Required to access Jenkins.
|
||||
ApiToken=""
|
||||
#Required to upload Files to jenkins server using FTP
|
||||
FtpUsername=""
|
||||
FtpPassword=""
|
||||
|
||||
#Required
|
||||
JenkinsURL="penguinator.westus2.cloudapp.azure.com"
|
||||
|
||||
#Required
|
||||
#TestPipeline="/job/Microsoft-Test-Execution-Pipeline"
|
||||
TestPipeline=""
|
||||
######################################################################################################
|
||||
|
||||
while echo $1 | grep ^- > /dev/null; do
|
||||
eval $( echo $1 | sed 's/-//g' | tr -d '\012')=$2
|
||||
shift
|
||||
shift
|
||||
done
|
||||
|
||||
#Verify the parameters file and import parameters.
|
||||
if [[ ! -z $ParametersFile ]];
|
||||
then
|
||||
echo "Parameters File: $ParametersFile"
|
||||
if [[ -f $ParametersFile ]];
|
||||
then
|
||||
echo "Importing parameters..."
|
||||
source $ParametersFile
|
||||
else
|
||||
echo "Unable to locate $ParametersFile. Exiting with 1"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
ExitCode=0
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
#!/bin/bash
|
||||
|
||||
##################################################
|
||||
#Paramerers file for LaunchTestPipelineRemotely.sh
|
||||
##################################################
|
||||
|
||||
#Required
|
||||
JenkinsUser=""
|
||||
|
||||
#Required
|
||||
UpstreamBuildNumber=""
|
||||
|
||||
#Required any one of the following
|
||||
ImageSource=""
|
||||
CustomVHD=""
|
||||
CustomVHDURL=""
|
||||
|
||||
#Required
|
||||
Kernel="default"
|
||||
|
||||
#Required any of the following if Kernel=custom
|
||||
CustomKernelFile=""
|
||||
CustomKernelURL=""
|
||||
|
||||
#Required
|
||||
GitUrlForAutomation="https://github.com/LIS/LISAv2.git"
|
||||
|
||||
#Required
|
||||
GitBranchForAutomation="master"
|
||||
|
||||
#Required at least one test selection choise from following.
|
||||
TestByTestname=""
|
||||
TestByCategorisedTestname=""
|
||||
TestByCategory=""
|
||||
TestByTag=""
|
||||
|
||||
#Required
|
||||
Email=""
|
||||
|
||||
#Optional
|
||||
LinuxUsername=""
|
||||
LinuxPassword=""
|
||||
|
||||
#Required to access Jenkins.
|
||||
ApiToken=""
|
||||
#Required to upload Files to jenkins server using FTP
|
||||
FtpUsername=""
|
||||
FtpPassword=""
|
||||
|
||||
#Required
|
||||
JenkinsURL="penguinator.westus2.cloudapp.azure.com"
|
||||
|
||||
#Required
|
||||
#TestPipeline="/view/Microsoft/job/Microsoft/job/Microsoft-Test-Execution-Pipeline"
|
||||
TestPipeline=""
|
Загрузка…
Ссылка в новой задаче