Update Jenkinsfile
Some checks failed
jenkins_organization/maven_project/pipeline/head There was a failure building this commit
Some checks failed
jenkins_organization/maven_project/pipeline/head There was a failure building this commit
This commit is contained in:
parent
171f3c879e
commit
b74b63fdb5
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -4,11 +4,20 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Hello') {
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
// Kompilowanie i pakowanie aplikacji za pomocą Mavena
|
||||||
|
script {
|
||||||
|
sh 'mvn clean package'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Test') {
|
||||||
steps {
|
steps {
|
||||||
// Uruchomienie testów jednostkowych
|
// Uruchomienie testów jednostkowych
|
||||||
script {
|
script {
|
||||||
echo 'hello world '
|
sh 'mvn test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user