Skip to content
Open

fork #27

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
21 changes: 21 additions & 0 deletions bacakup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

cd /var/lib/jenkins/
sudo cp -pr /var/lib/jenkins/ /home/ec2-user/jenkins_backup/
cd /home/ec2-user/jenkins_backup/


sudo git init

sudo git add jenkins

sudo git commit -m "jenkins backup taken"

sudo git push https://github.com/govardhanpbv/jenkins_backup.git master

if [ $? -eq 0 ]
then
echo "successfull"
else
echo " backup fails"
fi
27 changes: 27 additions & 0 deletions big3.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
public class Biggest_Number
{
public static void main(String[] args)
{
int x, y, z;
Scanner s = new Scanner(System.in);
System.out.print("Enter the first number:");
x = s.nextInt();
System.out.print("Enter the second number:");
y = s.nextInt();
System.out.print("Enter the third number:");
z = s.nextInt();
if(x > y && x > z)
{
System.out.println("Largest number is:"+x);
}
else if(y > z)
{
System.out.println("Largest number is:"+y);
}
else
{
System.out.println("Largest number is:"+z);
}
}}

#this is webhooks testing
29 changes: 29 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>jenkins_maven</groupId>
<artifactId>factorial</artifactId>
<version>1</version>
<packaging>war</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<properties>
<failOnMissingWebXml>false</failOnMissingWebXml>
</properties>
</project>