[JIRA] (JENKINS-38531) Config.xml of the job gets lost/deleted randomnly on jenkins restart
Title: Message Title touseef darzi assigned an issue to Kohsuke Kawaguchi Jenkins / JENKINS-38531 Config.xml of the job gets lost/deleted randomnly on jenkins restart Change By: touseef darzi Assignee: Kohsuke Kawaguchi Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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-38531) Config.xml of the job gets lost/deleted randomnly on jenkins restart
Title: Message Title touseef darzi updated an issue Jenkins / JENKINS-38531 Config.xml of the job gets lost/deleted randomnly on jenkins restart Change By: touseef darzi Im currently facing an issue with Jenkins ver. 1.642.2 where the config.xml of my created jobs gets deleted randomly on Jenkins restart an and the job is no longer available on the view. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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-38531) Config.xml of the job gets lost/deleted randomnly on jenkins restart
Title: Message Title touseef darzi created an issue Jenkins / JENKINS-38531 Config.xml of the job gets lost/deleted randomnly on jenkins restart Issue Type: Bug Assignee: Unassigned Components: jenkins-tracker Created: 2016/Sep/27 10:07 AM Priority: Blocker Reporter: touseef darzi Im currently facing an issue with Jenkins ver. 1.642.2 where the config.xml of my created jobs gets deleted randomly on Jenkins restart an the job is no longer available on the view. Add Comment This message was sent
[JIRA] [job-dsl-plugin] (JENKINS-29972) Unable to use custom SCM plugin Extension Point
Title: Message Title touseef darzi commented on JENKINS-29972 Re: Unable to use custom SCM plugin Extension Point It up and running finally..Thanks for the fix.When this fix will be released? Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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] [job-dsl-plugin] (JENKINS-29972) Unable to use custom SCM plugin Extension Point
Title: Message Title touseef darzi updated an issue Jenkins / JENKINS-29972 Unable to use custom SCM plugin Extension Point Change By: touseef darzi Comment: i'm getting some problem while building this..can u please provide the .hpi ? Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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] [job-dsl-plugin] (JENKINS-29972) Unable to use custom SCM plugin Extension Point
Title: Message Title touseef darzi commented on JENKINS-29972 Re: Unable to use custom SCM plugin Extension Point i am not sure this is also working..again same type of config.xml is being generated, without configuring the step. P.s:no scmblah blah/scm Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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] [job-dsl-plugin] (JENKINS-29972) Unable to use custom SCM plugin Extension Point
Title: Message Title touseef darzi commented on JENKINS-29972 Re: Unable to use custom SCM plugin Extension Point ?xml version=1.0 encoding=UTF-8?project actions/ description/ keepDependenciesfalse/keepDependencies properties/ scm class=hudson.scm.NullSCM/ canRoamtrue/canRoam disabledfalse/disabled blockBuildWhenDownstreamBuildingfalse/blockBuildWhenDownstreamBuilding blockBuildWhenUpstreamBuildingfalse/blockBuildWhenUpstreamBuilding triggers class=vector/ concurrentBuildfalse/concurrentBuild builders/ publishers/ buildWrappers/ scm class=org.eclipse.hudson.plugins.scm.custom.custompluginSCM hostNamehostName/hostName port123/port userNameuserName/userName passwordRjTE77ArwkYExjKiBiyhRA==/password testdataabcd/testdata /scm /project I can only notice in config.xml,when i configure it manually or configure block the plugin configuration is all coming in scm blah blah /scm block,while that's not the case when done with the extension point Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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] [job-dsl-plugin] (JENKINS-29972) Unable to use custom SCM plugin Extension Point
Title: Message Title touseef darzi edited a comment on JENKINS-29972 Re: Unable to use custom SCM plugin Extension Point **jenkinlog_***JenkinsLogAug21,20154:01:14PMINFOorg.eclipse.jetty.util.log.JavaUtilLoginfoStartedSelectChannelConnector@0.0.0.0:8080Aug21,20154:01:14PMINFOwinstone.LoggerlogInternalWinstoneServletEnginev2.0running:controlPort=disabledAug21,20154:01:15PMINFOjenkins.InitReactorRunner$1onAttainedStartedinitializationAug21,20154:01:32PMINFOjenkins.InitReactorRunner$1onAttainedListedallpluginsAug21,20154:01:32PMINFOhudson.plugins.ansicolor.PluginImplstartAnsiColor:eliminatingboringoutput(https://github.com/dblock/jenkins-ansicolor-plugin)Aug21,20154:01:34PMINFOcom.sonyericsson.hudson.plugins.gerrit.trigger.PluginImplstartStartingGerrit-TriggerPluginAug21,20154:01:34PMINFOcom.sonymobile.tools.gerrit.gerritevents.GerritSendCommandQueuestartQueueSendQueuestarted!Currentpoolsize:1Aug21,20154:01:34PMINFOjenkins.InitReactorRunner$1onAttainedPreparedallpluginsAug21,20154:01:39PMINFOcom.sonyericsson.hudson.plugins.gerrit.trigger.replication.ReplicationCacheinitializeinitializedreplicationcachewithexpirationinMINUTES:360Aug21,20154:01:39PMWARNINGcom.sonyericsson.hudson.plugins.gerrit.trigger.replication.ReplicationQueueTaskDispatcherNoGerritHandlerwasspecified,won'tregisteraseventlistener,sonofunction.Aug21,20154:01:39PMINFOjenkins.InitReactorRunner$1onAttainedStartedallpluginsAug21,20154:01:39PMINFOjenkins.InitReactorRunner$1onAttainedAugmentedallextensionsAug21,20154:01:39PMINFOjenkins.InitReactorRunner$1onAttainedLoadedalljobsAug21,20154:01:40PMINFOorg.jenkinsci.main.modules.sshd.SSHDstartStartedSSHDatport53373Aug21,20154:01:40PMINFOjenkins.InitReactorRunner$1onAttainedCompletedinitializationAug21,20154:01:40PMINFOorg.springframework.web.context.support.StaticWebApplicationContextprepareRefreshRefreshingorg.springframework.web.context.support.StaticWebApplicationContext@231e00:displayname[RootWebApplicationContext];startupdate[FriAug2116:01:40IST2015];rootofcontexthierarchyAug21,20154:01:40PMINFOorg.springframework.web.context.support.StaticWebApplicationContextobtainFreshBeanFactoryBeanfactoryforapplicationcontext[org.springframework.web.context.support.StaticWebApplicationContext@231e00]:org.springframework.beans.factory.support.DefaultListableBeanFactory@314e6dAug21,20154:01:40PMINFOorg.springframework.beans.factory.support.DefaultListableBeanFactorypreInstantiateSingletonsPre-instantiatingsingletonsinorg.springframework.beans.factory.support.DefaultListableBeanFactory@314e6d:definingbeans[authenticationManager];rootoffactoryhierarchyAug21,20154:01:40PMINFOorg.springframework.web.context.support.StaticWebApplicationContextprepareRefreshRefreshingorg.springframework.web.context.support.StaticWebApplicationContext@1e81a0c:displayname[RootWebApplicationContext];startupdate[FriAug2116:01:40IST2015];rootofcontexthierarchyAug21,20154:01:40PMINFOorg.springframework.web.context.support.StaticWebApplicationContextobtainFreshBeanFactoryBeanfactoryforapplicationcontext[org.springframework.web.context.support.StaticWebApplicationContext@1e81a0c]:org.springframework.beans.factory.support.DefaultListableBeanFactory@14094b3Aug21,20154:01:40PMINFOorg.springframework.beans.factory.support.DefaultListableBeanFactorypreInstantiateSingletonsPre-instantiatingsingletonsinorg.springframework.beans.factory.support.DefaultListableBeanFactory@14094b3:definingbeans[filter,legacy];rootoffactoryhierarchyAug21,20154:01:41PMINFOhudson.WebAppMain$3runJenkinsisfullyupandrunningAug21,20154:01:48PMSEVEREorg.apache.commons.jexl.util.IntrospectorgetMethodIntrospectionError:AmbiguousmethodinvocationtoNormalizedIconNameClass(null)forclassorg.jenkins.ui.icon.IconSetAug21,20154:04:48PMWARNINGhudson.diagnosis.ReverseProxySetupMonitorgetTestForReverseProxySetup
[JIRA] [job-dsl-plugin] (JENKINS-29972) Unable to use custom SCM plugin Extension Point
Title: Message Title touseef darzi edited a comment on JENKINS-29972 Re: Unable to use custom SCM plugin Extension Point **jenkinlog_***JenkinsLogAug21,20154:01:14PMINFOorg.eclipse.jetty.util.log.JavaUtilLoginfoStartedSelectChannelConnector@0.0.0.0:8080Aug21,20154:01:14PMINFOwinstone.LoggerlogInternalWinstoneServletEnginev2.0running:controlPort=disabledAug21,20154:01:15PMINFOjenkins.InitReactorRunner$1onAttainedStartedinitializationAug21,20154:01:32PMINFOjenkins.InitReactorRunner$1onAttainedListedallpluginsAug21,20154:01:32PMINFOhudson.plugins.ansicolor.PluginImplstartAnsiColor:eliminatingboringoutput(https://github.com/dblock/jenkins-ansicolor-plugin)Aug21,20154:01:34PMINFOcom.sonyericsson.hudson.plugins.gerrit.trigger.PluginImplstartStartingGerrit-TriggerPluginAug21,20154:01:34PMINFOcom.sonymobile.tools.gerrit.gerritevents.GerritSendCommandQueuestartQueueSendQueuestarted!Currentpoolsize:1Aug21,20154:01:34PMINFOjenkins.InitReactorRunner$1onAttainedPreparedallpluginsAug21,20154:01:39PMINFOcom.sonyericsson.hudson.plugins.gerrit.trigger.replication.ReplicationCacheinitializeinitializedreplicationcachewithexpirationinMINUTES:360Aug21,20154:01:39PMWARNINGcom.sonyericsson.hudson.plugins.gerrit.trigger.replication.ReplicationQueueTaskDispatcherNoGerritHandlerwasspecified,won'tregisteraseventlistener,sonofunction.Aug21,20154:01:39PMINFOjenkins.InitReactorRunner$1onAttainedStartedallpluginsAug21,20154:01:39PMINFOjenkins.InitReactorRunner$1onAttainedAugmentedallextensionsAug21,20154:01:39PMINFOjenkins.InitReactorRunner$1onAttainedLoadedalljobsAug21,20154:01:40PMINFOorg.jenkinsci.main.modules.sshd.SSHDstartStartedSSHDatport53373Aug21,20154:01:40PMINFOjenkins.InitReactorRunner$1onAttainedCompletedinitializationAug21,20154:01:40PMINFOorg.springframework.web.context.support.StaticWebApplicationContextprepareRefreshRefreshingorg.springframework.web.context.support.StaticWebApplicationContext@231e00:displayname[RootWebApplicationContext];startupdate[FriAug2116:01:40IST2015];rootofcontexthierarchyAug21,20154:01:40PMINFOorg.springframework.web.context.support.StaticWebApplicationContextobtainFreshBeanFactoryBeanfactoryforapplicationcontext[org.springframework.web.context.support.StaticWebApplicationContext@231e00]:org.springframework.beans.factory.support.DefaultListableBeanFactory@314e6dAug21,20154:01:40PMINFOorg.springframework.beans.factory.support.DefaultListableBeanFactorypreInstantiateSingletonsPre-instantiatingsingletonsinorg.springframework.beans.factory.support.DefaultListableBeanFactory@314e6d:definingbeans[authenticationManager];rootoffactoryhierarchyAug21,20154:01:40PMINFOorg.springframework.web.context.support.StaticWebApplicationContextprepareRefreshRefreshingorg.springframework.web.context.support.StaticWebApplicationContext@1e81a0c:displayname[RootWebApplicationContext];startupdate[FriAug2116:01:40IST2015];rootofcontexthierarchyAug21,20154:01:40PMINFOorg.springframework.web.context.support.StaticWebApplicationContextobtainFreshBeanFactoryBeanfactoryforapplicationcontext[org.springframework.web.context.support.StaticWebApplicationContext@1e81a0c]:org.springframework.beans.factory.support.DefaultListableBeanFactory@14094b3Aug21,20154:01:40PMINFOorg.springframework.beans.factory.support.DefaultListableBeanFactorypreInstantiateSingletonsPre-instantiatingsingletonsinorg.springframework.beans.factory.support.DefaultListableBeanFactory@14094b3:definingbeans[filter,legacy];rootoffactoryhierarchyAug21,20154:01:41PMINFOhudson.WebAppMain$3runJenkinsisfullyupandrunningAug21,20154:01:48PMSEVEREorg.apache.commons.jexl.util.IntrospectorgetMethodIntrospectionError:AmbiguousmethodinvocationtoNormalizedIconNameClass(null)forclassorg.jenkins.ui.icon.IconSetAug21,20154:04:48PMWARNINGhudson.diagnosis.ReverseProxySetupMonitorgetTestForReverseProxySetuphttp:// ozd0802g local
[JIRA] [job-dsl-plugin] (JENKINS-29972) Unable to use custom SCM plugin Extension Point
Title: Message Title touseef darzi commented on JENKINS-29972 Re: Unable to use custom SCM plugin Extension Point i'm getting some problem while building this..can u please provide the .hpi ? Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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] [job-dsl-plugin] (JENKINS-29972) Unable to use custom SCM plugin Extension Point
Title: Message Title touseef darzi commented on JENKINS-29972 Re: Unable to use custom SCM plugin Extension Point ## project actions/actions description/description keepDependenciesfalse/keepDependencies properties/properties canRoamtrue/canRoam disabledfalse/disabled blockBuildWhenDownstreamBuildingfalse/blockBuildWhenDownstreamBuilding blockBuildWhenUpstreamBuildingfalse/blockBuildWhenUpstreamBuilding triggers class='vector'/triggers concurrentBuildfalse/concurrentBuild builders/builders publishers/publishers buildWrappers/buildWrappers org.eclipse.hudson.plugins.scm.customplugin.custompluginSCM plugin='custom-plugin@1.0.1-SNAPSHOT' hostNamehostName/hostName port123/port userNameuserName/userName passwordRjTE77ArwkYExjKiBiyhRA==/password testdataabcd/testdata /org.eclipse.hudson.plugins.scm.custom.custompluginSCM /project ## I added the logs to CustomMethodDsl methods,its getting called also.I have no idea where in lies the problem.I have written the extension points for the build and publisher step plugins,for them its working all fine. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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] [job-dsl-plugin] (JENKINS-29972) Unable to use custom SCM plugin Extension Point
Title: Message Title touseef darzi commented on JENKINS-29972 Re: Unable to use custom SCM plugin Extension Point ***seed job log** Started by user anonymous Building on master in workspace D:\Tools\Jenkins\jobs\integrity dsl\workspace Processing provided DSL script Existing items: GeneratedJob {name='dslintegritygenerated'} Finished: SUCCESS Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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] [job-dsl-plugin] (JENKINS-29972) Unable to use custom SCM plugin Extension Point
Title: Message Title touseef darzi commented on JENKINS-29972 Re: Unable to use custom SCM plugin Extension Point *jenkin log_** Jenkins Log Aug 21, 2015 4:01:14 PM INFO org.eclipse.jetty.util.log.JavaUtilLog info Started SelectChannelConnector@0.0.0.0:8080 Aug 21, 2015 4:01:14 PM INFO winstone.Logger logInternal Winstone Servlet Engine v2.0 running: controlPort=disabled Aug 21, 2015 4:01:15 PM INFO jenkins.InitReactorRunner$1 onAttained Started initialization Aug 21, 2015 4:01:32 PM INFO jenkins.InitReactorRunner$1 onAttained Listed all plugins Aug 21, 2015 4:01:32 PM INFO hudson.plugins.ansicolor.PluginImpl start AnsiColor: eliminating boring output (https://github.com/dblock/jenkins-ansicolor-plugin) Aug 21, 2015 4:01:34 PM INFO com.sonyericsson.hudson.plugins.gerrit.trigger.PluginImpl start Starting Gerrit-Trigger Plugin Aug 21, 2015 4:01:34 PM INFO com.sonymobile.tools.gerrit.gerritevents.GerritSendCommandQueue startQueue SendQueue started! Current pool size: 1 Aug 21, 2015 4:01:34 PM INFO jenkins.InitReactorRunner$1 onAttained Prepared all plugins Aug 21, 2015 4:01:39 PM INFO com.sonyericsson.hudson.plugins.gerrit.trigger.replication.ReplicationCache initialize initialized replication cache with expiration in MINUTES: 360 Aug 21, 2015 4:01:39 PM WARNING com.sonyericsson.hudson.plugins.gerrit.trigger.replication.ReplicationQueueTaskDispatcher No GerritHandler was specified, won't register as event listener, so no function. Aug 21, 2015 4:01:39 PM INFO jenkins.InitReactorRunner$1 onAttained Started all plugins Aug 21, 2015 4:01:39 PM INFO jenkins.InitReactorRunner$1 onAttained Augmented all extensions Aug 21, 2015 4:01:39 PM INFO jenkins.InitReactorRunner$1 onAttained Loaded all jobs Aug 21, 2015 4:01:40 PM INFO org.jenkinsci.main.modules.sshd.SSHD start Started SSHD at port 53373 Aug 21, 2015 4:01:40 PM INFO jenkins.InitReactorRunner$1 onAttained Completed initialization Aug 21, 2015 4:01:40 PM INFO org.springframework.web.context.support.StaticWebApplicationContext prepareRefresh Refreshing org.springframework.web.context.support.StaticWebApplicationContext@231e00: display name [Root WebApplicationContext]; startup date [Fri Aug 21 16:01:40 IST 2015]; root of context hierarchy Aug 21, 2015 4:01:40 PM INFO org.springframework.web.context.support.StaticWebApplicationContext obtainFreshBeanFactory Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@231e00]: org.springframework.beans.factory.support.DefaultListableBeanFactory@314e6d Aug 21, 2015 4:01:40 PM INFO org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@314e6d: defining beans [authenticationManager]; root of factory hierarchy Aug 21, 2015 4:01:40 PM INFO org.springframework.web.context.support.StaticWebApplicationContext prepareRefresh Refreshing org.springframework.web.context.support.StaticWebApplicationContext@1e81a0c: display name [Root WebApplicationContext]; startup date [Fri Aug 21 16:01:40 IST 2015]; root of context hierarchy Aug 21, 2015 4:01:40 PM INFO org.springframework.web.context.support.StaticWebApplicationContext obtainFreshBeanFactory Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@1e81a0c]: org.springframework.beans.factory.support.DefaultListableBeanFactory@14094b3 Aug 21, 2015 4:01:40 PM INFO org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@14094b3: defining beans [filter,legacy]; root of factory hierarchy Aug 21, 2015
[JIRA] [job-dsl-plugin] (JENKINS-29972) Unable to use custom SCM plugin Extension Point
Title: Message Title touseef darzi commented on JENKINS-29972 Re: Unable to use custom SCM plugin Extension Point It is just creating the child job *without *enabling my customized scm step in child job as it is expected to do. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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] [job-dsl-plugin] (JENKINS-29972) Unable to use custom SCM plugin Extension Point
Title: Message Title touseef darzi edited a comment on JENKINS-29972 Re: Unable to use custom SCM plugin Extension Point Itisjustcreatingthechildjob*without*enablingmycustomizedscmstepinchildjobasitisexpectedtodo. Itisnotthrowinganyexceptionalso.Inyourdocumentationongithub(https://github.com/jenkinsci/job-dsl-plugin/wiki/Extending-the-DSL),youhavespecifiedjavaposse.jobdsl.dsl.helpers.step.ScmContextforthescmandmultiscmcontextsbutinjarofcoredslscmisinfollowingcontextjavaposse.jobdsl.dsl.helpers.ScmContext;eventhoughiamimportingfromthesameforextension,itstillnotworking.Itisblockerforme.Anyidea? Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- 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] [job-dsl-plugin] (JENKINS-29972) Unable to use custom SCM plugin Extension Point
Title: Message Title touseef darzi created an issue Jenkins / JENKINS-29972 Unable to use custom SCM plugin Extension Point Issue Type: Bug Assignee: Daniel Spilker Components: job-dsl-plugin Created: 17/Aug/15 7:19 AM Priority: Blocker Reporter: touseef darzi I implemented below code to extend my scm plugin for Dsl . The job gets created but the scm step is not added as expected in the created job //file:DslExtension.java import hudson.Extension; import javaposse.jobdsl.dsl.helpers.ScmContext; import javaposse.jobdsl.plugin.ContextExtensionPoint; import javaposse.jobdsl.plugin.DslExtensionMethod; @Extension(optional = true) public class JobDslExtension extends ContextExtensionPoint{ @DslExtensionMethod(context = ScmContext.class) public Object CustomMethodDsl(String hostName, int port, String testpath, String userName, String password, String testdata) { return new CustomClientSCM(hostName, port,testpath, userName,password, testdata); } } // File:Job Dsl Script job('example') { scm { CustomMethodDsl('hostName',123, 'testpath', ' userName', ' password', 'testdata') } }
[JIRA] [job-dsl-plugin] (JENKINS-29973) Unable to use custom SCM plugin Extension Point
Title: Message Title touseef darzi created an issue Jenkins / JENKINS-29973 Unable to use custom SCM plugin Extension Point Issue Type: Bug Assignee: Daniel Spilker Components: job-dsl-plugin Created: 17/Aug/15 7:21 AM Priority: Blocker Reporter: touseef darzi I implemented below code to extend my scm plugin for Dsl . The job gets created but the scm step is not added as expected in the created job //file:DslExtension.java import hudson.Extension; import javaposse.jobdsl.dsl.helpers.ScmContext; import javaposse.jobdsl.plugin.ContextExtensionPoint; import javaposse.jobdsl.plugin.DslExtensionMethod; @Extension(optional = true) public class JobDslExtension extends ContextExtensionPoint{ @DslExtensionMethod(context = ScmContext.class) public Object CustomMethodDsl(String hostName, int port, String testpath, String userName, String password, String testdata) { return new CustomClientSCM(hostName, port,testpath, userName,password, testdata); } } // File:Job Dsl Script job('example') { scm { CustomMethodDsl('hostName',123, 'testpath', ' userName', ' password', 'testdata') } }
[JIRA] [job-dsl-plugin] (JENKINS-29974) Unable to use custom SCM plugin Extension Point
Title: Message Title touseef darzi created an issue Jenkins / JENKINS-29974 Unable to use custom SCM plugin Extension Point Issue Type: Bug Assignee: Daniel Spilker Components: job-dsl-plugin Created: 17/Aug/15 7:22 AM Priority: Blocker Reporter: touseef darzi I implemented below code to extend my scm plugin for Dsl . The job gets created but the scm step is not added as expected in the created job //file:DslExtension.java import hudson.Extension; import javaposse.jobdsl.dsl.helpers.ScmContext; import javaposse.jobdsl.plugin.ContextExtensionPoint; import javaposse.jobdsl.plugin.DslExtensionMethod; @Extension(optional = true) public class JobDslExtension extends ContextExtensionPoint{ @DslExtensionMethod(context = ScmContext.class) public Object CustomMethodDsl(String hostName, int port, String testpath, String userName, String password, String testdata) { return new CustomClientSCM(hostName, port,testpath, userName,password, testdata); } } // File:Job Dsl Script job('example') { scm { CustomMethodDsl('hostName',123, 'testpath', ' userName', ' password', 'testdata') } }