diff --git a/Dockerfile b/Dockerfile index 1e00740e..3c94512d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,3 +3,4 @@ COPY target/sampleapp.war /usr/local/tomcat/webapps EXPOSE 8080 CMD /usr/local/tomcat/bin/catalina.sh run # +hello how r u diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..264e6e70 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,11 @@ +pipeline { + agent any + stages { + stage('compile') { + steps { + sh 'sh script: \'/opt/maven/bin/mvn compile\'' + } + } + + } +} \ No newline at end of file diff --git a/README.md b/README.md index dc779846..c0f37bf2 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ Sample Java Applicaiton V3.5 +changes made in github for jenkins +hello world +hi good afternoon +its for build trigger demo testing diff --git a/jenkins/Jenkinsfile-CI b/jenkins/Jenkinsfile-CI index b8cb888e..a2abdbc3 100644 --- a/jenkins/Jenkinsfile-CI +++ b/jenkins/Jenkinsfile-CI @@ -4,7 +4,7 @@ pipeline { stage('compile') { steps { echo 'compiling..' - git url: 'https://github.com/lerndevops/samplejavaapp' + git url: 'https://github.com/Sumalli/samplejavaapp.git' sh script: '/opt/maven/bin/mvn compile' } }