├── .gitignore
├── 1.basic-maven-example
├── .DS_Store
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.jdt.core.prefs
│ └── org.eclipse.m2e.core.prefs
├── g
├── h
├── pom.xml
└── src
│ ├── main
│ └── java
│ │ └── com
│ │ └── in28minutes
│ │ └── maven
│ │ └── App.java
│ └── test
│ └── java
│ └── com
│ └── in28minutes
│ └── maven
│ └── AppTest.java
├── Jenkinsfile
├── README.md
└── pom.xml
/.gitignore:
--------------------------------------------------------------------------------
1 | target
2 |
--------------------------------------------------------------------------------
/1.basic-maven-example/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DeekshithSN/Jenkinsfile/2b70e65b94eb7d22206d96e3414cce52753f267b/1.basic-maven-example/.DS_Store
--------------------------------------------------------------------------------
/1.basic-maven-example/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/1.basic-maven-example/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | maven-example-1
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.m2e.core.maven2Builder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/1.basic-maven-example/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3 | org.eclipse.jdt.core.compiler.compliance=1.5
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.5
6 |
--------------------------------------------------------------------------------
/1.basic-maven-example/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/1.basic-maven-example/g:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DeekshithSN/Jenkinsfile/2b70e65b94eb7d22206d96e3414cce52753f267b/1.basic-maven-example/g
--------------------------------------------------------------------------------
/1.basic-maven-example/h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DeekshithSN/Jenkinsfile/2b70e65b94eb7d22206d96e3414cce52753f267b/1.basic-maven-example/h
--------------------------------------------------------------------------------
/1.basic-maven-example/pom.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 | 4.0.0
5 |
6 | com.in28minutes.maven
7 | basic-maven-example
8 | 1.0-SNAPSHOT
9 |
10 | jar
11 |
12 | maven-example-1
13 | http://www.in28minutes.com
14 |
15 |
16 |
17 | junit
18 | junit
19 | 4.1
20 | test
21 |
22 |
23 |
24 |
25 | src/main/java
26 | src/test/java
27 |
28 |
29 |
30 | org.apache.maven.plugins
31 | maven-compiler-plugin
32 | 3.2
33 |
34 | true
35 | 1.7
36 | 1.7
37 | true
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/1.basic-maven-example/src/main/java/com/in28minutes/maven/App.java:
--------------------------------------------------------------------------------
1 | package com.in28minutes.maven;
2 |
3 | /**
4 | * Hello world!
5 | *
6 | */
7 | public class App
8 | {
9 | public static void main( String[] args )
10 | {
11 | System.out.println( "Hello World!" );
12 | }
13 |
14 | public int calculateSomething() {
15 | return 0;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/1.basic-maven-example/src/test/java/com/in28minutes/maven/AppTest.java:
--------------------------------------------------------------------------------
1 | package com.in28minutes.maven;
2 |
3 | import static org.junit.Assert.*;
4 |
5 | import org.junit.Test;
6 |
7 | public class AppTest
8 | {
9 | @Test
10 | public void testApp()
11 | {
12 | assertEquals(0,new App().calculateSomething());
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Jenkinsfile:
--------------------------------------------------------------------------------
1 | pipeline {
2 | agent any
3 | stages {
4 | stage('Example') {
5 | input {
6 | message "Should we continue?"
7 | ok "Yes, we should."
8 | //submitter "alice,bob"
9 | parameters {
10 | string(name: 'PERSON', defaultValue: 'Mr Jenkins', description: 'Who should I say hello to?')
11 | string(name: 'Password', defaultValue: 'Mr Jenkins', description: 'Who should I say hello to?')
12 | }
13 | }
14 |
15 | steps {
16 | echo "Hello, ${PERSON}, nice to meet you."
17 | echo "Hello, ${Password}, nice to meet you."
18 | }
19 | }
20 |
21 |
22 |
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | This is to commit based job : yes
3 |
4 | This is commit message
5 |
6 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 | 4.0.0
5 |
6 | com.in28minutes.maven
7 | basic-maven-example
8 | 1.0-SNAPSHOT
9 |
10 | jar
11 |
12 | maven-example-1
13 | http://www.in28minutes.com
14 |
15 |
16 |
17 | junit
18 | junit
19 | 4.1
20 | test
21 |
22 |
23 |
24 |
25 | src/main/java
26 | src/test/java
27 |
28 |
29 |
30 | org.apache.maven.plugins
31 | maven-compiler-plugin
32 | 3.2
33 |
34 | true
35 | 1.7
36 | 1.7
37 | true
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------