Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #48

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

test #48

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 30 additions & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,32 +1,50 @@
pipeline {
agent any

stages {
stages {
stage ('Compile Stage') {

when {
branch 'master'
}
steps {
sh '''
echo "Hello master branch"
echo ${BRANCH_NAME}
echo ${BUILD_ID}
'''
}
}
stage ('Testing Purpose') {
steps {
withMaven(maven : 'maven_3_5_0') {
sh 'mvn clean compile'
}
sh '''
echo "Second stage execution"
'''
}
}

stage ('Testing Stage') {
when {
branch 'develop'
}

steps {
withMaven(maven : 'maven_3_5_0') {
sh 'mvn test'
}
sh '''
echo "Hello develop branch"
'''
}
}


stage ('Deployment Stage') {
when {
branch 'feature-1'
}

steps {
withMaven(maven : 'maven_3_5_0') {
sh 'mvn deploy'
}
sh '''
echo "Hello feature-1 branch"
'''
}
}
}
}
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Fizz Buzz Example in Java 8 using JUnit 5

### Fizz Buzz is a game where
### Fizz Buzz is a game where yes yes yes yes
- if the number is divisible by 3, you say Fizz
- if the number is divisible by 5, you say Buzz
- if neither, you say the number
- if the number is divisible by 5, you ssay Buzz
- if neither, you say the number