diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..686048b --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,30 @@ +pipeline { + agent any + stages { + stage('build') { + steps { + echo 'compile maven app' + sh 'mvn compile' + } + } + + stage('test') { + steps { + echo 'test maven app' + sh 'mvn clean test' + } + } + + stage('package') { + steps { + echo 'package maven app' + sh 'mvn package -DskipTests' + archiveArtifacts 'target/*.jar' + } + } + + } + tools { + maven 'Maven 3.6.3' + } +} \ No newline at end of file diff --git a/README.md b/README.md index 6ae4ea5..0b3a0cf 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - +# Deepthi # Sysfoo Application A Devops Learning App diff --git a/test.md b/test.md new file mode 100644 index 0000000..bc492a1 --- /dev/null +++ b/test.md @@ -0,0 +1,4 @@ +Example App +========= + +This is a sample app. \ No newline at end of file