mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:15:50 +00:00
gh 1st workflow
This commit is contained in:
parent
b405366dfa
commit
7748c87e0b
2 changed files with 22 additions and 9 deletions
14
.github/workflows/first-example.yml
vendored
Normal file
14
.github/workflows/first-example.yml
vendored
Normal 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
17
Jenkinsfile
vendored
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue