From 16e2ff10b2089d72aaf50bc976a2850d8399366e Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 12:10:42 +0530 Subject: [PATCH 01/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 44 ++++++++++++++++++++++++++++++++++---------- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7438c7453..c990ab765 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -8,15 +8,39 @@ trigger: pool: vmImage: ubuntu-latest - +# Set Up Project steps: -- task: Maven@3 +- script: | + echo "Starting Pipeline Execution." + + # Set Up and write .properties file + + # Run Docker container with mount and run tests + echo -e "\n~~~\nRun SOAtestCLI Docker container & mount ./temp volume.\n" + + docker --version + + docker run -i \ + -u 0:0 \ + -e ACCEPT_EULA=true \ + -v "$(pwd)/temp:/temp" \ + lavanya93/parabank-baseline:2022 /bin/bash -c " \ + + docker ps \ + echo -e "\nDebug -- Verify ./temp contents\n" + ls -R $(pwd)/temp + displayName: Run Tests + env: + pwd: $(Build.Repository.LocalPath) + +- publish: /home/vsts/work/1/s/temp + artifact: TSA +# Publish Test Results + +- task: PublishParasoftTestResults@1 + + displayName: Publish SOAtest Test Results inputs: - mavenPomFile: 'pom.xml' - mavenOptions: '-Xmx3072m' - javaHomeOption: 'JDKVersion' - jdkVersionOption: '1.8' - jdkArchitectureOption: 'x64' - publishJUnitResults: true - testResultsFiles: '**/surefire-reports/TEST-*.xml' - goals: 'package' + testRunner: 'SOAtest9x' + testResultsFiles: '$(Build.Repository.LocalPath)/temp/rep*.xml' +# docker cp $(System.DefaultWorkingDirectory) ctp20212-ltc-cam-1:/tmp/root/parasoft/techsupport/ \ No newline at end of file From 6b9456c0a4fb7fe0ade589e1e002c3b77d00bdb4 Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 14:18:53 +0530 Subject: [PATCH 02/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c990ab765..dee629fe1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,12 +12,7 @@ pool: steps: - script: | echo "Starting Pipeline Execution." - - # Set Up and write .properties file - - # Run Docker container with mount and run tests - echo -e "\n~~~\nRun SOAtestCLI Docker container & mount ./temp volume.\n" - + # Run Docker container with mount and run tests docker --version docker run -i \ @@ -37,10 +32,4 @@ steps: artifact: TSA # Publish Test Results -- task: PublishParasoftTestResults@1 - - displayName: Publish SOAtest Test Results - inputs: - testRunner: 'SOAtest9x' - testResultsFiles: '$(Build.Repository.LocalPath)/temp/rep*.xml' -# docker cp $(System.DefaultWorkingDirectory) ctp20212-ltc-cam-1:/tmp/root/parasoft/techsupport/ \ No newline at end of file +- task: PublishParasoftTestResults@1 \ No newline at end of file From 125797a046288851e0148e408f13e20bc7d9d152 Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 14:20:22 +0530 Subject: [PATCH 03/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index dee629fe1..7458729c1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,7 +14,6 @@ steps: echo "Starting Pipeline Execution." # Run Docker container with mount and run tests docker --version - docker run -i \ -u 0:0 \ -e ACCEPT_EULA=true \ From 97202beae4c096d72e6fbf1420d907dff3676a2f Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 14:20:54 +0530 Subject: [PATCH 04/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7458729c1..9b4ea7085 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,7 +13,7 @@ steps: - script: | echo "Starting Pipeline Execution." # Run Docker container with mount and run tests - docker --version + docker --version \ docker run -i \ -u 0:0 \ -e ACCEPT_EULA=true \ From 685db55849286bb87c81ad1c82be58084969dc35 Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 14:21:19 +0530 Subject: [PATCH 05/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9b4ea7085..19967f1b9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,7 +13,7 @@ steps: - script: | echo "Starting Pipeline Execution." # Run Docker container with mount and run tests - docker --version \ + docker run -i \ -u 0:0 \ -e ACCEPT_EULA=true \ From 30143ac5173da1e7a939e2b22ede8e73d31c3ff1 Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 14:21:58 +0530 Subject: [PATCH 06/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 19967f1b9..c990ab765 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,8 +12,14 @@ pool: steps: - script: | echo "Starting Pipeline Execution." - # Run Docker container with mount and run tests - + + # Set Up and write .properties file + + # Run Docker container with mount and run tests + echo -e "\n~~~\nRun SOAtestCLI Docker container & mount ./temp volume.\n" + + docker --version + docker run -i \ -u 0:0 \ -e ACCEPT_EULA=true \ @@ -31,4 +37,10 @@ steps: artifact: TSA # Publish Test Results -- task: PublishParasoftTestResults@1 \ No newline at end of file +- task: PublishParasoftTestResults@1 + + displayName: Publish SOAtest Test Results + inputs: + testRunner: 'SOAtest9x' + testResultsFiles: '$(Build.Repository.LocalPath)/temp/rep*.xml' +# docker cp $(System.DefaultWorkingDirectory) ctp20212-ltc-cam-1:/tmp/root/parasoft/techsupport/ \ No newline at end of file From 0d197144133366dfa007bf31bf7eca6d43a8916f Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 14:51:02 +0530 Subject: [PATCH 07/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c990ab765..efa0f8245 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,12 +12,8 @@ pool: steps: - script: | echo "Starting Pipeline Execution." + # Run Docker container with mount and run tests - # Set Up and write .properties file - - # Run Docker container with mount and run tests - echo -e "\n~~~\nRun SOAtestCLI Docker container & mount ./temp volume.\n" - docker --version docker run -i \ From e52973e1f156290f74b0221da4248b700a48d8d7 Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 14:53:38 +0530 Subject: [PATCH 08/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index efa0f8245..b822105e7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,12 +10,9 @@ pool: vmImage: ubuntu-latest # Set Up Project steps: -- script: | +- script: echo "Starting Pipeline Execution." - # Run Docker container with mount and run tests - - docker --version - +#Run Docker container with mount and run tests docker run -i \ -u 0:0 \ -e ACCEPT_EULA=true \ @@ -23,7 +20,7 @@ steps: lavanya93/parabank-baseline:2022 /bin/bash -c " \ docker ps \ - echo -e "\nDebug -- Verify ./temp contents\n" + ls -R $(pwd)/temp displayName: Run Tests env: From 918c44c11b72ddcaf097e8e0a0c101fc1827c0b8 Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 14:54:38 +0530 Subject: [PATCH 09/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 70 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 61 insertions(+), 9 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b822105e7..e72c7d461 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,26 +1,78 @@ -# Maven -# Build your Java project and run tests with Apache Maven. -# Add steps that analyze code, save build artifacts, deploy, and more: -# https://docs.microsoft.com/azure/devops/pipelines/languages/java +# Starter pipeline +# Pull from Repo +# Import Project into Docekr SOAtest CLI container and Run +# Azure YAML docs: +# https://aka.ms/yaml trigger: - main pool: - vmImage: ubuntu-latest + vmImage: 'ubuntu-latest' + # Set Up Project steps: -- script: +- script: | echo "Starting Pipeline Execution." -#Run Docker container with mount and run tests + echo "Create ./temp directory for volume mount." + mkdir temp + echo ${PWD} + echo "Copy SOAtest project contents to volume directory." + cp -R $(soatest.project) temp/. + + # Set Up and write .properties file + echo -e "\n~~~\nSetting up and creating soatestcli.properties file.\n" + echo $" + dtp.url=$(license.server.url) + dtp.user=admin + dtp.password=admin + dtp.share.enabled=true + dtp.project=ADO + report.dtp.publish=true + techsupport.advanced=false + techsupport.auto_creation=true + techsupport.item.environment=true + techsupport.item.general=true + techsupport.archive_location=/temp + techsupport.send_email=false + techsupport.verbose=true + techsupport.verbose.scontrol=false + license.network.auth.enabled=true + license.network.password=$(license.server.password) + license.network.url=$(license.server.url) + license.network.use.specified.server=true + license.network.user=admin + soatest.license.network.edition=automation_edition + soatest.license.use_network=true + virtualize.license.network.edition=performance_server_edition + virtualize.license.use_network=true" >> temp/soatestcli.properties + echo -e "\nDebug -- Verify workspace contents.\n" + ls -R + echo -e "\nDebug -- Verify soatestcli.properties file contents." + cat temp/soatestcli.properties + + # Run Docker container with mount and run tests + echo -e "\n~~~\nRun SOAtestCLI Docker container & mount ./temp volume.\n" + + docker --version + docker run -i \ -u 0:0 \ -e ACCEPT_EULA=true \ -v "$(pwd)/temp:/temp" \ lavanya93/parabank-baseline:2022 /bin/bash -c " \ - + cat /temp/soatestcli.properties; \ + soatestcli \ + -settings /temp/soatestcli.properties \ + -import /temp/$(soatest.project); \ + soatestcli \ + -resource /$(soatest.project) \ + -config 'user://Example Configuration' \ + -settings /temp/soatestcli.properties \ + -publish \ + -report /temp" \ docker ps \ - + echo -e "\nDebug -- Verify ./temp contents\n" ls -R $(pwd)/temp displayName: Run Tests env: From 24268de032027e4c1c3ef0a68ab88c472f00fac7 Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 16:56:04 +0530 Subject: [PATCH 10/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e72c7d461..b1c9e4ae5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -56,21 +56,16 @@ steps: docker --version - docker run -i \ - -u 0:0 \ - -e ACCEPT_EULA=true \ - -v "$(pwd)/temp:/temp" \ - lavanya93/parabank-baseline:2022 /bin/bash -c " \ - cat /temp/soatestcli.properties; \ - soatestcli \ - -settings /temp/soatestcli.properties \ - -import /temp/$(soatest.project); \ - soatestcli \ - -resource /$(soatest.project) \ - -config 'user://Example Configuration' \ - -settings /temp/soatestcli.properties \ - -publish \ - -report /temp" \ + docker run --rm -d + -p 4040:4040 \ + -p 8090:8080\ + -p 9021:9001\ + -p 63616:61616\ + -p 8050:8050\ + --net=demo-net\ + --add-host=dev1.parasoft.com:host-gateway\ + --add-host=qa1.parasoft.com:host-gateway\ + --name parabank-baseline lavanya93/parabank-baseline:2022\ docker ps \ echo -e "\nDebug -- Verify ./temp contents\n" ls -R $(pwd)/temp From 9ab85f40949f917b9d8f6295c985a49ac5185d85 Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 17:39:06 +0530 Subject: [PATCH 11/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b1c9e4ae5..aeb7c0b2c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -65,7 +65,8 @@ steps: --net=demo-net\ --add-host=dev1.parasoft.com:host-gateway\ --add-host=qa1.parasoft.com:host-gateway\ - --name parabank-baseline lavanya93/parabank-baseline:2022\ + --name parabank-baseline\ + lavanya93/parabank-baseline:2022\ docker ps \ echo -e "\nDebug -- Verify ./temp contents\n" ls -R $(pwd)/temp From 01632f43556b5d334160e5915f7e0484badd3570 Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 17:45:01 +0530 Subject: [PATCH 12/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index aeb7c0b2c..b0b18576d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -56,17 +56,17 @@ steps: docker --version - docker run --rm -d + docker run --rm -d \ -p 4040:4040 \ - -p 8090:8080\ - -p 9021:9001\ - -p 63616:61616\ - -p 8050:8050\ - --net=demo-net\ - --add-host=dev1.parasoft.com:host-gateway\ - --add-host=qa1.parasoft.com:host-gateway\ - --name parabank-baseline\ - lavanya93/parabank-baseline:2022\ + -p 8090:8080 \ + -p 9021:9001 \ + -p 63616:61616 \ + -p 8050:8050 \ + --net=demo-net \ + --add-host=dev1.parasoft.com:host-gateway \ + --add-host=qa1.parasoft.com:host-gateway \ + --name parabank-baseline \ + lavanya93/parabank-baseline:2022 \ docker ps \ echo -e "\nDebug -- Verify ./temp contents\n" ls -R $(pwd)/temp From 4d23af2ec3177eb7592f68316daaded447200475 Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 17:47:34 +0530 Subject: [PATCH 13/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b0b18576d..ccc8cc4e1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -56,17 +56,7 @@ steps: docker --version - docker run --rm -d \ - -p 4040:4040 \ - -p 8090:8080 \ - -p 9021:9001 \ - -p 63616:61616 \ - -p 8050:8050 \ - --net=demo-net \ - --add-host=dev1.parasoft.com:host-gateway \ - --add-host=qa1.parasoft.com:host-gateway \ - --name parabank-baseline \ - lavanya93/parabank-baseline:2022 \ + docker run --rm -d -p 4040:4040 -p 8090:8080 -p 9021:9001 -p 63616:61616 -p 8050:8050 --net=demo-net --add-host=dev1.parasoft.com:host-gateway --add-host=qa1.parasoft.com:host-gateway --name parabank-baseline lavanya93/parabank-baseline:2022 docker ps \ echo -e "\nDebug -- Verify ./temp contents\n" ls -R $(pwd)/temp From ce36d76491099fe4983e3ebd1dbf599838627779 Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 17:57:10 +0530 Subject: [PATCH 14/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ccc8cc4e1..0046064d7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -56,7 +56,10 @@ steps: docker --version - docker run --rm -d -p 4040:4040 -p 8090:8080 -p 9021:9001 -p 63616:61616 -p 8050:8050 --net=demo-net --add-host=dev1.parasoft.com:host-gateway --add-host=qa1.parasoft.com:host-gateway --name parabank-baseline lavanya93/parabank-baseline:2022 + docker run --rm -d -p 4040:4040 -p 8090:8080 -p 9021:9001 -p 63616:61616 -p 8050:8050 --net=demo-net\ + -e add-host=dev1.parasoft.com:host-gateway + -e add-host=qa1.parasoft.com:host-gateway + --name parabank-baseline lavanya93/parabank-baseline:2022 docker ps \ echo -e "\nDebug -- Verify ./temp contents\n" ls -R $(pwd)/temp From 7e22b397613fc61d36ab62e63771e480068651f6 Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 18:00:51 +0530 Subject: [PATCH 15/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0046064d7..ebdf6ade1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -57,9 +57,10 @@ steps: docker --version docker run --rm -d -p 4040:4040 -p 8090:8080 -p 9021:9001 -p 63616:61616 -p 8050:8050 --net=demo-net\ - -e add-host=dev1.parasoft.com:host-gateway - -e add-host=qa1.parasoft.com:host-gateway - --name parabank-baseline lavanya93/parabank-baseline:2022 + -e add-host=dev1.parasoft.com:host-gateway \ + -e add-host=qa1.parasoft.com:host-gateway \ + --name parabank-baseline \ + lavanya93/parabank-baseline:2022 \ docker ps \ echo -e "\nDebug -- Verify ./temp contents\n" ls -R $(pwd)/temp From 54f2c8102ab99168195cf38e17d5bb2323f50020 Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 18:01:25 +0530 Subject: [PATCH 16/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ebdf6ade1..968c43a73 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -61,6 +61,7 @@ steps: -e add-host=qa1.parasoft.com:host-gateway \ --name parabank-baseline \ lavanya93/parabank-baseline:2022 \ + docker ps \ echo -e "\nDebug -- Verify ./temp contents\n" ls -R $(pwd)/temp From 9eae9ef237e7d58f926be0fde71d7a6cf9f5a087 Mon Sep 17 00:00:00 2001 From: Lavanya <112009192+lav-user@users.noreply.github.com> Date: Wed, 21 Sep 2022 18:23:37 +0530 Subject: [PATCH 17/17] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 968c43a73..2825ee985 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -56,11 +56,7 @@ steps: docker --version - docker run --rm -d -p 4040:4040 -p 8090:8080 -p 9021:9001 -p 63616:61616 -p 8050:8050 --net=demo-net\ - -e add-host=dev1.parasoft.com:host-gateway \ - -e add-host=qa1.parasoft.com:host-gateway \ - --name parabank-baseline \ - lavanya93/parabank-baseline:2022 \ + docker run --rm -d -p 4040:4040 -p 8090:8080 -p 9021:9001 -p 63616:61616 -p 8050:8050 --net=demo-net --add-host=dev1.parasoft.com:host-gateway --add-host=qa1.parasoft.com:host-gateway --name parabank-baseline lavanya93/parabank-baseline:2022 \ docker ps \ echo -e "\nDebug -- Verify ./temp contents\n"