From be08ef358957b4df6e27d40dbfc03673c5ba89d6 Mon Sep 17 00:00:00 2001 From: machina13 Date: Fri, 1 Jul 2022 14:28:10 -0400 Subject: [PATCH 1/9] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..27a798ad --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,19 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- master + +pool: + vmImage: ubuntu-latest + +steps: +- script: echo Hello, world! + displayName: 'Run a one-line script' + +- script: | + echo Add other tasks to build, test, and deploy your project. + echo See https://aka.ms/yaml + displayName: 'Run a multi-line script' From 77f5680ac4806c7a19782ecff98262e82bd4c933 Mon Sep 17 00:00:00 2001 From: machina13 Date: Fri, 1 Jul 2022 14:41:26 -0400 Subject: [PATCH 2/9] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-1.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 azure-pipelines-1.yml diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml new file mode 100644 index 00000000..27a798ad --- /dev/null +++ b/azure-pipelines-1.yml @@ -0,0 +1,19 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- master + +pool: + vmImage: ubuntu-latest + +steps: +- script: echo Hello, world! + displayName: 'Run a one-line script' + +- script: | + echo Add other tasks to build, test, and deploy your project. + echo See https://aka.ms/yaml + displayName: 'Run a multi-line script' From 627708eb848d4cd49c5a4c9b2ea57f168d44cf5a Mon Sep 17 00:00:00 2001 From: root Date: Fri, 1 Jul 2022 20:03:32 +0000 Subject: [PATCH 3/9] Jenkinfile --- Jenkinfile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Jenkinfile diff --git a/Jenkinfile b/Jenkinfile new file mode 100644 index 00000000..684c38e4 --- /dev/null +++ b/Jenkinfile @@ -0,0 +1,8 @@ +pipeline { + agent any + stage ('HOLAMUNDO'){ + steps { + sh 'Hola Mundo' + } + } +} From 7d120207719c6cff330b66b42fffac2925f70890 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 1 Jul 2022 20:28:51 +0000 Subject: [PATCH 4/9] Jenkinfile --- Jenkinfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinfile b/Jenkinfile index 684c38e4..580a1327 100644 --- a/Jenkinfile +++ b/Jenkinfile @@ -1,8 +1,10 @@ pipeline { agent any - stage ('HOLAMUNDO'){ - steps { - sh 'Hola Mundo' + stages { + stage('HOLAMUNDO'){ + steps { + sh 'Hola Mundo' + } } - } + } } From 66d4b8f1b3b01a8fe4d814518179426fad34af7f Mon Sep 17 00:00:00 2001 From: root Date: Fri, 1 Jul 2022 21:31:53 +0000 Subject: [PATCH 5/9] Jenkinfile --- Jenkinfile | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/Jenkinfile b/Jenkinfile index 580a1327..089960cf 100644 --- a/Jenkinfile +++ b/Jenkinfile @@ -1,10 +1,17 @@ pipeline { - agent any - stages { - stage('HOLAMUNDO'){ - steps { - sh 'Hola Mundo' - } - } - } -} + agent any + stages { + stage('SCM') { + steps { + checkout scm + } + } + + stage('SAST') { + steps { + sh 'chmod +x gradlew' + sh './gradlew sonarqube -Dsonar.login=eb402dfd87ab83bfa88e9047d9c7add47053da27 -Dsonar.branch.name=feature-tarea4' + } + } + } +} From 34bf192483c22b7b5780dd4077866637f99f84a4 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 1 Jul 2022 22:25:57 +0000 Subject: [PATCH 6/9] Jenkinfile --- Jenkinfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinfile b/Jenkinfile index 089960cf..6be79850 100644 --- a/Jenkinfile +++ b/Jenkinfile @@ -9,8 +9,8 @@ pipeline { stage('SAST') { steps { - sh 'chmod +x gradlew' - sh './gradlew sonarqube -Dsonar.login=eb402dfd87ab83bfa88e9047d9c7add47053da27 -Dsonar.branch.name=feature-tarea4' + sh 'chmod +x mvnw' + sh './mvnw sonarqube -Dsonar.login=eb402dfd87ab83bfa88e9047d9c7add47053da27 -Dsonar.branch.name=feature-tarea4' } } } From 448c9367e0ec063e1da29fa6ca2acb3245bb1002 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 1 Jul 2022 22:34:01 +0000 Subject: [PATCH 7/9] Jenkinfile --- Jenkinfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinfile b/Jenkinfile index 6be79850..01a80cc1 100644 --- a/Jenkinfile +++ b/Jenkinfile @@ -10,7 +10,7 @@ pipeline { stage('SAST') { steps { sh 'chmod +x mvnw' - sh './mvnw sonarqube -Dsonar.login=eb402dfd87ab83bfa88e9047d9c7add47053da27 -Dsonar.branch.name=feature-tarea4' + sh './mvnw -Dsonar.login=eb402dfd87ab83bfa88e9047d9c7add47053da27 -Dsonar.branch.name=feature-tarea4 -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectKey=machina13_spring-boot-kubernetes -Dsonar.organization=machina13' } } } From f54e48d6fdfc669b37defad5e822263ddbd12c32 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 1 Jul 2022 22:42:56 +0000 Subject: [PATCH 8/9] Jenkinfile --- Jenkinfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinfile b/Jenkinfile index 01a80cc1..d2ed40ca 100644 --- a/Jenkinfile +++ b/Jenkinfile @@ -10,7 +10,7 @@ pipeline { stage('SAST') { steps { sh 'chmod +x mvnw' - sh './mvnw -Dsonar.login=eb402dfd87ab83bfa88e9047d9c7add47053da27 -Dsonar.branch.name=feature-tarea4 -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectKey=machina13_spring-boot-kubernetes -Dsonar.organization=machina13' + sh './mvnw sonar:sonar -Dsonar.login=eb402dfd87ab83bfa88e9047d9c7add47053da27 -Dsonar.branch.name=feature-tarea4 -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectKey=machina13_spring-boot-kubernetes -Dsonar.organization=machina13' } } } From 2f3edc6a2865214b661b715786658767f31f7a4e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 1 Jul 2022 23:01:16 +0000 Subject: [PATCH 9/9] Jenkinfile --- Jenkinfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinfile b/Jenkinfile index d2ed40ca..cc16ff30 100644 --- a/Jenkinfile +++ b/Jenkinfile @@ -10,7 +10,7 @@ pipeline { stage('SAST') { steps { sh 'chmod +x mvnw' - sh './mvnw sonar:sonar -Dsonar.login=eb402dfd87ab83bfa88e9047d9c7add47053da27 -Dsonar.branch.name=feature-tarea4 -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectKey=machina13_spring-boot-kubernetes -Dsonar.organization=machina13' + sh './mvnw -B verify sonar:sonar -Dsonar.login=eb402dfd87ab83bfa88e9047d9c7add47053da27 -Dsonar.branch.name=feature-tarea4 -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectKey=machina13_spring-boot-kubernetes -Dsonar.organization=machina13' } } }