Thanks Gavin and Devin. Pipeline: Declarative dependency was required. On Fri, Jul 5, 2019 at 6:50 PM Devin Nusbaum <[email protected]> wrote:
> “pipeline” in a Jenkinsfile comes from Pipeline: Declarative Plugin, > groupId is org.jenkinsci.plugins, artifactId is pipeline-model-definition. > That has a lot of dependencies, so depending on your use case, it might be > preferable to convert your test case to scripted and depend only on > workflow-cps, workflow-job, and workflow-basic-steps in test scope (perhaps > also a few others such workflow-durable-task-step for the `node` step). > > On Jul 5, 2019, at 03:29, Gavin <[email protected]> wrote: > > You need to depend (I recommend scope of test) on the pipeline plugin that > implements that feature. I think it would be the following but I can't > remember > > <dependency> > <groupId>org.jenkins-ci.plugins.workflow</groupId> > <artifactId>workflow-step-api</artifactId> > <version>2.19</version> > <scope>test</scope> > </dependency> > > (Or maybe definition- https://plugins.jenkins.io/pipeline-model-definition > ) > > On Thu., Jul. 4, 2019, 9:04 p.m. Parichay Barpanda, < > [email protected]> wrote: > >> Hi all, >> >> I am working Branch Source part of GitLab Plugin. There are a different >> bugs that needs attention but for now, the basic branch indexing and branch >> building for Multibranch Pipeline Jobs works just fine. >> >> I want to test the pipeline jobs with `mvn hpi:run`. But when a branch is >> getting built I get an error: >> >> Branch indexing >> Querying the current revision of branch master... >> Current revision of branch master is fb65543c24719f77167dcb3967423f349094b4d3 >> Obtained Jenkinsfile from fb65543c24719f77167dcb3967423f349094b4d3 >> Running in Durability level: MAX_SURVIVABILITY >> >> [Pipeline] End of Pipeline >> java.lang.NoSuchMethodError: No such DSL method 'pipeline' found among >> steps [archive, build, catchError, checkout, deleteDir, dir, echo, error, >> fileExists, getContext, git, isUnix, load, mail, parallel, properties, >> pwd, readFile, readTrusted, resolveScm, retry, sleep, stash, step, >> timeout, tool, unarchive, unstash, waitUntil, withContext, withEnv, wrap, >> writeFile] or symbols [all, always, apiToken, architecture, >> archiveArtifacts, artifactManager, batchFile, booleanP >> ..... >> >> >> The logger also doesn't log `[Pipeline] Start of Pipeline`(Idk what that >> means). >> >> When I install the same plugin in `Jenkins docker with the recommended >> plugins installed`, the pipeline job is performed successfully. I am not >> quite sure but I think `pipeline jobs` don't work with `hpi:run` as there >> is/are some missing dependencies. Here is the pom of my plugin >> https://github.com/baymac/gitlab-branch-source-plugin/blob/feature/branch-source/pom.xml >> . >> >> Kindly let me know what I am missing something. If this is something >> other than just missing dependency then can someone with branch source >> plugins experience have a look at the pr and suggest changes: >> https://github.com/baymac/gitlab-branch-source-plugin/pull/20. >> >> We can also have further discussions in JIRA >> https://issues.jenkins-ci.org/browse/JENKINS-58268. >> >> Thank you. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-dev/7962e605-16d0-40b6-a7fb-a4bb67b2fbe0%40googlegroups.com >> <https://groups.google.com/d/msgid/jenkinsci-dev/7962e605-16d0-40b6-a7fb-a4bb67b2fbe0%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_DuuTn4_BhcTDqvi0ZGyQknVpjusDXpYx5MSPqaGk7bMNjg%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_DuuTn4_BhcTDqvi0ZGyQknVpjusDXpYx5MSPqaGk7bMNjg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/3D682CCD-753B-4166-9771-7A821E5B7153%40cloudbees.com > <https://groups.google.com/d/msgid/jenkinsci-dev/3D682CCD-753B-4166-9771-7A821E5B7153%40cloudbees.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAD0DWAOUfAr_j2oUnY%2BnKY48pykiOLcRoW%3D%2BCmSJcsC9TP%2BwUw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
