Commit fd12b356 authored by Aleksey Rostovskiy's avatar Aleksey Rostovskiy
Browse files

Move docker image definition for snap package creation to build options

IDEA-CR-32166
parent b6c0ca70
Showing with 7 additions and 1 deletion
+7 -1
......@@ -81,6 +81,12 @@ class BuildOptions {
*/
boolean buildUnixSnaps = SystemProperties.getBooleanProperty("intellij.build.unix.snaps", false)
/**
* Image for snap package creation. Default is "snapcore/snapcraft:stable", but can be modified mostly due to problems
* with new versions of snapcraft.
*/
String snapDockerImage = System.getProperty("intellij.build.snap.docker.image", "snapcore/snapcraft:stable")
/**
* Path to a zip file containing 'production' and 'test' directories with compiled classes of the project modules inside.
*/
......
......@@ -244,7 +244,7 @@ class LinuxDistributionBuilder extends OsSpecificDistributionBuilder {
arg(value: "--volume=${unixDistPath}:/build/dist.unix:ro")
arg(value: "--volume=${jreDirectoryPath}:/build/jre:ro")
arg(value: "--workdir=/build")
arg(value: "jetbrainsinfra/snapcraft:2.35")
arg(value: buildContext.options.snapDockerImage)
arg(value: "snapcraft")
arg(value: "snap")
arg(value: "-o")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment