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

Create jenkinsfile #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Create jenkinsfile
  • Loading branch information
ihebkchiche authored Sep 28, 2023
commit 479b7ec0170ff69739b732aff307de4eb5d49515
32 changes: 32 additions & 0 deletions jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
pipeline {
agent {label 'Jenkins-Agent'}
tools {
jdk 'Java17'
maven 'Maven3'
}
stages{
stage("Cleanup Workspace"){
steps {
cleanWs()
}
}

stage("Checkout from SCM"){
steps {
git branch: 'main', credentialsId: 'github', url: 'git utl'
}
}

stage("Build Application"){
steps {
sh "mvn clean package"
}
}

stage("Test Application"){
steps {
sh "mvn test"
}
}
}
}