Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60914

Freestyle job with urltrigger doesn't inject parameter with default value

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • urltrigger-plugin
    • None
    • Jenkins 2.204.1, urltrigger 0.47, Ubuntu 14.04

      We just upgraded from Jenkins 2.176.3 -> 2.204.1 and also updated to latest plugin versions.

      We have a freestyle job that quit working after the upgrade that uses the urltrigger plugin.  The freestyle job has a simple string parameter and its value should be injected into the job as an environment variable.

      Running urltrigger 0.47, the string parameter is not getting injected when the urltrigger fires the job.  This was working using urltrigger 0.45.    We downgraded to 0.45 and this job started working again.

      The URLTrigger log from 0.47 when failing:

       

       Polling started on Jan 29, 2020 10:43:04 AM
       Polling for the job testfoo
       Looking nodes where the poll can be run. 
       Looking for a candidate node to run the poll. 
       Trying to find an eligible node with the assigned project label coord.
       Polling remotely on jenkinsserver 
       *Resolving environment variables using global values*
       Using Basic Authentication with the user 'build' 
       Invoking the url: [https://jenkinsserver.foo.com/job/test/job/test/job/testing/lastSuccessfulBuild/buildNumber/]
       [https://gen4cc-os.virtd.deere.com/job/gen4cc-os/job/gen4os/job/release-20-1/lastSuccessfulBuild/buildNumber/]
       Inspecting the content The content of the URL has changed.
       The content has changed.
       Polling complete.
       Took 0.61 sec.
       Changes found. 
       Scheduling a build.
       

       

      When running with the working 0.45 plugin, the urltrigger log shows slightly different behavior.  It logs "Resolving environment variables using last build values" instead of when it is failing as above "Resolving environment variables using global values"
       
      Looks like recent changes with the code emitting the message commented out:

      https://github.com/jenkinsci/urltrigger-plugin/blob/63b65488e3cf89d1c40840fe881d5b2b59233ed7/src/main/java/org/jenkinsci/plugins/urltrigger/URLTrigger.java#L229
       
      As a workaround, we downgraded to 0.45 for now.

          [JENKINS-60914] Freestyle job with urltrigger doesn't inject parameter with default value

          John VanRyn added a comment -

          This issue is blocking my organization from moving forward.   We need to update to the latest version to gain the support of Jenkins pipeline to be able to trigger auto builds of docker containers.  but if we upgrade we get this bug on our older implementation. 

           

          properties([
                  buildDiscarder(
                          logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '3', daysToKeepStr: '', numToKeepStr: '50')
                  ),
                  [$class: 'ScannerJobProperty', doNotScan: false],
                  disableConcurrentBuilds(),
                  disableResume(),
                  [$class: 'RebuildSettings', autoRebuild: false, rebuildDisabled: false],
                  [$class: 'JobRestrictionProperty'],
                  [$class: 'ThrottleJobProperty',
                   categories: [],
                   limitOneJobWithMatchingParams: false,
                   maxConcurrentPerNode: 0,
                   maxConcurrentTotal: 0,
                   paramsToUseForLimit: '',
                   throttleEnabled: false,
                   throttleOption: 'project'],
                  pipelineTriggers([
                          bitbucketPush(),
                          URLTrigger(
                                  cronTabSpec: '*/2 * * * *',
                                  entries: [
                                          URLTriggerEntry(
                                                  url: "https://artifactory.intralinks.com:443/artifactory/docker-virtual${fromContainer}/${fromContainerVersion}/manifest.json",
                                                  statusCode: 200,
                                                  checkLastModificationDate: true
                                          )
                                  ]
                          )
                  ])
          ])

          works with 4.7, but with 4.5

          17:24:44  java.lang.NoSuchMethodError: No such DSL method 'URLTriggerEntry' found among steps [ArtifactoryGradleBuild, MavenDescriptorStep, addBadge, addErrorBadge, addHtmlBadge, addInfoBadge, addInteractivePromotion, addShortText, addWarningBadge, archive, artifactoryDistributeBuild, artifactoryDownload, artifactoryEditProps, artifactoryGoPublish, artifactoryGoRun, artifactoryMavenBuild, artifactoryNpmInstall, artifactoryNpmPublish, artifactoryPromoteBuild, artifactoryUpload, bat, build, catchError, checkout, collectEnv, collectIssues, conanAddRemote, conanAddUser, createSummary, deleteDir, deployArtifacts, dir, dockerFingerprintFrom, dockerFingerprintRun, dockerPullStep, dockerPushStep, echo, emailext, emailextrecipients, envVarsForTool, error, fileExists, findBuildScans, findFiles, getArtifactoryServer, getContext, git, initConanClient, input, isUnix, junit, labelledShell, library, libraryResource, load, lock, mail, milestone, newArtifactoryServer, newBuildInfo, newGoBuild, newGradleBuild, newMavenBuild, newNpmBuild, node, nodesByLabel, office365ConnectorSend, parallel, powershell, properties, publishBuildInfo, publishHTML, pwd, pwsh, readCSV, readFile, readJSON, readManifest, readMavenPom, readProperties, readTrusted, readYaml, removeBadges, removeHtmlBadges, removeSummaries, resolveScm, retry, rtAddInteractivePromotion, rtBuildInfo, rtCollectIssues, rtDeleteProps, rtDockerPush, rtDownload, rtGoDeployer, rtGoPublish, rtGoResolver, rtGoRun, rtGradleDeployer, rtGradleResolver, rtGradleRun, rtMavenDeployer, rtMavenResolver, rtMavenRun, rtNpmDeployer, rtNpmInstall, rtNpmPublish, rtNpmResolver, rtPromote, rtPublishBuildInfo, rtServer, rtSetProps, rtUpload, rtp, runConanCommand, script, setGitHubPullRequestStatus, sh, sha1, sleep, sshagent, stage, stash, step, svn, synopsys_detect, tee, throttle, timeout, timestamps, tm, tool, touch, triggerRemoteJob, unarchive, unstable, unstash, unzip, validateDeclarativePipeline, waitForQualityGate, waitUntil, warnError, withContext, withCredentials, withDockerContainer, withDockerRegistry, withDockerServer, withEnv, withGradle, withMaven, wrap, writeCSV, writeFile, writeJSON, writeMavenPom, writeYaml, ws, xrayScan, xrayScanBuild, xunit, zip] or symbols [AUnit, BearerTokenAuth, BoostTest, CTest, CUnit, Check, CppTest, CppUnit, CredentialsAuth, Custom, FPCUnit, GoogleTest, JUnit, MSTest, MbUnit, NUnit2, NUnit3, NoneAuth, NullAuth, Number, Open, PHPUnit, QtTest, TokenAuth, UnitTest, Valgrind, absolute, all, allOf, allowRunOnStatus, allure, always, ant, antFromApache, antOutcome, antTarget, any, anyOf, apiToken, architecture, archiveArtifacts, artifactManager, artifactsPublisher, asIsGITScm, authenticatedzip, authorizationMatrix, avgCheckoutDuration, avgDuration, avgSuccessDuration, batchFile, bitbucket, bitbucketPush, bitbucketpr, booleanParam, branch, branchCreated, branches, brokenBuildSuspects, brokenTestsSuspects, buildButton, buildDescription, buildDiscarder, buildFailureAnalyzer, buildName, buildParameter, buildSelector, buildTimestamp, buildTimestampExtraProperties, buildingTag, bzt, caseInsensitive, caseSensitive, certificate, changeRequest, changelog, changeset, checkoutToSubdirectory, choice, choiceParam, cleanWs, clock, close, cloud, command, commentPattern, commit, commitChanged, commitMessagePattern, concordionPublisher, configFile, configFileProvider, copyArtifactPermission, copyArtifacts, created, credentials, cron, crumb, culprits, defaultFolderConfiguration, defaultView, deleted, demand, dependenciesFingerprintPublisher, description, developers, disableConcurrentBuilds, disableResume, docker, dockerCert, dockerfile, downstream, dumb, durabilityHint, embUnit, envInject, envVars, environment, equals, expression, extendedChoice, failed, failureRate, failureTimeRate, file, fileParam, filePath, findbugsPublisher, fingerprint, frameOptions, freeStyle, freeStyleJob, fromScm, fromSource, git, gitBranchDiscovery, gitHub, gitHubBranchDiscovery, gitHubBranchHeadAuthority, gitHubEvents, gitHubForkDiscovery, gitHubPRStatus, gitHubPlugin, gitHubSshCheckout, gitHubTagDiscovery, gitHubTrustContributors, gitHubTrustEveryone, gitHubTrustNobody, gitHubTrustPermissions, gitTagDiscovery, github, githubBranches, githubPRAddLabels, githubPRClosePublisher, githubPRComment, githubPRMessage, githubPRRemoveLabels, githubPRStatusPublisher, githubPlugin, githubPullRequests, githubPush, globalConfigFiles, gradle, gtester, hashChanged, headRegexFilter, headWildcardFilter, hyperlink, hyperlinkToModels, inheriting, inheritingGlobal, installSource, invokerPublisher, isRestartedRun, jacocoPublisher, jdk, jdkInstaller, jgit, jgitapache, jgivenPublisher, jnlp, jobDsl, jobName, junitPublisher, label, labels, labelsAdded, labelsExist, labelsNotExist, labelsPatternExists, labelsRemoved, lastCompleted, lastDuration, lastFailure, lastGrantedAuthorities, lastStable, lastSuccess, lastSuccessful, lastWithArtifacts, latestSavedBuild, legacy, legacySCM, list, local, location, logRotator, loggedInUsersCanDoAnything, masterBuild, maven, maven3Mojos, mavenErrors, mavenLinkerPublisher, mavenMojos, mavenWarnings, maxCheckoutDuration, maxDuration, maxSuccessDuration, message, minCheckoutDuration, minDuration, minSuccessDuration, modernSCM, msbuild, msbuildError, msbuildWarning, myView, newContainerPerStage, noGITScm, node, nodeProperties, nonInheriting, nonMergeable, none, not, notifyBitbucket, notifyStash, office365ConnectorSend, office365ConnectorWebhooks, openTasksPublisher, overrideIndexTriggers, paneStatus, parallelsAlwaysFailFast, parameters, passed, password, pattern, perfReport, performanceReport, performanceTest, permalink, permanent, pipeline-model, pipeline-model-docker, pipelineGraphPublisher, pipelineMaven, pipelineTriggers, plainText, plugin, pollSCM, preserveStashes, previous, projectNamingStrategy, proxy, pullRequest, pullRequests, queueItemAuthenticator, quietPeriod, rateLimitBuilds, recipients, relative, requestor, resourceRoot, restriction, restrictions, run, runParam, sSHLauncher, schedule, scmRetryCount, script, scriptApproval, scriptApprovalLink, search, security, shell, skipDefaultCheckout, skipStagesAfterUnstable, skipped, slave, snapshotDependencies, sourceRegexFilter, sourceWildcardFilter, specific, spotbugsPublisher, ssh, sshPublisher, sshPublisherDesc, sshTransfer, sshUserPrivateKey, stackTrace, standard, status, statusOnPublisherError, string, stringParam, successRate, successTimeRate, swapSpace, tag, tags, testCase, text, textParam, timezone, tmpSpace, toolLocation, triggeredBy, unsecured, upstream, upstreamDevelopers, url, userSeed, usernameColonPassword, usernamePassword, veracode, veracodeDynamicRescan, viewsTabBar, weather, withAnt, withSonarQubeEnv, workspace, xUnitDotNet, zfs, zip] or globals [Artifactory, currentBuild, docker, env, manager, params, pipeline, scm]
          17:24:44  	at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:202)
          17:24:44  	at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
          17:24:44  	at sun.reflect.GeneratedMethodAccessor746.invoke(Unknown Source)
          17:24:44  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          17:24:44  	at java.lang.reflect.Method.invoke(Method.java:498)
          17:24:44  	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
          17:24:44  	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
          17:24:44  	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
          17:24:44  	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
          17:24:44  	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
          17:24:44  	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
          17:24:44  	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
          17:24:44  	at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:158)
          17:24:44  	at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)
          17:24:44  	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:157)
          17:24:44  	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:142)
          17:24:44  	at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:156)
          17:24:44  	at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:160)
          17:24:44  	at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
          17:24:44  	at WorkflowScript.run(WorkflowScript:34)
          17:24:44  	at ___cps.transform___(Native Method)
          17:24:44  	at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:86)
          17:24:44  	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113)
          17:24:44  	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83)
          17:24:44  	at sun.reflect.GeneratedMethodAccessor724.invoke(Unknown Source)
          17:24:44  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          17:24:44  	at java.lang.reflect.Method.invoke(Method.java:498)
          17:24:44  	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
          17:24:44  	at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55)
          17:24:44  	at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45)
          17:24:44  	at sun.reflect.GeneratedMethodAccessor725.invoke(Unknown Source)
          17:24:44  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          17:24:44  	at java.lang.reflect.Method.invoke(Method.java:498)
          17:24:44  	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
          17:24:44  	at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
          17:24:44  	at com.cloudbees.groovy.cps.Next.step(Next.java:83)
          17:24:44  	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
          17:24:44  	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
          17:24:44  	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
          17:24:44  	at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
          17:24:44  	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
          17:24:44  	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
          17:24:44  	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
          17:24:44  	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)
          17:24:44  	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:400)
          17:24:44  	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96)
          17:24:44  	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:312)
          17:24:44  	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:276)
          17:24:44  	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
          17:24:44  	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          17:24:44  	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
          17:24:44  	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
          17:24:44  	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
          17:24:44  	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          17:24:44  	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          17:24:44  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          17:24:44  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          17:24:44  	at java.lang.Thread.run(Thread.java:748)
          

          John VanRyn added a comment - This issue is blocking my organization from moving forward.   We need to update to the latest version to gain the support of Jenkins pipeline to be able to trigger auto builds of docker containers.  but if we upgrade we get this bug on our older implementation.    properties([ buildDiscarder( logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: ' 3 ', daysToKeepStr: ' ', numToKeepStr: ' 50') ), [$class: 'ScannerJobProperty' , doNotScan: false ], disableConcurrentBuilds(), disableResume(), [$class: 'RebuildSettings' , autoRebuild: false , rebuildDisabled: false ], [$class: 'JobRestrictionProperty' ], [$class: 'ThrottleJobProperty' , categories: [], limitOneJobWithMatchingParams: false , maxConcurrentPerNode: 0, maxConcurrentTotal: 0, paramsToUseForLimit: '', throttleEnabled: false , throttleOption: 'project' ], pipelineTriggers([ bitbucketPush(), URLTrigger( cronTabSpec: '*/2 * * * *' , entries: [ URLTriggerEntry( url: "https: //artifactory.intralinks.com:443/artifactory/docker-virtual${fromContainer}/${fromContainerVersion}/manifest.json" , statusCode: 200, checkLastModificationDate: true ) ] ) ]) ]) works with 4.7, but with 4.5 17:24:44 java.lang.NoSuchMethodError: No such DSL method 'URLTriggerEntry' found among steps [ArtifactoryGradleBuild, MavenDescriptorStep, addBadge, addErrorBadge, addHtmlBadge, addInfoBadge, addInteractivePromotion, addShortText, addWarningBadge, archive, artifactoryDistributeBuild, artifactoryDownload, artifactoryEditProps, artifactoryGoPublish, artifactoryGoRun, artifactoryMavenBuild, artifactoryNpmInstall, artifactoryNpmPublish, artifactoryPromoteBuild, artifactoryUpload, bat, build, catchError, checkout, collectEnv, collectIssues, conanAddRemote, conanAddUser, createSummary, deleteDir, deployArtifacts, dir, dockerFingerprintFrom, dockerFingerprintRun, dockerPullStep, dockerPushStep, echo, emailext, emailextrecipients, envVarsForTool, error, fileExists, findBuildScans, findFiles, getArtifactoryServer, getContext, git, initConanClient, input, isUnix, junit, labelledShell, library, libraryResource, load, lock, mail, milestone, newArtifactoryServer, newBuildInfo, newGoBuild, newGradleBuild, newMavenBuild, newNpmBuild, node, nodesByLabel, office365ConnectorSend, parallel, powershell, properties, publishBuildInfo, publishHTML, pwd, pwsh, readCSV, readFile, readJSON, readManifest, readMavenPom, readProperties, readTrusted, readYaml, removeBadges, removeHtmlBadges, removeSummaries, resolveScm, retry, rtAddInteractivePromotion, rtBuildInfo, rtCollectIssues, rtDeleteProps, rtDockerPush, rtDownload, rtGoDeployer, rtGoPublish, rtGoResolver, rtGoRun, rtGradleDeployer, rtGradleResolver, rtGradleRun, rtMavenDeployer, rtMavenResolver, rtMavenRun, rtNpmDeployer, rtNpmInstall, rtNpmPublish, rtNpmResolver, rtPromote, rtPublishBuildInfo, rtServer, rtSetProps, rtUpload, rtp, runConanCommand, script, setGitHubPullRequestStatus, sh, sha1, sleep, sshagent, stage, stash, step, svn, synopsys_detect, tee, throttle, timeout, timestamps, tm, tool, touch, triggerRemoteJob, unarchive, unstable, unstash, unzip, validateDeclarativePipeline, waitForQualityGate, waitUntil, warnError, withContext, withCredentials, withDockerContainer, withDockerRegistry, withDockerServer, withEnv, withGradle, withMaven, wrap, writeCSV, writeFile, writeJSON, writeMavenPom, writeYaml, ws, xrayScan, xrayScanBuild, xunit, zip] or symbols [AUnit, BearerTokenAuth, BoostTest, CTest, CUnit, Check, CppTest, CppUnit, CredentialsAuth, Custom, FPCUnit, GoogleTest, JUnit, MSTest, MbUnit, NUnit2, NUnit3, NoneAuth, NullAuth, Number , Open, PHPUnit, QtTest, TokenAuth, UnitTest, Valgrind, absolute, all, allOf, allowRunOnStatus, allure, always, ant, antFromApache, antOutcome, antTarget, any, anyOf, apiToken, architecture, archiveArtifacts, artifactManager, artifactsPublisher, asIsGITScm, authenticatedzip, authorizationMatrix, avgCheckoutDuration, avgDuration, avgSuccessDuration, batchFile, bitbucket, bitbucketPush, bitbucketpr, booleanParam, branch, branchCreated, branches, brokenBuildSuspects, brokenTestsSuspects, buildButton, buildDescription, buildDiscarder, buildFailureAnalyzer, buildName, buildParameter, buildSelector, buildTimestamp, buildTimestampExtraProperties, buildingTag, bzt, caseInsensitive, caseSensitive, certificate, changeRequest, changelog, changeset, checkoutToSubdirectory, choice, choiceParam, cleanWs, clock, close, cloud, command, commentPattern, commit, commitChanged, commitMessagePattern, concordionPublisher, configFile, configFileProvider, copyArtifactPermission, copyArtifacts, created, credentials, cron, crumb, culprits, defaultFolderConfiguration, defaultView, deleted, demand, dependenciesFingerprintPublisher, description, developers, disableConcurrentBuilds, disableResume, docker, dockerCert, dockerfile, downstream, dumb, durabilityHint, embUnit, envInject, envVars, environment, equals, expression, extendedChoice, failed, failureRate, failureTimeRate, file, fileParam, filePath, findbugsPublisher, fingerprint, frameOptions, freeStyle, freeStyleJob, fromScm, fromSource, git, gitBranchDiscovery, gitHub, gitHubBranchDiscovery, gitHubBranchHeadAuthority, gitHubEvents, gitHubForkDiscovery, gitHubPRStatus, gitHubPlugin, gitHubSshCheckout, gitHubTagDiscovery, gitHubTrustContributors, gitHubTrustEveryone, gitHubTrustNobody, gitHubTrustPermissions, gitTagDiscovery, github, githubBranches, githubPRAddLabels, githubPRClosePublisher, githubPRComment, githubPRMessage, githubPRRemoveLabels, githubPRStatusPublisher, githubPlugin, githubPullRequests, githubPush, globalConfigFiles, gradle, gtester, hashChanged, headRegexFilter, headWildcardFilter, hyperlink, hyperlinkToModels, inheriting, inheritingGlobal, installSource, invokerPublisher, isRestartedRun, jacocoPublisher, jdk, jdkInstaller, jgit, jgitapache, jgivenPublisher, jnlp, jobDsl, jobName, junitPublisher, label, labels, labelsAdded, labelsExist, labelsNotExist, labelsPatternExists, labelsRemoved, lastCompleted, lastDuration, lastFailure, lastGrantedAuthorities, lastStable, lastSuccess, lastSuccessful, lastWithArtifacts, latestSavedBuild, legacy, legacySCM, list, local, location, logRotator, loggedInUsersCanDoAnything, masterBuild, maven, maven3Mojos, mavenErrors, mavenLinkerPublisher, mavenMojos, mavenWarnings, maxCheckoutDuration, maxDuration, maxSuccessDuration, message, minCheckoutDuration, minDuration, minSuccessDuration, modernSCM, msbuild, msbuildError, msbuildWarning, myView, newContainerPerStage, noGITScm, node, nodeProperties, nonInheriting, nonMergeable, none, not, notifyBitbucket, notifyStash, office365ConnectorSend, office365ConnectorWebhooks, openTasksPublisher, overrideIndexTriggers, paneStatus, parallelsAlwaysFailFast, parameters, passed, password, pattern, perfReport, performanceReport, performanceTest, permalink, permanent, pipeline-model, pipeline-model-docker, pipelineGraphPublisher, pipelineMaven, pipelineTriggers, plainText, plugin, pollSCM, preserveStashes, previous, projectNamingStrategy, proxy, pullRequest, pullRequests, queueItemAuthenticator, quietPeriod, rateLimitBuilds, recipients, relative, requestor, resourceRoot, restriction, restrictions, run, runParam, sSHLauncher, schedule, scmRetryCount, script, scriptApproval, scriptApprovalLink, search, security, shell, skipDefaultCheckout, skipStagesAfterUnstable, skipped, slave, snapshotDependencies, sourceRegexFilter, sourceWildcardFilter, specific, spotbugsPublisher, ssh, sshPublisher, sshPublisherDesc, sshTransfer, sshUserPrivateKey, stackTrace, standard, status, statusOnPublisherError, string, stringParam, successRate, successTimeRate, swapSpace, tag, tags, testCase, text, textParam, timezone, tmpSpace, toolLocation, triggeredBy, unsecured, upstream, upstreamDevelopers, url, userSeed, usernameColonPassword, usernamePassword, veracode, veracodeDynamicRescan, viewsTabBar, weather, withAnt, withSonarQubeEnv, workspace, xUnitDotNet, zfs, zip] or globals [Artifactory, currentBuild, docker, env, manager, params, pipeline, scm] 17:24:44 at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:202) 17:24:44 at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) 17:24:44 at sun.reflect.GeneratedMethodAccessor746.invoke(Unknown Source) 17:24:44 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 17:24:44 at java.lang.reflect.Method.invoke(Method.java:498) 17:24:44 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) 17:24:44 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) 17:24:44 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213) 17:24:44 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) 17:24:44 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) 17:24:44 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) 17:24:44 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) 17:24:44 at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:158) 17:24:44 at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23) 17:24:44 at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:157) 17:24:44 at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:142) 17:24:44 at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:156) 17:24:44 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:160) 17:24:44 at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17) 17:24:44 at WorkflowScript.run(WorkflowScript:34) 17:24:44 at ___cps.transform___(Native Method) 17:24:44 at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:86) 17:24:44 at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113) 17:24:44 at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83) 17:24:44 at sun.reflect.GeneratedMethodAccessor724.invoke(Unknown Source) 17:24:44 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 17:24:44 at java.lang.reflect.Method.invoke(Method.java:498) 17:24:44 at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) 17:24:44 at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55) 17:24:44 at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45) 17:24:44 at sun.reflect.GeneratedMethodAccessor725.invoke(Unknown Source) 17:24:44 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 17:24:44 at java.lang.reflect.Method.invoke(Method.java:498) 17:24:44 at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) 17:24:44 at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21) 17:24:44 at com.cloudbees.groovy.cps.Next.step(Next.java:83) 17:24:44 at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174) 17:24:44 at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163) 17:24:44 at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129) 17:24:44 at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268) 17:24:44 at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163) 17:24:44 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18) 17:24:44 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51) 17:24:44 at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185) 17:24:44 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:400) 17:24:44 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96) 17:24:44 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:312) 17:24:44 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:276) 17:24:44 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67) 17:24:44 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 17:24:44 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131) 17:24:44 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) 17:24:44 at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59) 17:24:44 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 17:24:44 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 17:24:44 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 17:24:44 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 17:24:44 at java.lang. Thread .run( Thread .java:748)

          Nicolas added a comment -

          We've just been hit with this issue too and we had to downgrade to URL Trigger 0.45 from 0.49 (we haven't tried 0.46-0.48 to further pinpoint the regression).

          After some investigations I think I've found the root cause of this issue in the xtrigger-api-plugin. The following commit

          https://github.com/jenkinsci/xtrigger-api-plugin/commit/5c9a6bb37077cfec42137b7d2499d4be21d9a78c

          Use Queue to schedule a build
          Move to Queue.schedule() for scheduling builds, which can handle more generic objects than AbstractProject, increasing the reusability of xtrigger-lib. This change requires us to add a CauseAction, as the function does not accept a Cause object; AbstractBuild would do this for us.

           
          The problem would be that AbstractProject.schedulBuild correctly handles parametrized jobs which is not the case of Queue.schedule().

          Nicolas added a comment - We've just been hit with this issue too and we had to downgrade to URL Trigger 0.45 from 0.49 (we haven't tried 0.46-0.48 to further pinpoint the regression). After some investigations I think I've found the root cause of this issue in the xtrigger-api-plugin. The following commit https://github.com/jenkinsci/xtrigger-api-plugin/commit/5c9a6bb37077cfec42137b7d2499d4be21d9a78c Use Queue to schedule a build Move to Queue.schedule() for scheduling builds, which can handle more generic objects than AbstractProject, increasing the reusability of xtrigger-lib. This change requires us to add a CauseAction, as the function does not accept a Cause object; AbstractBuild would do this for us.   The problem would be that AbstractProject.schedulBuild correctly handles parametrized jobs which is not the case of Queue.schedule().

          We are facing the same issue with urltrigger plugin vers 0.49 [Jenkins 2.277.2 ], after upgrade doesn't inject parameter with default value.

          We tried to downgrade URLTrigger Plug-in to vers 0.45, job is working as expected that but we are unable to save any job config change after that particular plugin downgrade.

          https://issues.jenkins.io/browse/JENKINS-65961

          Is there any other alternative or workaround to unblock our issue ?

          Sangeetha Venugopal added a comment - We are facing the same issue with urltrigger plugin vers 0.49 [Jenkins 2.277.2 ] , after upgrade doesn't inject parameter with default value. We tried to downgrade  URLTrigger Plug-in  to vers 0.45, job is working as expected that but we are unable to save any job config change after that particular plugin downgrade. https://issues.jenkins.io/browse/JENKINS-65961 Is there any other alternative or workaround to unblock our issue ?

          Max Lutton added a comment -

          I'm also facing this issue. Do you have any update on this gbois? It makes the plugin nearly unusable.

          Max Lutton added a comment - I'm also facing this issue. Do you have any update on this gbois ? It makes the plugin nearly unusable.

            gbois Gregory Boissinot
            johnlengeling John Lengeling
            Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: