infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Lambertus (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (INFRA-16807) DSL issueCommentTrigger not available on Jenkins
Date Thu, 26 Jul 2018 02:36:00 GMT

    [ https://issues.apache.org/jira/browse/INFRA-16807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16556800#comment-16556800
] 

Chris Lambertus commented on INFRA-16807:
-----------------------------------------

It appears that this method is only available in a plugin called 'pipeline-github-plugin'..
however, this plugin does not appear to be available to Jenkins, unless it's called something
different. I also don't know how it will work with the various other git plugins. We'll need
to evaluate this further. I'll flag it for review at our next staff meeting, but will also
ping [~gmcdonald] here in case he has other knowledge of this plugin.




> DSL issueCommentTrigger not available on Jenkins
> ------------------------------------------------
>
>                 Key: INFRA-16807
>                 URL: https://issues.apache.org/jira/browse/INFRA-16807
>             Project: Infrastructure
>          Issue Type: Bug
>          Components: Jenkins
>            Reporter: Thomas Bouron
>            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,
scm]
> 	at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:176)
> 	at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
> 	at sun.reflect.GeneratedMethodAccessor1401.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
> 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
> 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
> 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
> 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
> 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
> 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
> 	at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:157)
> 	at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)
> 	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:133)
> 	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:120)
> 	at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:155)
> 	at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:159)
> 	at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
> 	at WorkflowScript.run(WorkflowScript:87)
> 	at ___cps.transform___(Native Method)
> 	at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57)
> 	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109)
> 	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82)
> 	at sun.reflect.GeneratedMethodAccessor1348.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
> 	at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
> 	at com.cloudbees.groovy.cps.Next.step(Next.java:83)
> 	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
> 	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
> 	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:122)
> 	at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:261)
> 	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
> 	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$101(SandboxContinuable.java:34)
> 	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda$run0$0(SandboxContinuable.java:59)
> 	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
> 	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:58)
> 	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:174)
> 	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:332)
> 	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(CpsThreadGroup.java:83)
> 	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:244)
> 	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:232)
> 	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
> 	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
> 	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> 	at java.lang.Thread.run(Thread.java:748)
> Finished: FAILURE
> ```
> Any reason why this is not available to us? Could it be added please?
> For reference, here are:
> - the test jenkins job: https://builds.apache.org/view/B/view/Brooklyn/job/brooklyn-library
> - the test Jenkinsfile: https://github.com/tbouron/brooklyn-library/blob/86c3b6b7a6ae218f3e6177b5e653475f6a38fe12/Jenkinsfile
(see the `properties` node at the end



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message