Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
simple-demo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zamar Zahid
simple-demo
Commits
e8aaa218
Commit
e8aaa218
authored
Apr 14, 2021
by
Zamar Zahid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parents
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
137 additions
and
0 deletions
+137
-0
.gitignore
.gitignore
+26
-0
Test.groovy
.jenkins/modules/Test/Test.groovy
+1
-0
Jenkinsfile
Jenkinsfile
+20
-0
pom.xml
pom.xml
+50
-0
simple-demo.md
simple-demo.md
+12
-0
DemoApplication.java
src/main/java/com/example/demo/DemoApplication.java
+12
-0
application.properties
src/main/resources/application.properties
+0
-0
DemoApplicationTests.java
src/test/java/com/example/demo/DemoApplicationTests.java
+16
-0
No files found.
.gitignore
0 → 100644
View file @
e8aaa218
/target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/build/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
\ No newline at end of file
.jenkins/modules/Test/Test.groovy
0 → 100644
View file @
e8aaa218
echo
'Project demo overridden Test module'
Jenkinsfile
0 → 100644
View file @
e8aaa218
@Library
(
'mpl@release'
)
_
/* node( 'LS' ) {
stage( 'Application Checkout' ) {
MPLModule('Checkout')
}
stage( 'Build' ) {
MPLModule()
}
stage( 'Custom Stage' ) {
echo 'Any custom steps you want'
}
stage( 'Test' ) {
MPLModule()
}
} */
MPLPipeline
{}
pom.xml
0 → 100644
View file @
e8aaa218
<?xml version="1.0" encoding="UTF-8"?>
<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.example
</groupId>
<artifactId>
demo
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
<packaging>
jar
</packaging>
<name>
demo
</name>
<description>
Demo project for Spring Boot
</description>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.0.1.RELEASE
</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<java.version>
1.8
</java.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
simple-demo.md
0 → 100644
View file @
e8aaa218
# Simple Demo
Simple java project uses
`MPLModule`
calls in scripted pipeline and shows the basics of modules
overriding using in-project
`.jenkins`
directory.
## Usage
1.
Create jenkins pipeline job to build this project
2.
Setup MPL shared library in jenkins
3.
Get the wiki repository and use this directory as scm source
4.
Run build of the project
5.
Check the messages and fix if there is some issues with your env
src/main/java/com/example/demo/DemoApplication.java
0 → 100644
View file @
e8aaa218
package
com
.
example
.
demo
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
@SpringBootApplication
public
class
DemoApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
DemoApplication
.
class
,
args
);
}
}
src/main/resources/application.properties
0 → 100644
View file @
e8aaa218
src/test/java/com/example/demo/DemoApplicationTests.java
0 → 100644
View file @
e8aaa218
package
com
.
example
.
demo
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringRunner
;
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
public
class
DemoApplicationTests
{
@Test
public
void
contextLoads
()
{
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment