diff --git a/.gitignore b/.gitignore index 4eb0cb06f..961e56108 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,4 @@ release.properties dependency-reduced-pom.xml buildNumber.properties .idea -*.iml \ No newline at end of file +*.iml diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..07ec7e7a3 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,27 @@ +pipeline{ + agent any + stages{ + stage("git checkout"){ + steps{ + git 'https://github.com/sahooashok709/time-tracker.git' + } + } + stage("build in maven"){ + steps{ + sh "mvn clean package" + } + } + stage("deploy in tomcat"){ + steps{ + sshagent(['tomcat']) { + sh """ + scp -o StrictHostKeyChecking=no /var/lib/jenkins/workspace/new_pipeline/web/target/time-tracker-web-0.5.0-SNAPSHOT.war ec2-user@172.31.10.239:/opt/tomcat8/webapps + ssh ec2-user@172.31.10.239 /opt/tomcat8/bin/shutdown.sh + ssh ec2-user@172.31.10.239 /opt/tomcat8/bin/startup.sh + """ + } + } + } + + } +} diff --git a/LICENSE b/LICENSE index 8dada3eda..3c0abca23 100644 --- a/LICENSE +++ b/LICENSE @@ -23,7 +23,7 @@ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - "Source" form shall mean the preferred form for making modifications, + "Source" form shall mean the prefered form for making modifications, including but not limited to software source code, documentation source, and configuration files. diff --git a/README.md b/README.md index c5026e56c..f250b4300 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,4 @@ Java (Maven) application for tracking time on the job Time tracker -Good Afn!!! +Good Afn!! diff --git a/pom.xml b/pom.xml index d7690fbd4..85d85e30b 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ 0.5.0-SNAPSHOT Time Tracker (Parent) - This is a simple Maven / Java web project. + This is a simple Maven / Java web project. 2017 http://taylor.training/ diff --git a/web/pom.xml b/web/pom.xml index b4620fdaf..96a2db75e 100644 --- a/web/pom.xml +++ b/web/pom.xml @@ -2,7 +2,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 - + training.taylor.time-tracker time-tracker-parent 0.5.0-SNAPSHOT