summaryrefslogtreecommitdiffstats
path: root/screwdriver
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@yahooinc.com>2023-07-28 10:53:30 +0200
committerArnstein Ressem <aressem@yahooinc.com>2023-07-28 10:53:30 +0200
commite5706811c2379572dcbbed394991ca5c08099635 (patch)
tree9a6561bf5e4b6a637a27af751706442888783acf /screwdriver
parentfc706a99d5682d5f928dc153745f1e2edc69e4ab (diff)
Try to fix the open source release.
Diffstat (limited to 'screwdriver')
-rw-r--r--screwdriver/move-ossrh-deploy-profile.patch134
-rwxr-xr-xscrewdriver/release-java-artifacts.sh8
2 files changed, 140 insertions, 2 deletions
diff --git a/screwdriver/move-ossrh-deploy-profile.patch b/screwdriver/move-ossrh-deploy-profile.patch
new file mode 100644
index 00000000000..5ac9c85eeb3
--- /dev/null
+++ b/screwdriver/move-ossrh-deploy-profile.patch
@@ -0,0 +1,134 @@
+diff --git a/container-dependency-versions/pom.xml b/container-dependency-versions/pom.xml
+index e2bdc987354..72af951d965 100644
+--- a/container-dependency-versions/pom.xml
++++ b/container-dependency-versions/pom.xml
+@@ -189,58 +189,6 @@
+ </plugins>
+ </build>
+ </profile>
+- <profile>
+- <id>ossrh-deploy-vespa</id>
+- <activation>
+- <activeByDefault>false</activeByDefault>
+- </activation>
+- <properties>
+- </properties>
+- <build>
+- <plugins>
+- <plugin>
+- <groupId>org.apache.maven.plugins</groupId>
+- <artifactId>maven-gpg-plugin</artifactId>
+- <version>${maven.gpg.plugin.version}</version>
+- <executions>
+- <execution>
+- <id>sign-artifacts</id>
+- <phase>verify</phase>
+- <goals>
+- <goal>sign</goal>
+- </goals>
+- <configuration>
+- <gpgArguments>
+- <arg>--pinentry-mode</arg>
+- <arg>loopback</arg>
+- </gpgArguments>
+- </configuration>
+- </execution>
+- </executions>
+- </plugin>
+- <plugin>
+- <groupId>org.sonatype.plugins</groupId>
+- <artifactId>nexus-staging-maven-plugin</artifactId>
+- <version>${nexus.staging.maven.plugin.version}</version>
+- <extensions>true</extensions>
+- <configuration>
+- <serverId>ossrh</serverId>
+- <nexusUrl>https://oss.sonatype.org/</nexusUrl>
+- </configuration>
+- </plugin>
+- </plugins>
+- </build>
+- <distributionManagement>
+- <snapshotRepository>
+- <id>ossrh</id>
+- <url>${snapshotDeploymentRepository}</url>
+- </snapshotRepository>
+- <repository>
+- <id>ossrh</id>
+- <url>${releaseDeploymentRepository}</url>
+- </repository>
+- </distributionManagement>
+- </profile>
+ </profiles>
+
+ </project>
+diff --git a/dependency-versions/pom.xml b/dependency-versions/pom.xml
+index 088356dd685..81bd836dc28 100644
+--- a/dependency-versions/pom.xml
++++ b/dependency-versions/pom.xml
+@@ -28,7 +28,6 @@
+ </scm>
+
+ <properties>
+-
+ <!-- BEGIN Dependencies available from the Jdisc container, see container-dependency-versions/pom.xml -->
+
+ <!-- DO NOT UPGRADE THESE TO A NEW MAJOR VERSION WITHOUT CHECKING FOR BINARY COMPATIBILITY -->
+@@ -139,4 +138,58 @@
+ <versions-maven-plugin.vespa.version>2.8.1</versions-maven-plugin.vespa.version>
+ </properties>
+
++ <profiles>
++ <profile>
++ <id>ossrh-deploy-vespa</id>
++ <activation>
++ <activeByDefault>false</activeByDefault>
++ </activation>
++ <properties>
++ </properties>
++ <build>
++ <plugins>
++ <plugin>
++ <groupId>org.apache.maven.plugins</groupId>
++ <artifactId>maven-gpg-plugin</artifactId>
++ <version>${maven.gpg.plugin.version}</version>
++ <executions>
++ <execution>
++ <id>sign-artifacts</id>
++ <phase>verify</phase>
++ <goals>
++ <goal>sign</goal>
++ </goals>
++ <configuration>
++ <gpgArguments>
++ <arg>--pinentry-mode</arg>
++ <arg>loopback</arg>
++ </gpgArguments>
++ </configuration>
++ </execution>
++ </executions>
++ </plugin>
++ <plugin>
++ <groupId>org.sonatype.plugins</groupId>
++ <artifactId>nexus-staging-maven-plugin</artifactId>
++ <version>${nexus.staging.maven.plugin.version}</version>
++ <extensions>true</extensions>
++ <configuration>
++ <serverId>ossrh</serverId>
++ <nexusUrl>https://oss.sonatype.org/</nexusUrl>
++ </configuration>
++ </plugin>
++ </plugins>
++ </build>
++ <distributionManagement>
++ <snapshotRepository>
++ <id>ossrh</id>
++ <url>${snapshotDeploymentRepository}</url>
++ </snapshotRepository>
++ <repository>
++ <id>ossrh</id>
++ <url>${releaseDeploymentRepository}</url>
++ </repository>
++ </distributionManagement>
++ </profile>
++ </profiles>
+ </project>
diff --git a/screwdriver/release-java-artifacts.sh b/screwdriver/release-java-artifacts.sh
index 2194ff63ce0..f8491571d23 100755
--- a/screwdriver/release-java-artifacts.sh
+++ b/screwdriver/release-java-artifacts.sh
@@ -30,6 +30,10 @@ git clone https://github.com/vespa-engine/vespa.git $VESPA_DIR
cd $VESPA_DIR
git checkout $VESPA_REF
+#TODO(aressem): Remove after validation
+patch -p1 < $SD_SOURCE_DIR/screwdriver/move-ossrh-deploy-profile.patch
+
+
mkdir -p $SD_SOURCE_DIR/screwdriver/deploy
# gpg-agent in RHEL 8 runs out of memory if we use Maven and sign in parallel. Add option to overcome this.
echo "auto-expand-secmem" >> $SD_SOURCE_DIR/screwdriver/deploy/gpg-agent.conf
@@ -59,9 +63,9 @@ export VESPA_MAVEN_EXTRA_OPTS="--show-version --batch-mode"
export FACTORY_VESPA_VERSION=$VESPA_RELEASE
./bootstrap.sh
-COMMON_MAVEN_OPTS="-X $VESPA_MAVEN_EXTRA_OPTS --no-snapshot-updates --settings $(pwd)/screwdriver/settings-publish.xml --activate-profiles ossrh-deploy-vespa -DskipTests"
+COMMON_MAVEN_OPTS="$VESPA_MAVEN_EXTRA_OPTS --no-snapshot-updates --settings $(pwd)/screwdriver/settings-publish.xml --activate-profiles ossrh-deploy-vespa -DskipTests"
TMPFILE=$(mktemp)
-mvn $COMMON_MAVEN_OPTS -pl :container-dependency-versions -DskipStagingRepositoryClose=true deploy 2>&1 | tee $TMPFILE
+mvn -X $COMMON_MAVEN_OPTS -pl :dependency-versions -DskipStagingRepositoryClose=true deploy 2>&1 | tee $TMPFILE
# Find the stage repo name
STG_REPO=$(cat $TMPFILE | grep 'Staging repository at http' | head -1 | awk -F/ '{print $NF}')