Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

cd /var/lib/jenkins

ls -a | grep -w .git

if [ $? -ne 0 ];then
git init
fi

touch .gitignore
echo workspace >> .gitignore
git add *
git commit -m "Jenkins_Backup on `date`"
git push https://github.com/kiransurya035/Test-1.git master

if [ $? -eq 0 ];then

x=`echo -e "hi, Jenkins Backup \n thank you"`
echo $x | mail -s "Jenkins backup success on `date`" kirankrishnaiah705@gmail.com
else
echo $x | mail -s "Jenkins backup failed on `date`" kirankrishnaiah705@gmail.com

fi
16 changes: 16 additions & 0 deletions hello.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.mkyong.common;

/**
* * Spring bean
* *
* */
public class hello {
private String name;

public void setName(String name) {
this.name = name;
}

public void printHello() {
System.out.println("Hello ! " + name);
}
28 changes: 28 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mkyong.common</groupId>
<artifactId>SpringExamples</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>SpringExamples</name>
<url>http://maven.apache.org</url>
<dependencies>

<!-- Spring framework -->

<dependency>

<groupId>org.springframework</groupId>

<artifactId>spring</artifactId>

<version>2.5.6</version>

</dependency>


</dependencies>