diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..50332e2 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,55 @@ +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' + echo 'Hello' + } + } + + } + 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..3bade6a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - +# Testing the auto trigger # Sysfoo Application A Devops Learning App