gh 1st workflow

This commit is contained in:
work 2025-02-06 16:54:48 +01:00
parent b405366dfa
commit 7748c87e0b
2 changed files with 22 additions and 9 deletions

14
.github/workflows/first-example.yml vendored Normal file
View file

@ -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

17
Jenkinsfile vendored
View file

@ -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 {