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 {