diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..7ad1949 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,33 @@ +pipeline { + agent any + + tools{ + maven 'localMaven' + jdk 'localJDK' + } + environment { + fname = "Bijay" + lname = "Mahakudak" + version = "1.2" + system = "test" + cloud ="AWS" + } + stages{ + stage('Build'){ + steps{ + sh 'mvn clean package' + } + post { + success { + echo 'archiving the artifacts' + archiveArtifacts artifacts: '**/target/*.jar' + } + } + } + stage ('Deploy to string'){ + steps { + echo 'This is just a demo on string server.' + } + } + } +} diff --git a/abc.java b/abc.java index 17fb527..86dd479 100644 --- a/abc.java +++ b/abc.java @@ -1 +1,2 @@ -first demo file for github repo +1first demo file for github repo +is this going to triggeer diff --git a/demo1.sh b/demo1.sh new file mode 100644 index 0000000..067312a --- /dev/null +++ b/demo1.sh @@ -0,0 +1,2 @@ +#!/bin/bash +echo "demo file" diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..3faaf71 --- /dev/null +++ b/pom.xml @@ -0,0 +1,52 @@ + + + 4.0.0 + + com.bijaykumar + my-app2 + 1.0-SNAPSHOT + jar + + My Java App + Example Java application built with Maven for Jenkins CI. + + + 1.8 + 1.8 + + + + + + + junit + junit + 4.13.2 + test + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + ${maven.compiler.source} + ${maven.compiler.target} + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.2 + + + +