Skip to content
Open

tiii #14

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
d6995f8
Update pom.xml
Shrutidhanawade Sep 23, 2024
cf19f2d
Set up CI with Azure Pipelines
Shrutidhanawade Sep 23, 2024
1e4da71
Update azure-pipelines.yml
Shrutidhanawade Sep 23, 2024
8ba138d
Update azure-pipelines.yml for Azure Pipelines
Shrutidhanawade Sep 23, 2024
da909ac
Update azure-pipelines.yml for Azure Pipelines
Shrutidhanawade Sep 23, 2024
b9c4e93
Set up CI with Azure Pipelines
Shrutidhanawade Sep 23, 2024
e8a32d0
Update azure-pipelines-1.yml for Azure Pipelines
Shrutidhanawade Sep 23, 2024
f6d2f98
Update azure-pipelines-1.yml for Azure Pipelines
Shrutidhanawade Sep 23, 2024
0f9fa6d
Update azure-pipelines-1.yml for Azure Pipelines
Shrutidhanawade Sep 23, 2024
80bd6c9
Update azure-pipelines.yml
Shrutidhanawade Sep 23, 2024
aad4840
Update azure-pipelines.yml
Shrutidhanawade Sep 23, 2024
d5d06a4
Update azure-pipelines.yml
Shrutidhanawade Sep 23, 2024
751bb8b
Update azure-pipelines.yml
Shrutidhanawade Sep 23, 2024
a7715f9
Update azure-pipelines.yml
Shrutidhanawade Sep 23, 2024
448b0ce
Update azure-pipelines.yml
Shrutidhanawade Sep 23, 2024
72cdd96
Update azure-pipelines.yml
Shrutidhanawade Sep 23, 2024
60a4105
Update azure-pipelines.yml
Shrutidhanawade Sep 23, 2024
87926a5
Update azure-pipelines.yml
Shrutidhanawade Sep 23, 2024
84e65e9
Set up CI with Azure Pipelines
Shrutidhanawade Sep 23, 2024
1657094
Update azure-pipelines.yml for Azure Pipelines
Shrutidhanawade Sep 23, 2024
512c9c0
Update README.md
Shrutidhanawade Feb 4, 2025
ced88eb
Update README.md
Shrutidhanawade Feb 4, 2025
0768abe
Update README.md
Shrutidhanawade Feb 4, 2025
31ff117
Update README.md
Shrutidhanawade Feb 4, 2025
4f71fa2
Update README.md
Shrutidhanawade Feb 4, 2025
34c6bb2
Update pom.xml
Shrutidhanawade Feb 6, 2025
6e08861
Update pom.xml
Shrutidhanawade Feb 6, 2025
1961d1f
Update README.md
Shrutidhanawade Feb 6, 2025
9c03113
Store Jira Issue ID: 10016
Feb 12, 2025
1804651
Update pom.xml
Shrutidhanawade Mar 12, 2025
06ca989
Update pom.xml
Shrutidhanawade Mar 12, 2025
c98eab1
Update pom.xml
Shrutidhanawade Mar 12, 2025
b07cb8f
Update pom.xml
Shrutidhanawade Mar 12, 2025
069f294
Update README.md
Shrutidhanawade May 7, 2025
e81a0ce
Update README.md
Shrutidhanawade May 7, 2025
bd928a8
Update Jenkinsfile
Shrutidhanawade May 7, 2025
3c95adc
Update jira_issue.txt
Shrutidhanawade May 7, 2025
58da0cd
Update jira_issue.txt
Shrutidhanawade May 7, 2025
444215d
Update jira_issue.txt
Shrutidhanawade May 7, 2025
ecb95dc
Update jira_issue.txt
Shrutidhanawade May 7, 2025
d4ff449
Update README.md
Shrutidhanawade May 21, 2025
ff8fd54
Update pom.xml
Shrutidhanawade Jun 10, 2025
07d2542
Update pom.xml
Shrutidhanawade Jun 10, 2025
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
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# jenkins-pipeline-example
#USING WEBHOOK1
# jenkins-pipeline-example

webhook trigger-11

<repository>
<id>dholerahul707</id>
<url>https://pkgs.dev.azure.com/dholerahul707/_packaging/dholerahul707/maven/v1</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
61 changes: 61 additions & 0 deletions azure-pipelines-1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java

trigger:
- main

stages:
# Stage 1: Build
- stage: Build
displayName: 'Build Stage'
pool: 'azure-first project' # Specify your pool here
jobs:
- job: Build
displayName: 'Build Job'
steps:
- task: Maven@4
inputs:
mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
goals: 'clean install'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
displayName: 'Maven Build'

# Stage 2: Test
- stage: Test
displayName: 'Test Stage'
dependsOn: Build # This stage depends on the Build stage
pool: 'Default' # Different agent pool
jobs:
- job: UnitTests
displayName: 'Run Unit Tests'
steps:
- task: Maven@4
inputs:
mavenPomFile: '/myagent/_work/1/s/my-app/pom.xml'
goals: 'test'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
displayName: 'Maven Unit Tests'

# Stage 3: Deploy
- stage: Deploy
displayName: 'Deploy Stage'
dependsOn: Build # Run deploy only if the build succeeds
pool: 'azure-first project'
jobs:
- job: Deploy
displayName: 'Deploy Job'
steps:
- script: |
echo "Searching for JAR files..."
find $(System.DefaultWorkingDirectory) -name "*.jar"
displayName: 'Find JAR Files'

- task: Maven@4
inputs:
mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
goals: 'deploy'
displayName: 'Maven Deploy'
75 changes: 75 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java

trigger:
- main

pool:
name: azure-first project

stages:

# Stage 1: Build..
- stage: Build
displayName: 'Build Stage'
jobs:
- job: Build
displayName: 'Build Job'
steps:
- task: Maven@4
inputs:
mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
goals: 'clean install'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
javaHomeOption: 'JDKVersion'
mavenVersionOption: 'Default'
mavenAuthenticateFeed: false
effectivePomSkip: false
sonarQubeRunAnalysis: false
displayName: 'Maven Build'

# Stage 2: Test
- stage: Test
displayName: 'Test Stage'
dependsOn: Build # Run tests only if the build succeeds
jobs:
- job: UnitTests
displayName: 'Run Unit Tests -get approval'
steps:
- task: Maven@4
inputs:
mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
goals: 'test' # Only run tests in this stage
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
javaHomeOption: 'JDKVersion'
mavenVersionOption: 'Default'
mavenAuthenticateFeed: false
displayName: 'Maven Unit Tests'

# Stage 3: Deploy

- stage: Deploy
displayName: 'Deploy Stage'
dependsOn: Build # Run deploy only if the build succeeds
jobs:
- deployment:
environment: 'deploy'
strategy:
runOnce:
deploy:
steps:
- task: Maven@4
inputs:
mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
goals: 'deploy'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
javaHomeOption: 'JDKVersion'
mavenVersionOption: 'Default'
mavenAuthenticateFeed: false
effectivePomSkip: false
sonarQubeRunAnalysis: false
2 changes: 2 additions & 0 deletions jira_issue.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jira_issue_id: 10016 .

1 change: 1 addition & 0 deletions my-app/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pipeline {
tools {
maven "MAVEN"
jdk "JDK"
//MVN
}

stages {
Expand Down
27 changes: 27 additions & 0 deletions my-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,15 @@
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.10.0.2594</version>
</dependency>
</dependencies>

<build>
<finalName>${project.artifactId}-${project.version}-${env.BUILD_NUMBER}</finalName>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
Expand Down Expand Up @@ -69,7 +75,28 @@
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.0.0</version>
</plugin>





</plugins>
</pluginManagement>
</build>

<distributionManagement>
<repository>
<id>central</id>
<name>ip-172-31-13-156.ap-south-1.compute.internal-releases</name>
<url>http://15.207.55.160:8081/artifactory/app-lib</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>ip-172-31-13-156.ap-south-1.compute.internal-snapshots</name>
<url>http://15.207.55.160:8081/artifactory/app-lib</url>
</snapshotRepository>
</distributionManagement>



</project>