Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f07578a
- fixes stages names for pipeline
baywet Aug 17, 2021
1f1d5b7
- switches github connection to production connection
baywet Aug 17, 2021
0d219e3
- removes alert failure as this is natively supported in teams now
baywet Aug 17, 2021
c82f929
- updates connection name to organisation
baywet Aug 17, 2021
0b7cf21
- upgrades credscan tool to suppress warning
baywet Aug 17, 2021
343130a
Merge pull request #270 from microsoftgraph/bugfix/pipeline-stage-names
baywet Aug 17, 2021
a90dfe0
- updates credscan task to latest
baywet Aug 17, 2021
3923b07
Merge pull request #273 from microsoftgraph/feature/minor-template-up…
baywet Aug 17, 2021
286a6e5
move install-java to templates and add it to every stage
ramsessanchez Aug 17, 2021
2e140ae
changed file paths for the Gradle Tasks in different stages
ramsessanchez Aug 17, 2021
732a7ba
remove instance of Properties_path in favor of DROP_PATH
ramsessanchez Aug 17, 2021
229c8f4
fixing bug preventing build from succeeding
ramsessanchez Aug 17, 2021
03f7a3e
reverting change from previous commit
ramsessanchez Aug 17, 2021
87674d2
Merge pull request #275 from microsoftgraph/rsh/pipelineBugFixes
baywet Aug 18, 2021
83f74df
- adds a download artifacts stage
baywet Aug 18, 2021
3b83487
- another path fix attemp
baywet Aug 18, 2021
d762667
- updates minimatch pattern for download artifiact task
baywet Aug 18, 2021
66e4370
- adds temporary listing task
baywet Aug 18, 2021
e8b55ad
- removes painful quote
baywet Aug 18, 2021
e02c922
- clean up test sequences from pipeline
baywet Aug 18, 2021
2673625
Merge pull request #277 from microsoftgraph/bugfix/download-artifacts
baywet Aug 18, 2021
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
27 changes: 14 additions & 13 deletions .azure-pipelines/buildAndPackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,61 +38,62 @@ stages:
- job: Build
steps:
- template: templates/build/checkout-and-credscan.yml
- template: templates/build/install-java.yml
- template: templates/install-java.yml
- template: templates/secure-files.yml
parameters:
stageID: 'build'
- template: templates/build/build-and-coverage.yml
- template: templates/build/publish-artefacts.yml
- template: templates/alert-failure.yml

- stage: Maven-Preview
- stage: Maven_Preview
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))
jobs:
- deployment: Maven-Preview
- deployment: Maven_Preview
environment: 'MSGraph SDK Development - Java'
pool:
vmImage: windows-latest
strategy:
runOnce:
deploy:
steps:
steps:
- template: templates/download-artifacts.yml
- template: templates/install-java.yml
- template: templates/secure-files.yml
- template: templates/copy-and-build.yml
parameters:
task: 'publishSnapshotPublicationToSonatypeSnapshotRepository'
- template: templates/alert-failure.yml

- stage: Maven-Release-And-Github-Release
- stage: Maven_Release_And_Github_Release
dependsOn: []
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
jobs:
- deployment: Maven-Release
- deployment: Maven_Release
environment: 'MSGraph SDK Development - Java'
pool:
vmImage: windows-latest
strategy:
runOnce:
deploy:
steps:
- template: templates/download-artifacts.yml
- template: templates/install-java.yml
- template: templates/secure-files.yml
parameters:
stageID: 'release'
- template: templates/copy-and-build.yml
parameters:
task: 'publishMavenCentralReleasePublicationToSonatypeRepository'
- template: templates/alert-failure.yml

- deployment: Github-Release
dependsOn: Maven-Release
- deployment: Github_Release
dependsOn: Maven_Release
environment: 'MSGraph SDK Development - Java'
pool:
vmImage: windows-latest
strategy:
runOnce:
deploy:
steps:
- template: templates/download-artifacts.yml
- template: templates/version-and-release.yml
parameters:
gitConnection: 'ramsessanchez'
- template: templates/alert-failure.yml
gitConnection: 'microsoftgraphrelease'
10 changes: 0 additions & 10 deletions .azure-pipelines/templates/alert-failure.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .azure-pipelines/templates/build/build-and-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
steps:
- task: Gradle@2
inputs:
gradleWrapperFile: 'gradlew'
gradleWrapperFile: '$(Build.SourcesDirectory)/gradlew'
tasks: 'build'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
Expand Down
4 changes: 2 additions & 2 deletions .azure-pipelines/templates/build/checkout-and-credscan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ steps:
clean: true
fetchDepth: 1

- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3
displayName: 'Run CredScan'
inputs:
debugMode: false
debugMode: false
6 changes: 3 additions & 3 deletions .azure-pipelines/templates/copy-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ steps:
inputs:
SourceFolder: '$(Agent.TempDirectory)'
Contents: '**'
TargetFolder: '$(DROP_PATH)/'
TargetFolder: '$(Agent.BuildDirectory)/Drop/'

- task: Gradle@2
inputs:
gradleWrapperFile: '$(DROP_PATH)/gradlew'
workingDirectory: '$(DROP_PATH)'
gradleWrapperFile: $(Agent.BuildDirectory)/Drop/gradlew
workingDirectory: '$(Agent.BuildDirectory)/Drop/'
options: '-x jar -x javadoc -x javadocJar -x compileJava -x processResources -x classes -x sourceJar'
tasks: ${{ parameters.task }}
publishJUnitResults: true
Expand Down
10 changes: 10 additions & 0 deletions .azure-pipelines/templates/download-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
steps:
- download: none
- task: DownloadPipelineArtifact@2
inputs:
source: current
artifact: Drop
path: '$(Agent.BuildDirectory)/Drop/'
patterns: |
**
*
3 changes: 2 additions & 1 deletion .azure-pipelines/templates/version-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ steps:
- task: PowerShell@2
inputs:
filePath: '$(DROP_PATH)/Scripts/getLatestVersion.ps1'
arguments: '-propertiesPath "$(PROPERTIES_PATH)"'
arguments: '-propertiesPath "$(DROP_PATH)/gradle.properties"'
pwsh: true

- task: GitHubRelease@1
inputs:
Expand Down