From 3d6d2f9ddaf241d17173c99d8c76199464f4e51d Mon Sep 17 00:00:00 2001 From: Ashok Mazumder Date: Fri, 5 May 2023 11:42:15 +0530 Subject: [PATCH 1/2] added jenkins file --- jenkinsfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 jenkinsfile diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 00000000..a6c83579 --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,26 @@ +pipeline{ + agent any + tools{ + maven 'Maven 3.6.3' + } + 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' + } + } + } +} From dc00a2567d11c041d685709a96ea7b14e1b5d69a Mon Sep 17 00:00:00 2001 From: Ashok Mazumder Date: Fri, 5 May 2023 12:09:37 +0530 Subject: [PATCH 2/2] samplepipe --- Jenkinsfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..42892af4 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,24 @@ +pipeline { + agent any + stages { + stage('checkour') { + steps { + echo 'i am in checkout' + git(url: 'https://github.com/ashokmazumder/sysfoo.git', branch: 'master', credentialsId: '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') + } + } + + stage('Compile') { + steps { + echo 'hello compile' + } + } + + stage('publish') { + steps { + echo 'publish' + } + } + + } +} \ No newline at end of file