module jenkinshelper.jenkins_server_template
¶
Short summary¶
module pyquickhelper.jenkinshelper.jenkins_server_template
Job templates.
Documentation¶
Job templates.
- pyquickhelper.jenkinshelper.jenkins_server_template._artifacts = '\n <hudson.tasks.ArtifactArchiver>\n <artifacts>__PATTERN__</artifacts>\n <allowEmptyArchive>true</allowEmptyArchive>\n <onlyIfSuccessful>true</onlyIfSuccessful>\n <fingerprint>false</fingerprint>\n <defaultExcludes>true</defaultExcludes>\n <caseSensitive>true</caseSensitive>\n </hudson.tasks.ArtifactArchiver>\n'[source]¶
artifacts
- pyquickhelper.jenkinshelper.jenkins_server_template._cleanup_repo = '\n<hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.37">\n <deleteDirs>true</deleteDirs>\n <cleanupParameter></cleanupParameter>\n <externalDelete></externalDelete>\n <disableDeferredWipeout>true</disableDeferredWipeout>\n</hudson.plugins.ws__cleanup.PreBuildCleanup>\n'[source]¶
cleanup
- pyquickhelper.jenkinshelper.jenkins_server_template._config_job = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>\n<project>\n <actions />\n <description>__DESCRIPTION__</description>\n <logRotator class="hudson.tasks.LogRotator">\n <daysToKeep>__KEEP__</daysToKeep>\n <numToKeep>__KEEP__</numToKeep>\n <artifactDaysToKeep>-1</artifactDaysToKeep>\n <artifactNumToKeep>-1</artifactNumToKeep>\n </logRotator>\n <keepDependencies>false</keepDependencies>\n <properties />\n __GITREPOXML__\n <canRoam>true</canRoam>\n <disabled>false</disabled>\n <blockBuildWhenDownstreamBuilding>true</blockBuildWhenDownstreamBuilding>\n <blockBuildWhenUpstreamBuilding>true</blockBuildWhenUpstreamBuilding>\n __TRIGGER__\n <concurrentBuild>false</concurrentBuild>\n __LOCATION__\n <builders>\n __TASKS__\n </builders>\n <publishers>\n __PUBLISHERS__\n </publishers>\n <buildWrappers>\n <hudson.plugins.build__timeout.BuildTimeoutWrapper plugin="build-timeout@1.19">\n <strategy class="hudson.plugins.build_timeout.impl.NoActivityTimeOutStrategy">\n <timeoutSecondsString>__TIMEOUT__</timeoutSecondsString>\n </strategy>\n <operationList>\n <hudson.plugins.build__timeout.operations.AbortOperation/>\n <hudson.plugins.build__timeout.operations.FailOperation/>\n </operationList>\n </hudson.plugins.build__timeout.BuildTimeoutWrapper>\n __BUILDWRAPPERS__\n </buildWrappers>\n</project>\n'[source]¶
main template: the full job
- pyquickhelper.jenkinshelper.jenkins_server_template._file_creation = '\n<com.etas.jenkins.plugins.CreateTextFile.CreateFileBuilder plugin="text-file-operations">\n <textFilePath>__FILENAME__</textFilePath>\n <textFileContent>\n__CONTENT__\n </textFileContent>\n <fileOption>overWrite</fileOption>\n <useWorkspace>true</useWorkspace>\n</com.etas.jenkins.plugins.CreateTextFile.CreateFileBuilder>\n'[source]¶
creation of a file
- pyquickhelper.jenkinshelper.jenkins_server_template._git_repo = '\n<scm class="hudson.plugins.git.GitSCM" plugin="git@2.3.4">\n <configVersion>2</configVersion>\n <userRemoteConfigs>\n <hudson.plugins.git.UserRemoteConfig>\n <url>__GITREPO__</url>\n __CRED__\n </hudson.plugins.git.UserRemoteConfig>\n </userRemoteConfigs>\n <branches>\n <hudson.plugins.git.BranchSpec>\n <name>*/__BRANCH__</name>\n </hudson.plugins.git.BranchSpec>\n </branches>\n <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>\n <submoduleCfg class="list" />\n __WIPE__\n</scm>\n'[source]¶
git repository
- pyquickhelper.jenkinshelper.jenkins_server_template._publishers = '\n<hudson.tasks.Mailer plugin="mailer">\n <recipients>__MAIL__</recipients>\n <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>\n <sendToIndividuals>true</sendToIndividuals>\n</hudson.tasks.Mailer>\n'[source]¶
mails
- pyquickhelper.jenkinshelper.jenkins_server_template._task_batch_win = '\n<hudson.tasks.BatchFile>\n <command>__SCRIPT__\n </command>\n</hudson.tasks.BatchFile>\n'[source]¶
for the script
- pyquickhelper.jenkinshelper.jenkins_server_template._trigger_startup = '\n<triggers>\n <org.jvnet.hudson.plugins.triggers.startup.HudsonStartupTrigger plugin="startup-trigger-plugin">\n <quietPeriod>0</quietPeriod>\n <runOnChoice>ON_BOTH</runOnChoice>\n </org.jvnet.hudson.plugins.triggers.startup.HudsonStartupTrigger>\n</triggers>\n'[source]¶
trigger startup
- pyquickhelper.jenkinshelper.jenkins_server_template._trigger_time = '\n<triggers>\n <hudson.triggers.TimerTrigger>\n <spec>__SCHEDULER__</spec>\n </hudson.triggers.TimerTrigger>\n</triggers>\n'[source]¶
scheduler
- pyquickhelper.jenkinshelper.jenkins_server_template._trigger_up = '\n<triggers>\n <jenkins.triggers.ReverseBuildTrigger>\n <spec></spec>\n <upstreamProjects>__UP__</upstreamProjects>\n <threshold>\n <name>__FAILURE__</name>\n <ordinal>__ORDINAL__</ordinal>\n <color>__COLOR__</color>\n <completeBuild>true</completeBuild>\n </threshold>\n </jenkins.triggers.ReverseBuildTrigger>\n</triggers>\n'[source]¶
when to trigger