Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature test02 #13

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
f6f7074
updated jenkinsfile
camlumpDelta Jan 30, 2024
9900d25
Create maven.yml
camlumpDelta Jan 31, 2024
9ae04e1
Merge pull request #1 from camlumpDelta/camlumpDelta-patch-2
camlumpDelta Jan 31, 2024
48f3623
Update maven.yml
camlumpDelta Jan 31, 2024
44a74ad
Update and rename maven.yml to jenkinsBuild.yml
camlumpDelta Jan 31, 2024
a17251d
Update jenkinsBuild.yml
camlumpDelta Jan 31, 2024
a0120d6
Merge pull request #9 from camlumpDelta/camlumpDelta-patch-10
camlumpDelta Jan 31, 2024
0ea190e
test commit for action
camlumpDelta Jan 31, 2024
4aeca8e
Update jenkinsBuild.yml
camlumpDelta Jan 31, 2024
81c19d9
Merge pull request #10 from camlumpDelta/camlumpDelta-patch-10
camlumpDelta Jan 31, 2024
ee4a0c6
tes twot commit for action
camlumpDelta Jan 31, 2024
fedfe16
Merge branch 'main' of https://github.com/camlumpDelta/jenkins-pipeli…
camlumpDelta Jan 31, 2024
65a9a78
Update jenkinsBuild.yml
camlumpDelta Jan 31, 2024
ae91178
Merge pull request #11 from camlumpDelta/camlumpDelta-patch-10
camlumpDelta Jan 31, 2024
9d9a81f
test three commit for action
camlumpDelta Jan 31, 2024
2dab38a
Update jenkinsBuild.yml
camlumpDelta Jan 31, 2024
28dbd57
Merge pull request #12 from camlumpDelta/camlumpDelta-patch-6
camlumpDelta Jan 31, 2024
1c98a40
added empty class called student
camlumpDelta Jan 31, 2024
12f6f59
modified Student class
camlumpDelta Jan 31, 2024
adaf1e9
modified Student class
camlumpDelta Jan 31, 2024
fc66807
Merge pull request #13 from camlumpDelta/feature-test01
camlumpDelta Jan 31, 2024
24034e4
Update jenkinsBuild.yml
camlumpDelta Jan 31, 2024
e51ff37
Merge pull request #14 from camlumpDelta/camlumpDelta-patch-6
camlumpDelta Jan 31, 2024
eb14fa1
FEAT02 modified Student class
camlumpDelta Jan 31, 2024
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
28 changes: 28 additions & 0 deletions .github/workflows/jenkinsBuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: trigger jenkins job
on:
pull_request:
branches: [ "main" ]
types: [closed]

jobs:

build:
if: github.event.pull_request.merged == true
name: Build
runs-on: ubuntu-latest
steps:
- name: trigger single Job
uses: appleboy/jenkins-action@master
with:
url: ${{ secrets.JENKINS_SERVER }}
user: "camlump"
token: ${{ secrets.JENKINS_PAT }}
job: "demo-pipeline"
4 changes: 2 additions & 2 deletions my-app/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pipeline {

tools {
maven "MAVEN"
jdk "JDK"
jdk "JDK11"
}

stages {
Expand All @@ -16,7 +16,7 @@ pipeline {
stage('Build') {
steps {
dir("/var/lib/jenkins/workspace/New_demo/my-app/") {
sh 'mvn -B -DskipTests clean package'
bat 'mvn -B -DskipTests clean package'
}

}
Expand Down
15 changes: 15 additions & 0 deletions my-app/src/main/java/com/mycompany/app/Student.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.mycompany.app;

import java.time.LocalDate;

public class Student {

private String name;
private int age;

private String major;

private String birthdate;

private String hometown;
}
4 changes: 4 additions & 0 deletions my-app/src/main/java/com/mycompany/app/Test.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.mycompany.app;

public class Test {
}
8 changes: 8 additions & 0 deletions my-app/src/main/java/com/mycompany/app/Test2.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.mycompany.app;

import org.w3c.dom.ls.LSOutput;

public class Test2 {


}
4 changes: 4 additions & 0 deletions my-app/src/main/java/com/mycompany/app/test3.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.mycompany.app;

public class test3 {
}