forked from graalvm/mandrel-packaging
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version bumps for Q, Maven mem tweaks
- Loading branch information
Showing
11 changed files
with
284 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
132 changes: 132 additions & 0 deletions
132
jenkins/jobs/builds/mandrel_22_2_linux_build_matrix.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
package jenkins.jobs.builds | ||
|
||
final Class Constants = new GroovyClassLoader(getClass().getClassLoader()) | ||
.parseClass(readFileFromWorkspace("jenkins/jobs/builds/Constants.groovy")) | ||
matrixJob('mandrel-22-2-linux-build-matrix') { | ||
axes { | ||
labelExpression('LABEL', ['el8_aarch64', 'el8']) | ||
text('JDK_VERSION', | ||
'11', | ||
'17' | ||
) | ||
text('JDK_RELEASE', | ||
'ea', | ||
'ga' | ||
) | ||
} | ||
displayName('Linux Build Matrix :: 22.2') | ||
description('Linux build for 22.2 branch.') | ||
logRotator { | ||
numToKeep(10) | ||
} | ||
parameters { | ||
choiceParam('REPOSITORY', Constants.REPOSITORY, 'Mandrel repo') | ||
choiceParam( | ||
'HEADS_OR_TAGS', | ||
[ | ||
'heads', | ||
'tags', | ||
], | ||
'To be used with the repository, e.g. to use a certain head or a tag.' | ||
) | ||
stringParam( | ||
'BRANCH_OR_TAG', | ||
'mandrel/22.2', | ||
'e.g. your PR branch or a specific tag.' | ||
) | ||
choiceParam('PACKAGING_REPOSITORY', Constants.PACKAGING_REPOSITORY, 'Mandrel packaging scripts.') | ||
choiceParam( | ||
'PACKAGING_REPOSITORY_HEADS_OR_TAGS', | ||
[ | ||
'heads', | ||
'tags', | ||
], | ||
'To be used with the repository, e.g. to use a certain head or a tag.' | ||
) | ||
stringParam( | ||
'PACKAGING_REPOSITORY_BRANCH_OR_TAG', | ||
'22.2', | ||
'e.g. master if you use heads or some tag if you use tags.' | ||
) | ||
stringParam( | ||
'MANDREL_VERSION_SUBSTRING', | ||
'22.2-SNAPSHOT', | ||
'It must not contain spaces as it is used in tarball name too.' | ||
) | ||
} | ||
multiscm { | ||
git { | ||
remote { | ||
url('${PACKAGING_REPOSITORY}') | ||
} | ||
branches('refs/${PACKAGING_REPOSITORY_HEADS_OR_TAGS}/${PACKAGING_REPOSITORY_BRANCH_OR_TAG}') | ||
extensions { | ||
localBranch('${PACKAGING_REPOSITORY_BRANCH_OR_TAG}') | ||
} | ||
} | ||
git { | ||
remote { | ||
url('${REPOSITORY}') | ||
} | ||
branches('refs/${HEADS_OR_TAGS}/${BRANCH_OR_TAG}') | ||
extensions { | ||
localBranch('${BRANCH_OR_TAG}') | ||
relativeTargetDirectory('mandrel') | ||
} | ||
} | ||
git { | ||
remote { | ||
url('https://github.com/graalvm/mx.git') | ||
} | ||
branches('refs/tags/6.0.1') | ||
extensions { | ||
localBranch('6.0.1') | ||
relativeTargetDirectory('mx') | ||
} | ||
} | ||
} | ||
triggers { | ||
scm('H H/2 * * *') | ||
cron { | ||
spec('0 2 * * 2,5') | ||
} | ||
} | ||
steps { | ||
shell { | ||
command(Constants.LINUX_BUILD_CMD) | ||
unstableReturn(1) | ||
} | ||
} | ||
publishers { | ||
buildDescription(/^MANDREL_DESCRIBE=(.*)$/, '\\1') | ||
archiveArtifacts('mandrel*.tar.gz,MANDREL.md,mandrel*.sha1,mandrel*.sha256,jdk*/release') | ||
wsCleanup() | ||
postBuildCleanup { | ||
cleaner { | ||
psCleaner { | ||
killerType('org.jenkinsci.plugins.proccleaner.PsRecursiveKiller') | ||
} | ||
} | ||
} | ||
extendedEmail { | ||
recipientList('[email protected],[email protected]') | ||
triggers { | ||
failure { | ||
sendTo { | ||
recipientList() | ||
attachBuildLog(true) | ||
} | ||
} | ||
} | ||
} | ||
downstreamParameterized { | ||
trigger(['mandrel-linux-integration-tests']) { | ||
condition('SUCCESS') | ||
parameters { | ||
predefinedProp('MANDREL_BUILD_NUMBER', '${BUILD_NUMBER}') | ||
matrixSubset('(MANDREL_BUILD=="${JOB_BASE_NAME}" && JDK_VERSION=="${JDK_VERSION}" && JDK_RELEASE=="${JDK_RELEASE}" && LABEL=="${LABEL}")') | ||
} | ||
} | ||
} | ||
} | ||
} |
131 changes: 131 additions & 0 deletions
131
jenkins/jobs/builds/mandrel_22_2_windows_build_matrix.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
package jenkins.jobs.builds | ||
|
||
final Class Constants = new GroovyClassLoader(getClass().getClassLoader()) | ||
.parseClass(readFileFromWorkspace("jenkins/jobs/builds/Constants.groovy")) | ||
matrixJob('mandrel-22-2-windows-build-matrix') { | ||
axes { | ||
labelExpression('LABEL', ['w2k19']) | ||
text('JDK_VERSION', | ||
'11', | ||
'17' | ||
) | ||
text('JDK_RELEASE', | ||
'ea', | ||
'ga' | ||
) | ||
} | ||
displayName('Windows Build Matrix :: 22.2') | ||
description('Windows build matrix for 22.2 branch.') | ||
logRotator { | ||
numToKeep(10) | ||
} | ||
parameters { | ||
choiceParam('REPOSITORY', Constants.REPOSITORY, 'Mandrel repo') | ||
choiceParam( | ||
'HEADS_OR_TAGS', | ||
[ | ||
'heads', | ||
'tags', | ||
], | ||
'To be used with the repository, e.g. to use a certain head or a tag.' | ||
) | ||
stringParam( | ||
'BRANCH_OR_TAG', | ||
'mandrel/22.2', | ||
'e.g. your PR branch or a specific tag.' | ||
) | ||
choiceParam('PACKAGING_REPOSITORY', Constants.PACKAGING_REPOSITORY, 'Mandrel packaging scripts.') | ||
choiceParam( | ||
'PACKAGING_REPOSITORY_HEADS_OR_TAGS', | ||
[ | ||
'heads', | ||
'tags', | ||
], | ||
'To be used with the repository, e.g. to use a certain head or a tag.' | ||
) | ||
stringParam( | ||
'PACKAGING_REPOSITORY_BRANCH_OR_TAG', | ||
'22.2', | ||
'e.g. master if you use heads or some tag if you use tags.' | ||
) | ||
stringParam( | ||
'MANDREL_VERSION_SUBSTRING', | ||
'22.2-SNAPSHOT', | ||
'It must not contain spaces as it is used in tarball name too.' | ||
) | ||
} | ||
multiscm { | ||
git { | ||
remote { | ||
url('${PACKAGING_REPOSITORY}') | ||
} | ||
branches('refs/${PACKAGING_REPOSITORY_HEADS_OR_TAGS}/${PACKAGING_REPOSITORY_BRANCH_OR_TAG}') | ||
extensions { | ||
localBranch('${PACKAGING_REPOSITORY_BRANCH_OR_TAG}') | ||
} | ||
} | ||
git { | ||
remote { | ||
url('${REPOSITORY}') | ||
} | ||
branches('refs/${HEADS_OR_TAGS}/${BRANCH_OR_TAG}') | ||
extensions { | ||
localBranch('${BRANCH_OR_TAG}') | ||
relativeTargetDirectory('mandrel') | ||
} | ||
} | ||
git { | ||
remote { | ||
url('https://github.com/graalvm/mx.git') | ||
} | ||
branches('refs/tags/6.0.1') | ||
extensions { | ||
localBranch('6.0.1') | ||
relativeTargetDirectory('mx') | ||
} | ||
} | ||
} | ||
triggers { | ||
scm('H H/2 * * *') | ||
cron { | ||
spec('0 2 * * 5') | ||
} | ||
} | ||
steps { | ||
batchFile { | ||
command(Constants.WINDOWS_BUILD_CMD) | ||
unstableReturn(1) | ||
} | ||
} | ||
publishers { | ||
archiveArtifacts('mandrel*.zip,MANDREL.md,mandrel*.sha1,mandrel*.sha256,jdk*/release') | ||
wsCleanup() | ||
postBuildCleanup { | ||
cleaner { | ||
psCleaner { | ||
killerType('org.jenkinsci.plugins.proccleaner.PsRecursiveKiller') | ||
} | ||
} | ||
} | ||
extendedEmail { | ||
recipientList('[email protected],[email protected]') | ||
triggers { | ||
failure { | ||
sendTo { | ||
recipientList() | ||
attachBuildLog(true) | ||
} | ||
} | ||
} | ||
} | ||
downstreamParameterized { | ||
trigger(['mandrel-windows-integration-tests']) { | ||
condition('SUCCESS') | ||
parameters { | ||
predefinedProp('MANDREL_BUILD_NUMBER', '${BUILD_NUMBER}') | ||
matrixSubset('(MANDREL_BUILD=="${JOB_BASE_NAME}" && JDK_VERSION=="${JDK_VERSION}" && JDK_RELEASE=="${JDK_RELEASE}" && LABEL=="${LABEL}")') | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.