[JIRA] (JENKINS-42730) declarative-linter don't work with shared library
Title: Message Title Christoph Vogtländer edited a comment on JENKINS-42730 Re: declarative-linter don't work with shared library The workaround of [~rarabaolaza] is working for me. Instantiating the object before it is used inside the shared library itself.So something like{code:java}def lib = library("libs")def o = lib.com.package.classA.new()customStep() // step which is defined in "lib" and also instantiates classAo.method(){code}works, while something like{code:java}def lib = library("libs")customStep() // step which is defined in "lib" and instantiates classAlib.com.package.classA.new().method() // java.lang.IllegalAccessException {code}does not Add Comment This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.179717.1489443342000.16981.1587721200494%40Atlassian.JIRA.
[JIRA] (JENKINS-42730) declarative-linter don't work with shared library
Title: Message Title Christoph Vogtländer commented on JENKINS-42730 Re: declarative-linter don't work with shared library The workaround of Raul Arabaolaza is working for me. Instantiating the object before it is used inside the shared library itself. So something like def lib = library("libs") def o = lib.com.package.classA.new() customStep() // step which is defined in "lib" and also instantiates classA o.method() works, while something like def lib = library("libs") customStep() // step which is defined in "lib" and instantiates classA lib.com.package.classA.new().method() does not Add Comment This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit
[JIRA] (JENKINS-42730) declarative-linter don't work with shared library
Title: Message Title Nicos Maris updated an issue Jenkins / JENKINS-42730 declarative-linter don't work with shared library Change By: Nicos Maris Priority: Minor Major Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-42730) declarative-linter don't work with shared library
Title: Message Title Boudoux Etienne commented on JENKINS-42730 Re: declarative-linter don't work with shared library hi, I have found the doc (https://jenkins.io/doc/book/pipeline/shared-libraries/#loading-libraries-dynamically ), and resolved my problem . So you can close this bug. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-42730) declarative-linter don't work with shared library
Title: Message Title Boudoux Etienne commented on JENKINS-42730 Re: declarative-linter don't work with shared library hi, I don't see any doc for this new libraries directive. do you have a working example? thank Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-42730) declarative-linter don't work with shared library
Title: Message Title Andrew Bayer commented on JENKINS-42730 Re: declarative-linter don't work with shared library First, I'd suggest upgrading to Declarative 1.1 and using the new libraries directive - pipeline { agent any libraries { lib('gconftools') } stages { ... } } And then let me know if that works, and if not, what the error is along with (ideally) a copy of the Jenkinsfile having the problem. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-42730) declarative-linter don't work with shared library
Title: Message Title Boudoux Etienne created an issue Jenkins / JENKINS-42730 declarative-linter don't work with shared library Issue Type: Bug Assignee: Andrew Bayer Components: pipeline-model-definition-plugin Created: 2017/Mar/13 10:15 PM Environment: last jenkins. all plugins up-to-date Priority: Minor Reporter: Boudoux Etienne I have a jenkinsfile which call shared library at the beginning @Library('gconftools') import forjenkins.GetNodes this jenkinsfile work correctly, but when I want to test with declarative-linter, there is an error. java -jar /var/lib/jenkins/home/war/WEB-INF/jenkins-cli.jar -s http://serveur.domainperso:8082 declarative-linter --username=user --password mdp Errors encountered validating Jenkinsfile: WorkflowScript: 7: unable to resolve class forjenkins.GetNodes @ line 7, column 1. @Library('gconftools') ^ WorkflowScript: 26: unable to resolve class forjenkins.GetNodes @ line 26, column 7. z = new forjenkins.GetNodes() ^