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

Feature/1 this is the front end #3

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.idea/
target/
target/
1 change: 1 addition & 0 deletions Java.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h
84 changes: 84 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
pipeline {
agent any

tools {
// Install the Maven version configured as "M3" and add it to the path.
maven "M3"
}

stages {
stage('Checkout') {
steps {
// Get some code from a GitHub repository
git branch: 'main', url:'https://github.com/kudaz28/lbg-hello-world-maven.git'
}
}
stage('Build') {
steps {
// Get some code from a GitHub repository
echo 'Now running build'
}
}
stage('Unit Tests') {
steps {
// Get some code from a GitHub repository
echo 'Now running tests'
}
}
stage('Package') {
steps {
// Get some code from a GitHub repository
sh "mvn clean compile"
}
}
stage('Deploy to Dev') {
steps {
// Get some code from a GitHub repository
echo "Completed"
}
}
stage('Deploy to Test') {
steps {
// Get some code from a GitHub repository
echo "Completed"
}
}
stage('Deploy to UAT') {
steps {
// Get some code from a GitHub repository
echo "Completed"
}
}
stage('Wait for Business Input') {
steps {
script {
// Prompt the user for approval to deploy
def user_input = input(
id: 'user_input',
message: 'Do you want to deploy the project?',
parameters: [booleanParam(defaultValue: true, description: 'Select to deploy', name: 'Deploy')]
)
if (user_input) {
// Deploy the project
echo 'Deploying the project...'
// Add your deployment steps here
} else {
echo 'User canceled the deployment.'
}
}
}
}
stage('Deploy to Production') {
steps {
// Get some code from a GitHub repository
echo "Completed"
}
}
stage('Done') {
steps {
// Get some code from a GitHub repository
echo "Completed"
}
}
}
}