Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,14 @@
</archive>
</configuration>
</plugin>
<!-- Declared so that the `exec:` prefix resolves from the POM. The Azure Artifacts
mirror used by the release pipelines does not serve org/codehaus/mojo/maven-metadata.xml,
which Maven would otherwise need to look up the prefix. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.6.4</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand Down
7 changes: 6 additions & 1 deletion utils/docker/publish_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ if [[ ! -f ${POM_FILE} ]]; then
echo "ERROR: pom.xml not found at ${POM_FILE}"
exit 1;
fi
PW_VERSION=$(mvn exec:exec -Dexec.executable='echo' -Dexec.args='${project.version}' -f ${POM_FILE} --non-recursive -q 2>/dev/null)
if ! PW_VERSION=$(mvn exec:exec -Dexec.executable='echo' -Dexec.args='${project.version}' -f ${POM_FILE} --non-recursive -q); then
# With -q Maven prints its errors to stdout, which was captured above.
echo "ERROR: failed to read the project version from ${POM_FILE}:"
echo "${PW_VERSION}"
exit 1
fi
if [[ "${RELEASE_CHANNEL}" == "stable" && ! "${PW_VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "ERROR: cannot publish stable docker with Playwright version '${PW_VERSION}'"
exit 1
Expand Down
Loading