-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci-public: replace multijob with freestyle for custom-suites
#1436
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
208 changes: 208 additions & 0 deletions
208
jenkins/xml/node-test-commit-custom-suites-freestyle.xml
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,208 @@ | ||
<?xml version='1.1' encoding='UTF-8'?> | ||
<project> | ||
<actions/> | ||
<description></description> | ||
<keepDependencies>false</keepDependencies> | ||
<properties> | ||
<com.coravy.hudson.plugins.github.GithubProjectProperty plugin="[email protected]"> | ||
<projectUrl>https://github.com/nodejs/node/</projectUrl> | ||
<displayName></displayName> | ||
</com.coravy.hudson.plugins.github.GithubProjectProperty> | ||
<com.sonyericsson.rebuild.RebuildSettings plugin="[email protected]"> | ||
<autoRebuild>false</autoRebuild> | ||
<rebuildDisabled>false</rebuildDisabled> | ||
</com.sonyericsson.rebuild.RebuildSettings> | ||
<hudson.model.ParametersDefinitionProperty> | ||
<parameterDefinitions> | ||
<hudson.model.StringParameterDefinition> | ||
<name>GITHUB_ORG</name> | ||
<description>The user/org of the GitHub repo</description> | ||
<defaultValue>nodejs</defaultValue> | ||
<trim>true</trim> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.StringParameterDefinition> | ||
<name>REPO_NAME</name> | ||
<description>The name of the repo</description> | ||
<defaultValue>node</defaultValue> | ||
<trim>true</trim> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.StringParameterDefinition> | ||
<name>GIT_REMOTE_REF</name> | ||
<description>The remote portion of the Git refspec to fetch and test</description> | ||
<defaultValue>refs/heads/master</defaultValue> | ||
<trim>true</trim> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.StringParameterDefinition> | ||
<name>REBASE_ONTO</name> | ||
<description>Optionally, rebase onto the given ref before testing. Leave blank to skip rebasing.</description> | ||
<defaultValue></defaultValue> | ||
<trim>true</trim> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.StringParameterDefinition> | ||
<name>POST_REBASE_SHA1_CHECK</name> | ||
<description>After rebasing, checks that the resulting commit sha1 matches the given one. If left blank, no check is performed.</description> | ||
<defaultValue></defaultValue> | ||
<trim>true</trim> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.BooleanParameterDefinition> | ||
<name>IGNORE_FLAKY_TESTS</name> | ||
<description>Mark the build as unstable instead of failure if only flaky tests fail</description> | ||
<defaultValue>false</defaultValue> | ||
</hudson.model.BooleanParameterDefinition> | ||
<hudson.model.StringParameterDefinition> | ||
<name>CONFIG_FLAGS</name> | ||
<description>Add arguments to ./configure</description> | ||
<defaultValue></defaultValue> | ||
<trim>false</trim> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.StringParameterDefinition> | ||
<name>CI_JS_SUITES</name> | ||
<description>Suites to run tools/test.py for, separated by spaces (e.g. internet)</description> | ||
<defaultValue></defaultValue> | ||
<trim>false</trim> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.StringParameterDefinition> | ||
<name>TEST_ARGS</name> | ||
<description>Additional arguments to pass to `python tools/test.py` (e.g. --worker)</description> | ||
<defaultValue></defaultValue> | ||
<trim>false</trim> | ||
</hudson.model.StringParameterDefinition> | ||
<org.jvnet.jenkins.plugins.nodelabelparameter.LabelParameterDefinition plugin="[email protected]"> | ||
<name>PLATFORM_LABEL</name> | ||
<description></description> | ||
<defaultValue>ubuntu1604-64</defaultValue> | ||
<allNodesMatchingLabel>false</allNodesMatchingLabel> | ||
<triggerIfResult>allCases</triggerIfResult> | ||
<nodeEligibility class="org.jvnet.jenkins.plugins.nodelabelparameter.node.AllNodeEligibility"/> | ||
</org.jvnet.jenkins.plugins.nodelabelparameter.LabelParameterDefinition> | ||
</parameterDefinitions> | ||
</hudson.model.ParametersDefinitionProperty> | ||
<hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="[email protected]"> | ||
<maxConcurrentPerNode>0</maxConcurrentPerNode> | ||
<maxConcurrentTotal>0</maxConcurrentTotal> | ||
<categories class="java.util.concurrent.CopyOnWriteArrayList"/> | ||
<throttleEnabled>false</throttleEnabled> | ||
<throttleOption>project</throttleOption> | ||
<limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> | ||
<paramsToUseForLimit></paramsToUseForLimit> | ||
</hudson.plugins.throttleconcurrents.ThrottleJobProperty> | ||
</properties> | ||
<scm class="hudson.plugins.git.GitSCM" plugin="[email protected]"> | ||
<configVersion>2</configVersion> | ||
<userRemoteConfigs> | ||
<hudson.plugins.git.UserRemoteConfig> | ||
<name>origin</name> | ||
<refspec>+refs/heads/*:refs/remotes/origin/* +$GIT_REMOTE_REF:refs/remotes/origin/_jenkins_local_branch</refspec> | ||
<url>[email protected]:$GITHUB_ORG/$REPO_NAME.git</url> | ||
<credentialsId>96d5f81c-e9ad-45f7-ba5d-bc8107c0ae2c</credentialsId> | ||
</hudson.plugins.git.UserRemoteConfig> | ||
</userRemoteConfigs> | ||
<branches> | ||
<hudson.plugins.git.BranchSpec> | ||
<name>refs/heads/_jenkins_local_branch</name> | ||
</hudson.plugins.git.BranchSpec> | ||
</branches> | ||
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> | ||
<browser class="hudson.plugins.git.browser.GithubWeb"> | ||
<url></url> | ||
</browser> | ||
<submoduleCfg class="list"/> | ||
<extensions> | ||
<hudson.plugins.git.extensions.impl.CleanCheckout/> | ||
<hudson.plugins.git.extensions.impl.CloneOption> | ||
<shallow>false</shallow> | ||
<noTags>true</noTags> | ||
<reference>/data/iojs/git/io.js.reference</reference> | ||
<timeout>20</timeout> | ||
<depth>0</depth> | ||
<honorRefspec>false</honorRefspec> | ||
</hudson.plugins.git.extensions.impl.CloneOption> | ||
<org.nodejs.jenkinsplugins.nodeversion.NodeVersionExtension plugin="[email protected]"> | ||
<exportNodejsVersion>true</exportNodejsVersion> | ||
</org.nodejs.jenkinsplugins.nodeversion.NodeVersionExtension> | ||
</extensions> | ||
</scm> | ||
<canRoam>true</canRoam> | ||
<disabled>false</disabled> | ||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> | ||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> | ||
<triggers/> | ||
<concurrentBuild>true</concurrentBuild> | ||
<customWorkspace>node-test-commit-custom-suites</customWorkspace> | ||
<builders> | ||
<hudson.tasks.Shell> | ||
<command>curl https://raw.githubusercontent.com/nodejs/build/master/jenkins/scripts/node-test-commit-pre.sh | bash -ex -s before</command> | ||
</hudson.tasks.Shell> | ||
<hudson.tasks.Shell> | ||
<command>#/bin/bash | ||
|
||
echo $NODE_NAME | ||
|
||
rm -rf build | ||
git clone https://github.com/nodejs/build.git | ||
. ./build/jenkins/scripts/select-compiler.sh | ||
|
||
SKIP_MESSAGE="ok" | ||
REVELANT_VERSION=1 | ||
if [ "$NODEJS_MAJOR_VERSION" -lt "6" ]; then | ||
REVELANT_VERSION= | ||
# 390 is only supported on v6 and later for now | ||
SKIP_MESSAGE="ok # skipped s390 not supported for versions less than 6, skipping" | ||
fi | ||
|
||
RELEVANT_SUITE=1 | ||
if [ "$CI_JS_SUITES" = "v8-updates" ] && [ "$NODEJS_MAJOR_VERSION" -lt "11" ]; then | ||
RELEVANT_SUITE= | ||
fi | ||
|
||
if [ "$TEST_ARGS" = "--worker" ] && [ "$NODEJS_MAJOR_VERSION" -lt "10" ]; then | ||
RELEVANT_SUITE= | ||
fi | ||
|
||
JOBS=$(getconf _NPROCESSORS_ONLN) | ||
|
||
if [ $REVELANT_VERSION ] && [ $RELEVANT_SUITE ]; then | ||
NODE_TEST_DIR=${HOME}/node-tmp | ||
NODE_COMMON_PORT=15000 | ||
PYTHON=python | ||
FLAKY_TESTS=$FLAKY_TESTS_MODE | ||
make build-ci -j $JOBS | ||
python tools/test.py -j $JOBS -p tap --logfile test.tap --mode=release --flaky-tests=dontcare $TEST_ARGS $CI_JS_SUITES | ||
else | ||
# fake out so we don't get failures | ||
mkdir out | ||
echo "1..1" >test.tap | ||
echo "ok 1 # skip $SKIP_MESSAGE" >> test.tap | ||
echo " ---" >> test.tap | ||
echo " duration_ms: 4.925" >> test.tap | ||
echo " ..." >> test.tap | ||
fi</command> | ||
</hudson.tasks.Shell> | ||
<hudson.tasks.Shell> | ||
<command>curl https://raw.githubusercontent.com/nodejs/build/master/jenkins/scripts/node-test-commit-diagnostics.sh | bash -ex -s after</command> | ||
</hudson.tasks.Shell> | ||
<hudson.tasks.Shell> | ||
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong. |
||
<command>mkdir out/junit || true | ||
tap2junit -i test.tap -o out/junit/test.xml || true</command> | ||
</hudson.tasks.Shell> | ||
</builders> | ||
<publishers> | ||
<hudson.tasks.junit.JUnitResultArchiver plugin="[email protected]"> | ||
<testResults>out/junit/*.xml</testResults> | ||
<keepLongStdio>true</keepLongStdio> | ||
<healthScaleFactor>1.0</healthScaleFactor> | ||
<allowEmptyResults>true</allowEmptyResults> | ||
</hudson.tasks.junit.JUnitResultArchiver> | ||
</publishers> | ||
<buildWrappers> | ||
<hudson.plugins.build__timeout.BuildTimeoutWrapper plugin="[email protected]"> | ||
<strategy class="hudson.plugins.build_timeout.impl.NoActivityTimeOutStrategy"> | ||
<timeoutSecondsString>900</timeoutSecondsString> | ||
</strategy> | ||
<operationList> | ||
<hudson.plugins.build__timeout.operations.FailOperation/> | ||
</operationList> | ||
</hudson.plugins.build__timeout.BuildTimeoutWrapper> | ||
<hudson.plugins.timestamper.TimestamperBuildWrapper plugin="[email protected]"/> | ||
</buildWrappers> | ||
</project> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.