infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Lambertus (JIRA)" <>
Subject [jira] [Resolved] (INFRA-16807) DSL issueCommentTrigger not available on Jenkins
Date Wed, 15 Aug 2018 03:09:00 GMT


Chris Lambertus resolved INFRA-16807.
    Resolution: Fixed
      Assignee: Chris Lambertus

> DSL issueCommentTrigger not available on Jenkins
> ------------------------------------------------
>                 Key: INFRA-16807
>                 URL:
>             Project: Infrastructure
>          Issue Type: Bug
>          Components: Jenkins
>            Reporter: Thomas Bouron
>            Assignee: Chris Lambertus
>            Priority: Major
>              Labels: CI, build
> ---
> Background
> Apache Brooklyn is currently comprised of 6 git submodules. Each one has 2 Jenkins jobs:
one to build the master branch and another one to build PRs
> On the PR jobs, we are currently using the GitHub Pull Request builder plugin which gives
us the ability to trigger a build by creating a PR comment saying "retest this please"
> ---
> Issue
> I'm currently working on replacing the 2 jobs per project by a scripted pipeline that
lives within each git submodule. All work as expected except one thing: the ability to trigger
a build via a PR comment.
> I tried to use the "issueCommentTrigger" DSL which is part of the `pipeline-github-plugin`
but my build fails with the following error:
> ```
> java.lang.NoSuchMethodError: No such DSL method 'issueCommentTrigger' found among steps
[ansiColor, archive, bat, build, catchError, checkout, copyRemoteArtifacts, deleteDir, dir,
dockerFingerprintFrom, dockerFingerprintRun, echo, emailext, emailextrecipients, envVarsForTool,
error, fileExists, findFiles, getContext, git, hipchatSend, input, isUnix, jiraComment, jiraIssueSelector,
jiraSearch, junit, library, libraryResource, load, lock, mail, milestone, node, nodesByLabel,
parallel, powershell, properties, publishHTML, pwd, readFile, readJSON, readManifest, readMavenPom,
readProperties, readTrusted, readYaml, resolveScm, retry, script, sh, sha1, sleep, sloccountPublish,
sshagent, stage, stash, step, svn, tee, throttle, timeout, timestamps, tm, tool, touch, triggerRemoteJob,
unarchive, unstash, unzip, validateDeclarativePipeline, waitForQualityGate, waitUntil, withContext,
withCredentials, withDockerContainer, withDockerRegistry, withDockerServer, withEnv, withMaven,
wrap, writeFile, writeJSON, writeMavenPom, writeYaml, ws, zip] or symbols [AUnit, BoostTest,
CTest, CUnit, Check, CppTest, CppUnit, Custom, FPCUnit, GoogleTest, JUnit, MSTest, MbUnit,
NUnit2, NUnit3, PHPUnit, QtTest, UnitTest, Valgrind, absolute, agent, all, allOf, always,
ant, antFromApache, antOutcome, antTarget, any, anyOf, apiToken, architecture, archiveArtifacts,
artifactManager, artifactsPublisher, authorizationMatrix, batchFile, bitbucket, booleanParam,
branch, brokenBuildSuspects, brokenTestsSuspects, buildButton, buildDiscarder, buildParameter,
buildingTag, bzt, caseInsensitive, caseSensitive, certificate, changeRequest, changelog, changeset,
checkoutToSubdirectory, checkstyle, choice, choiceParam, ciGame, cleanWs, clock, cloud, cobertura,
command, compressBuildLog, concordionPublisher, configFile, configFileProvider, copyArtifactPermission,
copyArtifacts, credentials, cron, crumb, culprits, defaultView, demand, dependenciesFingerprintPublisher,
developers, disableConcurrentBuilds, disableResume, docker, dockerCert, dockerfile, downloadSettings,
downstream, dry, dumb, durabilityHint, embUnit, envVars, environment, equals, expression,
failed, file, fileParam, filePath, findbugs, findbugsPublisher, fingerprint, frameOptions,
freeStyle, freeStyleJob, fromScm, fromSource, git, github, githubPush, gradle, gtester, headRegexFilter,
headWildcardFilter, hyperlink, hyperlinkToModels, inheriting, inheritingGlobal, installSource,
invokerPublisher, isRestartedRun, jacoco, jdk, jdkInstaller, jgit, jgitapache, jgivenPublisher,
jnlp, jobDsl, jobName, junitPublisher, label, lastCompleted, lastDuration, lastFailure, lastGrantedAuthorities,
lastStable, lastSuccess, lastSuccessful, latestSavedBuild, legacy, legacySCM, list, local,
location, logRotator, loggedInUsersCanDoAnything, masterBuild, maven, maven3Mojos, mavenErrors,
mavenLinkerPublisher, mavenMojos, mavenWarnings, modernSCM, myView, newContainerPerStage,
node, nodeProperties, nonInheriting, nonStoredPasswordParam, none, not, openTasks, openTasksPublisher,
overrideIndexTriggers, paneStatus, parameters, password, pattern, perfReport, performanceReport,
performanceTest, permalink, pipeline-model, pipelineGraphPublisher, pipelineMaven, pipelineTriggers,
plainText, plot, plugin, pmd, pollSCM, preserveStashes, previous, projectNamingStrategy, proxy,
queueItemAuthenticator, quietPeriod, recipients, relative, remotingCLI, requestor, run, runParam,
schedule, scmRetryCount, scriptApprovalLink, search, security, shell, skipDefaultCheckout,
skipStagesAfterUnstable, skipped, slave, snapshotDependencies, sourceRegexFilter, sourceWildcardFilter,
specific, spotbugsPublisher, sshUserPrivateKey, stackTrace, standard, status, string, stringParam,
swapSpace, tag, testCase, text, textParam, tmpSpace, toolLocation, unsecured, upstream, upstreamDevelopers,
usernameColonPassword, usernamePassword, viewsTabBar, warnings, weather, withAnt, withSonarQubeEnv,
workspace, xUnitDotNet, xunit, zfs, zip] or globals [currentBuild, docker, env, params, pipeline,
> 	at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(
> 	at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(
> 	at sun.reflect.GeneratedMethodAccessor1401.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> 	at java.lang.reflect.Method.invoke(
> 	at org.codehaus.groovy.reflection.CachedMethod.invoke(
> 	at groovy.lang.MetaMethod.doMethodInvoke(
> 	at groovy.lang.MetaClassImpl.invokeMethod(
> 	at groovy.lang.MetaClassImpl.invokeMethod(
> 	at
> 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(
> 	at
> 	at org.kohsuke.groovy.sandbox.impl.Checker$
> 	at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(
> 	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(
> 	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(
> 	at org.kohsuke.groovy.sandbox.impl.Checker$
> 	at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(
> 	at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(
> 	at
> 	at ___cps.transform___(Native Method)
> 	at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(
> 	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(
> 	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(
> 	at sun.reflect.GeneratedMethodAccessor1348.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> 	at java.lang.reflect.Method.invoke(
> 	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(
> 	at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(
> 	at com.cloudbees.groovy.cps.Next.step(
> 	at com.cloudbees.groovy.cps.Continuable$
> 	at com.cloudbees.groovy.cps.Continuable$
> 	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(
> 	at org.codehaus.groovy.runtime.GroovyCategorySupport.use(
> 	at com.cloudbees.groovy.cps.Continuable.run0(
> 	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$101(
> 	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda$run0$0(
> 	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(
> 	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(
> 	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(
> 	at
> 	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(
> 	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$
> 	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$
> 	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$
> 	at
> 	at hudson.remoting.SingleLaneExecutorService$
> 	at jenkins.util.ContextResettingExecutorService$
> 	at$
> 	at java.util.concurrent.Executors$
> 	at
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(
> 	at java.util.concurrent.ThreadPoolExecutor$
> 	at
> Finished: FAILURE
> ```
> Any reason why this is not available to us? Could it be added please?
> For reference, here are:
> - the test jenkins job:
> - the test Jenkinsfile:
(see the `properties` node at the end

This message was sent by Atlassian JIRA

View raw message