Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
b256d0a
Update pom.xml
cloud-dev-user Jul 1, 2022
559acf4
Update pom.xml
cloud-dev-user Jul 1, 2022
3c69f09
Update readme
cloud-dev-user Jul 20, 2022
cf04699
Update pom.xml
cloud-dev-user Jul 21, 2022
6f81078
Update readme
cloud-dev-user Jul 21, 2022
51182c0
Update readme
cloud-dev-user Oct 7, 2022
bb1e458
Updated and removed line
cloud-dev-user Oct 7, 2022
60b5bb4
Update readme
cloud-dev-user Oct 7, 2022
284affb
Update readme
cloud-dev-user Jun 1, 2023
4ae5938
Create buildspec.yml
cloud-dev-user Aug 2, 2023
0389754
Merge pull request #10 from cloud-dev-user/cloud-dev-user-patch-3
cloud-dev-user Aug 2, 2023
f33ae51
Update buildspec.yml
cloud-dev-user Aug 2, 2023
fd2b9c6
Create build.yml
cloud-dev-user Sep 20, 2023
18eaf51
Update build.yml
cloud-dev-user Sep 21, 2023
75e0d90
Update readme
cloud-dev-user Sep 25, 2023
24dde13
Update readme
cloud-dev-user Sep 25, 2023
c3abd21
Merge pull request #13 from cloud-dev-user/feature/test-githubactions
cloud-dev-user Sep 25, 2023
869f51f
Update build.yml
cloud-dev-user Sep 25, 2023
3985c05
Update build.yml
cloud-dev-user Sep 25, 2023
d4ad4e3
Create test.yaml
cloud-dev-user Sep 25, 2023
8c6f7e0
Update test.yaml
cloud-dev-user Sep 25, 2023
b74c2b9
Update test.yaml
cloud-dev-user Sep 25, 2023
a85c3fd
Update build.yml
cloud-dev-user Sep 26, 2023
642bf88
Update build.yml
cloud-dev-user Sep 26, 2023
c44cdcb
Update readme
cloud-dev-user Sep 26, 2023
7b74716
Update readme
cloud-dev-user Dec 14, 2023
edd82a7
Create Jenkinsfile
cloud-dev-user Jan 3, 2024
8020611
Create report-task.txt
cloud-dev-user Sep 18, 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
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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: Java CI with Maven

on:
push:
branches: [ "develop" ]

jobs:
build:

runs-on: ubuntu-latest

- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
#- name: Update dependency graph
# uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: Testing yaml

16 changes: 16 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pipeline{
agent any

stages {
stage (" checkout my code " ) {
steps {
sh " git clone https://github.com/cloud-dev-user/java-war-project.git"
}
}
stage(" build my code") {
steps{
sh " cd java-war-project && mvn package"
}
}
}
}
11 changes: 11 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 0.2
phases:
install:
command: echo "Installing dependencies..."
pre_build:
command: echo "Running linters..."
build:
command: mvn install
post_build:
command: echo "Running tests..."

12 changes: 11 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<version>1.0-SNAPSHOT</version>
<version>2.0-SNAPSHOT</version>
<packaging>war</packaging>

<name>my-app Maven Webapp</name>
Expand Down Expand Up @@ -64,4 +64,14 @@
</plugins>
</pluginManagement>
</build>
<distributionManagement>
<snapshotRepository>
<id>nexus-snapshots</id>
<url>http://192.168.1.2:10010/repository/maven-snapshots/</url>
</snapshotRepository>
<repository>
<id>nexus-releases</id>
<url>http://192.168.1.2:10010/repository/maven-releases/</url>
</repository>
</distributionManagement>
</project>
8 changes: 8 additions & 0 deletions readme
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
this is readme file
set of instruction to run this webapp
mvn clean install
this is new change
this is change for master
this is my new change for testing github actions

this is after my pull request to develop

This the change done on 26th sept
This is the new change
1 change: 1 addition & 0 deletions report-task.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# this is test file