Skip to content

Commit a0e3ad1

Browse files
committed
fix: sanity release due to pipeline migration
1 parent 430401d commit a0e3ad1

File tree

3 files changed

+11
-197
lines changed

3 files changed

+11
-197
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,26 +67,26 @@ extends:
6767
6868
- script: ./gradlew --no-daemon publishToMavenLocal -PmavenCentralPublishingEnabled=true -PmavenCentralSnapshotArtifactSuffix=""
6969
displayName: Publish to local Maven for verification
70-
# condition: contains(variables['build.sourceBranch'], 'refs/tags/v')
70+
condition: contains(variables['build.sourceBranch'], 'refs/tags/v')
7171

72-
# - script: ./gradlew --no-daemon publishToMavenLocal -PmavenCentralPublishingEnabled=true
73-
# displayName: Publish to local Maven for verification
74-
# condition: not(contains(variables['build.sourceBranch'], 'refs/tags/v'))
72+
- script: ./gradlew --no-daemon publishToMavenLocal -PmavenCentralPublishingEnabled=true
73+
displayName: Publish to local Maven for verification
74+
condition: not(contains(variables['build.sourceBranch'], 'refs/tags/v'))
7575

7676
- script: ./gradlew --no-daemon publishMavenPublicationToADORepository -PmavenCentralPublishingEnabled=true -PmavenCentralSnapshotArtifactSuffix=""
7777
displayName: Publish to local Maven ADO for ESRP
78-
# condition: contains(variables['build.sourceBranch'], 'refs/tags/v')
78+
condition: contains(variables['build.sourceBranch'], 'refs/tags/v')
7979

80-
# - script: ./gradlew --no-daemon publishMavenPublicationToADORepository -PmavenCentralPublishingEnabled=true
81-
# displayName: Publish to local Maven ADO for ESRP
82-
# condition: not(contains(variables['build.sourceBranch'], 'refs/tags/v'))
80+
- script: ./gradlew --no-daemon publishMavenPublicationToADORepository -PmavenCentralPublishingEnabled=true
81+
displayName: Publish to local Maven ADO for ESRP
82+
condition: not(contains(variables['build.sourceBranch'], 'refs/tags/v'))
8383

8484
- pwsh: |
8585
$contents = Get-Content gradle.properties -Raw
8686
$major = $contents | Select-String -Pattern 'mavenMajorVersion\s*=\s*([0-9]+)' | ForEach-Object { $_.Matches.Groups[1].Value }
8787
$minor = $contents | Select-String -Pattern 'mavenMinorVersion\s*=\s*([0-9]+)' | ForEach-Object { $_.Matches.Groups[1].Value }
8888
$patch = $contents | Select-String -Pattern 'mavenPatchVersion\s*=\s*([0-9]+)' | ForEach-Object { $_.Matches.Groups[1].Value }
89-
# $snapshot_suffix = if ($Env:BRANCH_NAME.StartsWith('refs/tags/v')) { '' } else { '-SNAPSHOT' }
89+
$snapshot_suffix = if ($Env:BRANCH_NAME.StartsWith('refs/tags/v')) { '' } else { '-SNAPSHOT' }
9090
$version = "$major.$minor.$patch$snapshot_suffix"
9191
echo "Current version is $version"
9292
echo "##vso[task.setvariable variable=PACKAGE_VERSION;]$version"
@@ -112,7 +112,7 @@ extends:
112112
targetPath: "$(PACKAGE_PATH)"
113113

114114
- stage: deploy
115-
# condition: and(or(contains(variables['build.sourceBranch'], 'refs/tags/v'), eq(variables['build.sourceBranch'], '${{ parameters.previewBranch }}')), succeeded())
115+
condition: and(or(contains(variables['build.sourceBranch'], 'refs/tags/v'), eq(variables['build.sourceBranch'], '${{ parameters.previewBranch }}')), succeeded())
116116
dependsOn: build
117117
jobs:
118118
- deployment: deploy_github
@@ -192,7 +192,7 @@ extends:
192192

193193
- deployment: deploy_maven
194194
# snapshots are not supported by ESRP release for now, but they are planning to add support. When it happens, simply remove the condition
195-
# condition: and(contains(variables['build.sourceBranch'], 'refs/tags/v'), succeeded())
195+
condition: and(contains(variables['build.sourceBranch'], 'refs/tags/v'), succeeded())
196196
pool:
197197
name: Azure-Pipelines-1ESPT-ExDShared
198198
os: linux

.github/workflows/preview-and-release.yml

Lines changed: 0 additions & 170 deletions
This file was deleted.

build.gradle

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ plugins {
1212
id 'eclipse'
1313
id 'maven-publish'
1414
id 'signing'
15-
// TODO remove this dependency once we remove the GH WF
16-
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
1715
}
1816

1917
java {
@@ -89,20 +87,6 @@ publishing {
8987
}
9088
}
9189

92-
// TODO remove this configuration once we remove the GH WF
93-
nexusPublishing {
94-
repositories {
95-
sonatype {
96-
if (project.rootProject.file('local.properties').exists()) {
97-
Properties properties = new Properties()
98-
properties.load(project.rootProject.file('local.properties').newDataInputStream())
99-
username = properties.getProperty('sonatypeUsername')
100-
password = properties.getProperty('sonatypePassword')
101-
}
102-
}
103-
}
104-
}
105-
10690
group = project.property('mavenGroupId')
10791
version = "${mavenMajorVersion}.${mavenMinorVersion}.${mavenPatchVersion}${mavenCentralSnapshotArtifactSuffix}"
10892

0 commit comments

Comments
 (0)