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

tiii #14

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open

tiii #14

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 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
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
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
# jenkins-pipeline-example
# jenkins-pipeline-example

webhook trigger-12

<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
1 change: 1 addition & 0 deletions jira_issue.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jira_issue_id: 10016
23 changes: 23 additions & 0 deletions my-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,30 @@
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.0.0</version>
</plugin>





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

<repository>
<id>central</id>
<name>localhost.localdomain-releases</name>
<url>http://192.168.75.144:8081/artifactory/Maven</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>localhost.localdomain-snapshots</name>
<url>http://192.168.75.144:8081/artifactory/Maven</url>
</snapshotRepository>


</distributionManagement>



</project>