From 7748c87e0b63cf7240ead97e17b2238f1428f0f1 Mon Sep 17 00:00:00 2001 From: work Date: Thu, 6 Feb 2025 16:54:48 +0100 Subject: [PATCH] gh 1st workflow --- .github/workflows/first-example.yml | 14 ++++++++++++++ Jenkinsfile | 17 ++++++++--------- 2 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/first-example.yml diff --git a/.github/workflows/first-example.yml b/.github/workflows/first-example.yml new file mode 100644 index 000000000..129f73ad3 --- /dev/null +++ b/.github/workflows/first-example.yml @@ -0,0 +1,14 @@ +name: My first workflow +on: push + +jobs: + first: + runs_on: ubuntu-latest + steps: + - name: Start + run: echo "Hello Kacper!" + - name: List files + run: ls + + - name: Read my amazing dockerfile + run: cat Dockerfile diff --git a/Jenkinsfile b/Jenkinsfile index 6d32c56ba..1f081eb7d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -37,15 +37,6 @@ stage('Login to dockerhub') { } } } -stage('Login to Nexus') { - steps { - withCredentials([usernamePassword(credentialsId: 'nexus-credentials', - usernameVariable: 'NEXUS_USER', - passwordVariable: 'NEXUS_PASS')]) { - sh 'echo $NEXUS_PASS | docker login $registry -u $NEXUS_USER --password-stdin' - } - } - } stage('Push') { steps { @@ -54,6 +45,14 @@ stage('Login to Nexus') { } + stage('Mvn report'){ + steps { + script { + sh './mvnw ' + } + } + + } /*stage ('Build') { steps {