|
Mark Waite honestly I don't understand what happened.
one of my 200+ project started to misbehave like in OP description.
I removed the */ in */$branch (which I need for mvn releases) then it stopped. I waited a couple of polling cycle. I putted the */ in $branch and it continued to work properly without continuously rebuilding.
here is my job config
<?xml version='1.0' encoding='UTF-8'?>
<maven2-moduleset plugin="[email protected]">
<actions/>
<description>Transactional-api</description>
<keepDependencies>false</keepDependencies>
<properties>
<jenkins.plugins.maveninfo.config.MavenInfoJobConfig plugin="[email protected]">
<mainModulePattern></mainModulePattern>
<dependenciesPattern></dependenciesPattern>
<assignName>false</assignName>
<nameTemplate></nameTemplate>
<assignDescription>false</assignDescription>
<descriptionTemplate></descriptionTemplate>
</jenkins.plugins.maveninfo.config.MavenInfoJobConfig>
<jenkins.model.BuildDiscarderProperty>
<strategy class="hudson.tasks.LogRotator">
<daysToKeep>-1</daysToKeep>
<numToKeep>10</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep>
</strategy>
</jenkins.model.BuildDiscarderProperty>
<jenkins.plugins.slack.SlackNotifier_-SlackJobProperty plugin="[email protected]">
<teamDomain>ticketmaster</teamDomain>
<token>xuTFXjqUjVqmr57Nf68hweIo</token>
<room>#microflex-dev-api-scm</room>
<startNotification>false</startNotification>
<notifySuccess>false</notifySuccess>
<notifyAborted>false</notifyAborted>
<notifyNotBuilt>true</notifyNotBuilt>
<notifyUnstable>false</notifyUnstable>
<notifyFailure>true</notifyFailure>
<notifyBackToNormal>false</notifyBackToNormal>
<notifyRepeatedFailure>true</notifyRepeatedFailure>
<includeTestSummary>false</includeTestSummary>
<showCommitList>true</showCommitList>
<includeCustomMessage>false</includeCustomMessage>
<customMessage></customMessage>
</jenkins.plugins.slack.SlackNotifier_-SlackJobProperty>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.ChoiceParameterDefinition>
<name>PUBLISH_TYPE</name>
<description></description>
<choices class="java.util.Arrays$ArrayList">
<a class="string-array">
<string>development</string>
<string>maintenance</string>
</a>
</choices>
</hudson.model.ChoiceParameterDefinition>
<hudson.model.BooleanParameterDefinition>
<name>SKIPIT</name>
<description>Skip integration tests.</description>
<defaultValue>false</defaultValue>
</hudson.model.BooleanParameterDefinition>
<hudson.model.BooleanParameterDefinition>
<name>SKIPUT</name>
<description>Skip unit tests.</description>
<defaultValue>false</defaultValue>
</hudson.model.BooleanParameterDefinition>
<hudson.model.BooleanParameterDefinition>
<name>SKIPTESTS</name>
<description>Skip all tests.</description>
<defaultValue>false</defaultValue>
</hudson.model.BooleanParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>BRANCH_NAME</name>
<description></description>
<defaultValue>master</defaultValue>
</hudson.model.StringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<scm class="hudson.plugins.git.GitSCM" plugin="[email protected]">
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<url>git@git:xyz.git</url>
<credentialsId>62f224b6-a771-4e10-bba2-6ff557e441a0</credentialsId>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>${BRANCH_NAME}</name>
</hudson.plugins.git.BranchSpec>
</branches>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<browser class="hudson.plugins.git.browser.GitLab">
<url>https: <version>7.0</version>
</browser>
<submoduleCfg class="list"/>
<extensions>
<hudson.plugins.git.extensions.impl.LocalBranch>
<localBranch>*/${BRANCH_NAME}</localBranch>
</hudson.plugins.git.extensions.impl.LocalBranch>
</extensions>
</scm>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<jdk>JAVA_1-8</jdk>
<triggers>
<hudson.triggers.SCMTrigger>
<spec>H/5 * * * *</spec>
<ignorePostCommitHooks>true</ignorePostCommitHooks>
</hudson.triggers.SCMTrigger>
</triggers>
<concurrentBuild>false</concurrentBuild>
<rootModule>
<groupId>mfx.services</groupId>
<artifactId>transactional-api-parent</artifactId>
</rootModule>
<goals>-Dtm.config.path= ${MAVEN_GIT_ALTCREDENTIALS} ${MAVEN_DEFAULT_PROFILES} ${MAVEN_BUILD_TARGETS} ${MAVEN_TEST_OPTS}</goals>
<mavenOpts>-ea -XX:-UseSplitVerifier -XX:MaxPermSize=300m -Dfile.encoding=UTF-8 -Duser.timezone=GMT</mavenOpts>
<aggregatorStyleBuild>true</aggregatorStyleBuild>
<incrementalBuild>false</incrementalBuild>
<ignoreUpstremChanges>false</ignoreUpstremChanges>
<archivingDisabled>false</archivingDisabled>
<siteArchivingDisabled>false</siteArchivingDisabled>
<fingerprintingDisabled>false</fingerprintingDisabled>
<resolveDependencies>false</resolveDependencies>
<processPlugins>false</processPlugins>
<mavenValidationLevel>-1</mavenValidationLevel>
<runHeadless>false</runHeadless>
<settingConfigId></settingConfigId>
<globalSettingConfigId></globalSettingConfigId>
<disableTriggerDownstreamProjects>false</disableTriggerDownstreamProjects>
<blockTriggerWhenBuilding>true</blockTriggerWhenBuilding>
<settings class="jenkins.mvn.DefaultSettingsProvider"/>
<globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
<reporters/>
<publishers>
<hudson.plugins.warnings.WarningsPublisher plugin="[email protected]">
<healthy></healthy>
<unHealthy></unHealthy>
<thresholdLimit>low</thresholdLimit>
<pluginName>[WARNINGS] </pluginName>
<defaultEncoding></defaultEncoding>
<canRunOnFailed>false</canRunOnFailed>
<useStableBuildAsReference>false</useStableBuildAsReference>
<useDeltaValues>false</useDeltaValues>
<thresholds plugin="[email protected]">
<unstableTotalAll></unstableTotalAll>
<unstableTotalHigh></unstableTotalHigh>
<unstableTotalNormal></unstableTotalNormal>
<unstableTotalLow></unstableTotalLow>
<failedTotalAll></failedTotalAll>
<failedTotalHigh></failedTotalHigh>
<failedTotalNormal></failedTotalNormal>
<failedTotalLow></failedTotalLow>
</thresholds>
<shouldDetectModules>false</shouldDetectModules>
<dontComputeNew>true</dontComputeNew>
<doNotResolveRelativePaths>true</doNotResolveRelativePaths>
<parserConfigurations/>
<consoleParsers>
<hudson.plugins.warnings.ConsoleParser>
<parserName>Java Compiler (javac)</parserName>
</hudson.plugins.warnings.ConsoleParser>
</consoleParsers>
</hudson.plugins.warnings.WarningsPublisher>
<hudson.maven.RedeployPublisher>
<id>mfx.repo.dist.snapshot</id>
<uniqueVersion>true</uniqueVersion>
<evenIfUnstable>true</evenIfUnstable>
<releaseEnvVar>IS_M2RELEASEBUILD</releaseEnvVar>
</hudson.maven.RedeployPublisher>
<hudson.plugins.postbuildtask.PostbuildTask plugin="[email protected]">
<tasks>
<hudson.plugins.postbuildtask.TaskProperties>
<logTexts>
<hudson.plugins.postbuildtask.LogProperties>
<logText>tar</logText>
<operator>AND</operator>
</hudson.plugins.postbuildtask.LogProperties>
</logTexts>
<EscalateStatus>false</EscalateStatus>
<RunIfJobSuccessful>false</RunIfJobSuccessful>
<script>/usr/bin/python27 /bld/shared/scm/scripts/package-sha-mapping.py</script>
</hudson.plugins.postbuildtask.TaskProperties>
</tasks>
</hudson.plugins.postbuildtask.PostbuildTask>
<hudson.tasks.Mailer plugin="[email protected]">
<recipients>[email protected]</recipients>
<dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
<sendToIndividuals>true</sendToIndividuals>
</hudson.tasks.Mailer>
<jenkins.plugins.slack.SlackNotifier plugin="[email protected]">
<teamDomain>ticketmaster</teamDomain>
<authToken>NBWPd5TSYGtD0pNOKdDkNToF</authToken>
<buildServerUrl>/</buildServerUrl>
<room>#mfxe</room>
</jenkins.plugins.slack.SlackNotifier>
</publishers>
<buildWrappers>
<hudson.plugins.ws__cleanup.PreBuildCleanup plugin="[email protected]">
<deleteDirs>false</deleteDirs>
<cleanupParameter></cleanupParameter>
<externalDelete></externalDelete>
</hudson.plugins.ws__cleanup.PreBuildCleanup>
<org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper plugin="[email protected]">
<scmUserEnvVar></scmUserEnvVar>
<scmPasswordEnvVar></scmPasswordEnvVar>
<releaseEnvVar>IS_M2RELEASEBUILD</releaseEnvVar>
<releaseGoals>-Dtm.config.path= ${MAVEN_GIT_ALTCREDENTIALS} ${MAVEN_DEFAULT_PROFILES} ${MAVEN_RELEASE_TARGETS} ${MAVEN_TEST_OPTS}</releaseGoals>
<dryRunGoals>${MAVEN_DEFAULT_PROFILES} ${MAVEN_RELEASE_DRYRUN_TARGETS} ${MAVEN_TEST_OPTS}</dryRunGoals>
<selectCustomScmCommentPrefix>false</selectCustomScmCommentPrefix>
<selectAppendHudsonUsername>false</selectAppendHudsonUsername>
<selectScmCredentials>false</selectScmCredentials>
<numberOfReleaseBuildsToKeep>0</numberOfReleaseBuildsToKeep>
</org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper>
</buildWrappers>
<prebuilders>
<hudson.tasks.Shell>
<command>${SCM_SCRIPT_DIR}/m2-pre-build.sh ${EXECUTOR_NUMBER}</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>ssh -A xyz@mgr1 'copy-maps-from-dataset.sh de'</command>
</hudson.tasks.Shell>
</prebuilders>
<postbuilders/>
<runPostStepsIfResult>
<name>FAILURE</name>
<ordinal>2</ordinal>
<color>RED</color>
<completeBuild>true</completeBuild>
</runPostStepsIfResult>
</maven2-moduleset>
|