@Library('SHS.Platforms') _
properties([
	copyArtifactPermission('*'),
	buildDiscarder(logRotator(numToKeepStr: "10", artifactNumToKeepStr: "5")),
	parameters(
		[booleanParam(name: 'Debug', defaultValue: false, description: 'Build debug version')]
	)
])
node {
	stage("Download sources") {
		checkout scm
	}
	def pl = new org.SHS.Platforms(this)
	pl.get()
	pl.forEach ({ dist, toolchain ->
		echo "build=${env.BUILD_NUMBER}, debug=${Debug}"
	}, whiteList: ["debian"])
}
