mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-06 10:34:09 +00:00
Major agent update.
This commit is contained in:
42
DevOps/ProtexAutomation/ScanProtexProject/ReadMe.txt
Normal file
42
DevOps/ProtexAutomation/ScanProtexProject/ReadMe.txt
Normal file
@@ -0,0 +1,42 @@
|
||||
ScanProtexProject.bat will take the user credentials, Protex server URL and project ID as input. The bat uses bdstool
|
||||
to initiate the scan. After the 1st scan, rerun of this .bat file will only scan changes in code base will be scanned.
|
||||
If a forced scan is needed, then open the ScanProtexProject.bat in edit more, and update to below line
|
||||
call bdstool analyze --force
|
||||
|
||||
Prerequisite:
|
||||
Protex client MUST be installed prior to executing the script
|
||||
|
||||
How to Execute:
|
||||
Windows OS:
|
||||
1) Open a DOS Window
|
||||
ScanProtexProject.bat <Protex server URL> <User ID> <User Password> <Project ID> <Scan Folder Path>
|
||||
|
||||
Linux OS
|
||||
1) Open a bash windows
|
||||
sh ScanProtexProject.sh <Protex server URL> <User ID> <User Password> <Project ID> <Scan Folder Path>
|
||||
Input Parameters:
|
||||
IN arg[0] - Protex server URL
|
||||
IN arg[1] - User ID
|
||||
IN arg[2] - Password
|
||||
IN arg[3] - Protex project ID
|
||||
IN arg[4] - Source files Path
|
||||
|
||||
Example:
|
||||
ScanProtexProject.bat https://jfipscn01.intel.com abc@intel.com abc c_test_k_5271 c:\ScanSource
|
||||
sh ScanProtexProject.sh https://jfipscn01.intel.com abc@intel.com abc c_test_k_5271 ~/ScanSource
|
||||
================================================================================================================================
|
||||
Protex Server ID Protex Server URL
|
||||
BA1 https://baipscn01.intel.com
|
||||
GK1 https://gkipscn01.intel.com
|
||||
IL1 https://iilipscn01.intel.com
|
||||
JF1 https://jfipscn01.intel.com
|
||||
JF2 https://jfipscn02.intel.com
|
||||
JF03 https://jfipscn03.intel.com
|
||||
JF04 https://jfipscn04.intel.com
|
||||
JF05 https://jfipscn05.intel.com
|
||||
JF06 https://jfipscn06.intel.com
|
||||
NN01 https://nnsipscn01.intel.com
|
||||
SC2 https://scipscn02.intel.com
|
||||
SC3 https://scipscn03.intel.com
|
||||
SH1 https://shipscn01.intel.com
|
||||
MU01 https://imuipscn01.intel.com
|
||||
@@ -0,0 +1,38 @@
|
||||
@echo off
|
||||
if "%1" == "" GOTO ENDFILE
|
||||
if "%2" == "" GOTO ENDFILE
|
||||
if "%3" == "" GOTO ENDFILE
|
||||
if "%4" == "" GOTO ENDFILE
|
||||
if "%5" == "" GOTO ENDFILE
|
||||
|
||||
|
||||
Rem set environmental values to enable login to the Protex server
|
||||
|
||||
|
||||
Rem Set the server URL
|
||||
SET BDSSERVER=%1
|
||||
|
||||
Rem Set the login name
|
||||
SET BDSUSER=%2
|
||||
|
||||
Rem Set the password
|
||||
SET BDSPASSWORD=%3
|
||||
|
||||
pushd "%5"
|
||||
call bdstool login
|
||||
call bdstool new-project %4 --verbose
|
||||
call bdstool analyze
|
||||
call bdstool logout
|
||||
goto DONE
|
||||
|
||||
:ENDFILE
|
||||
echo "Arugument Missing"
|
||||
echo "Input Parameters:" );
|
||||
echo "arg[1] - Protex server URL e.g http://scipscn03.intel.com");
|
||||
echo "arg[2] - Protex user ID e.g abc@intel.com");
|
||||
echo "arg[3] - Password e.g abc");
|
||||
echo "arg[4] - Project ID e.g c_byt_beta_audio_6009");
|
||||
echo "arg[5] - Source Code location e.g \"C:\\MySource\\ScanDir\"");
|
||||
|
||||
:DONE
|
||||
popd
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $# -ne 5 ]; then
|
||||
echo "Arugument Missing"
|
||||
echo "Input Parameters:"
|
||||
echo "arg[1] - Protex server URL"
|
||||
echo "arg[2] - Protex user ID e.g abc@intel.com"
|
||||
echo "arg[3] - Password e.g abc"
|
||||
echo "arg[4] - Project ID e.g c_byt_beta_audio_6009"
|
||||
echo "arg[5] - Source Code location e.g /home/sourcefiles"
|
||||
exit
|
||||
fi
|
||||
|
||||
# set environmental values to enable login to the Protex server
|
||||
|
||||
# Set the server URL
|
||||
export BDSSERVER=$1
|
||||
|
||||
# Set the login name
|
||||
export BDSUSER=$2
|
||||
|
||||
# Set the password
|
||||
SET BDSPASSWORD=$3
|
||||
|
||||
pushd $5
|
||||
bdstool login
|
||||
bdstool new-project $4 --verbose
|
||||
bdstool analyze
|
||||
bdstool logout
|
||||
popd
|
||||
|
||||
exit
|
||||
Reference in New Issue
Block a user