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
33 changes: 33 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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.'
}
}
}
}
3 changes: 2 additions & 1 deletion abc.java
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
first demo file for github repo
1first demo file for github repo
is this going to triggeer
2 changes: 2 additions & 0 deletions demo1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
echo "demo file"
52 changes: 52 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<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/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>com.bijaykumar</groupId>
<artifactId>my-app2</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>My Java App</name>
<description>Example Java application built with Maven for Jenkins CI.</description>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
<!-- Add your dependencies here -->
<!-- Example: JUnit for testing -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<!-- Maven Compiler Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<!-- Maven Surefire Plugin for running tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
</plugin>
</plugins>
</build>
</project>