diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..94170c6 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,54 @@ +pipeline { + agent any + stages { + stage('build') { + steps { + echo 'compiling sysfoo app..' + sh 'mvn compile' + } + } + + stage('test') { + parallel { + stage('umit test') { + steps { + echo 'running unit tests...' + sh 'mvn clean test' + } + } + + stage('SCA') { + steps { + sleep 4 + } + } + + stage('SBOM') { + steps { + sleep 2 + } + } + + } + } + + stage('package') { + steps { + echo 'package the artifact...' + sh 'mvn package -DskipTests' + archiveArtifacts 'target/*.jar' + archiveArtifacts 'target/*.jar' + } + } + + } + tools { + maven 'Maven 3.6.3' + } + post { + always { + echo 'This pipeline is completed..' + } + + } +} \ No newline at end of file diff --git a/README.md b/README.md index 6ae4ea5..36c14be 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,12 @@ - +# Testing the auto trigger # Sysfoo Application A Devops Learning App ## About the Application +## Testing branch protection rules + The Sysfoo application is designed as a learning tool to demonstrate various aspects of web development using Spring Boot and other associated technologies. It provides real-time system information, database connectivity status, and a basic to-do list functionality to illustrate interaction with a database. This application is ideal for individuals learning about Spring Boot, RESTful services, and simple frontend interactions with JavaScript. This is also useful for anyone who would like to implement Devops Practices with this App.