Skip to content
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
33 changes: 33 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pipeline {
<<<<<<< HEAD

agent any

Expand Down Expand Up @@ -32,10 +33,33 @@ pipeline {
}

stage('UNIT TEST'){
=======
agent any
stages {
stage('Checkout') {
steps {
git 'https://github.com/example/repo.git'
}
}
stage('Build') {
steps {
sh 'mvn clean package'
}
}
stage('SonarQube Analysis') {
steps {
withSonarQubeEnv('SonarQube') {
sh 'mvn sonar:sonar'
}
}
}
stage('Selenium Tests') {
>>>>>>> d416274 (adding new proj repo)
steps {
sh 'mvn test'
}
}
<<<<<<< HEAD

stage('INTEGRATION TEST'){
steps {
Expand Down Expand Up @@ -120,3 +144,12 @@ pipeline {


}
=======
stage('Archive Artifact') {
steps {
archiveArtifacts artifacts: 'target/*.jar'
}
}
}
}
>>>>>>> d416274 (adding new proj repo)
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<<<<<<< HEAD
# Prerequisites
#######
- JDK 11
Expand All @@ -23,3 +24,7 @@ sql dump file:
- > mysql -u <user_name> -p accounts < db_backup.sql


=======
# CI/CD DevOps Project
Includes Jenkins, Selenium, SonarQube and Jira integration.
>>>>>>> d416274 (adding new proj repo)
Binary file added pipeline_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions selenium-tests/SampleTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public class SampleTest {}
1 change: 1 addition & 0 deletions selenium-tests/TestBase.java
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public class TestBase {}
2 changes: 2 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sonar.projectKey=sample
sonar.sources=.