[JIRA] [accurev-plugin] (JENKINS-22138) Add support for Accurev SCM

2016-05-11 Thread a...@90a.nl (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Arno Moonen commented on  JENKINS-22138 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Add support for Accurev SCM  
 
 
 
 
 
 
 
 
 
 
I'll look into that. Thanks for the quick response! 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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] [accurev-plugin] (JENKINS-22138) Add support for Accurev SCM

2016-05-11 Thread m...@daniel-spilker.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Daniel Spilker commented on  JENKINS-22138 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Add support for Accurev SCM  
 
 
 
 
 
 
 
 
 
 
The automatically generated DSL is only available when running in Jenkins, see the second to last paragraph in https://github.com/jenkinsci/job-dsl-plugin/wiki/Automatically-Generated-DSL. 
In 1.47 there will be changes to simplify testing outside of Jenkins. Maybe you can adapt that for the command line runner. See https://github.com/jenkinsci/job-dsl-plugin/pull/837/files. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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] [accurev-plugin] (JENKINS-22138) Add support for Accurev SCM

2016-05-11 Thread a...@90a.nl (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Arno Moonen commented on  JENKINS-22138 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Add support for Accurev SCM  
 
 
 
 
 
 
 
 
 
 
I thought that it might be because the plug-in is not on my class path when running the script this way, so I tried adding @Grab('org.jenkins-ci.plugins:accurev:0.6.35') to run-dsl.groovy. Unfortunately this does not change anything. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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] [accurev-plugin] (JENKINS-22138) Add support for Accurev SCM

2016-05-11 Thread a...@90a.nl (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Arno Moonen commented on  JENKINS-22138 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Add support for Accurev SCM  
 
 
 
 
 
 
 
 
 
 
Assuming that this is included in the 1.46 release, it does not work for me. 
I'm using a DSL Factory (see wiki) and have a method similar to this example: 

 


{code:title=BuildPipeline.groovy}
class BuildPipeline {
	static def MultiJob createMultiJob(DslFactory dsl, ProductInfo productInfo) {
		dsl.multiJob(productInfo.name) {
			/* ... */
			scm {
accurevSCM {
	serverName GlobalConfig.accuRevServerName
	depot GlobalConfig.accuRevServerName
	stream productInfo.accuRevStream
	ignoreStreamParent false
	wspaceORreftree 'wspace'
	useReftree false
	useWorkspace true
	noWspaceNoReftree false
	workspace productInfo.accuRevWorkspace
	cleanreftree false
	useSnapshot false
	dontPopContent true
	snapshotNameFormat ''
	synctime true
	reftree ''
	subPath ''
	filterForPollSCM ''
	directoryOffset ''
}
			}
			/* ... */
		}
	}
}
 

 
This is called from my "main" Job DSL that includes the class, similar to BuildPipeline.createMultijob(this, instanceOfProduct). I test the script locally using this "runner" script: 


run-dsl.groovy

 

@GrabResolver(name='jenkins', root='http://repo.jenkins-ci.org/releases/')
@Grab('org.jenkins-ci.plugins:job-dsl-core:1.46')
import javaposse.jobdsl.Run

def testFiles = []

if (args.size() == 0) {
	def currentWorkingDir = new File('')
	testFiles = new FileNameFinder().getFileNames('', 'test_*.groovy').collect({
		def file = new File(it)
		return currentWorkingDir.toURI().relativize( file.toURI() ).toString()
	})
} else {
 testFiles = args
}

Run.main(testFiles as String[])
 

 
This results in the following exception: 


Exceptions

 

Caught: javaposse.jobdsl.dsl.DslScriptException: (BuildPipeline.groovy, line 81) No signature of method: javaposse.jobdsl.dsl.help
ers.ScmContext.accurevSCM() is applicable for argument types: (template.BuildPipeline$_createMultiJob_closure2$_closure8$_closure1
0) values: [template.BuildPipeline$_createMultiJob_closure2$_closure8$_closure10@64df9a61]
javaposse.jobdsl.dsl.DslScriptException: (BuildPipeline.groovy, line 81) No signature of method: javaposse.jobdsl.dsl.helpers.ScmC
ontext.accurevSCM() is applicable for argument types: (template.BuildPipeline$_createMultiJob_closure2$_closure8$_closure10) value
s: [template.BuildPipeline$_createMultiJob_closure2$_closure8$_closure10@64df9a61]
at javaposse.jobdsl.dsl.DslScriptLoader.runScript(DslScriptLoader.groovy:126)
at javaposse.jobdsl.dsl.DslScriptLoader.this$2$runScript(DslScriptLoader.groovy)
at javaposse.jobdsl.dsl.DslScriptLoader$_runScriptsWithClassLoader_closure1.doCall(DslScriptLoader.groovy:69)
at javaposse.jobdsl.dsl.DslScriptLoader.runScriptsWithClassLoader(DslScriptLoader.groovy:59)
   

[JIRA] [accurev-plugin] (JENKINS-22138) Add support for Accurev SCM

2016-05-08 Thread m...@daniel-spilker.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Daniel Spilker closed an issue as Fixed 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-22138 
 
 
 
  Add support for Accurev SCM  
 
 
 
 
 
 
 
 
 

Change By:
 
 Daniel Spilker 
 
 
 

Status:
 
 Resolved Closed 
 
 
 

Assignee:
 
 Daniel Spilker 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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] [accurev-plugin] (JENKINS-22138) Add support for Accurev SCM

2016-04-18 Thread m...@daniel-spilker.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Daniel Spilker resolved as Fixed 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-22138 
 
 
 
  Add support for Accurev SCM  
 
 
 
 
 
 
 
 
 

Change By:
 
 Daniel Spilker 
 
 
 

Status:
 
 Open Resolved 
 
 
 

Resolution:
 
 Fixed 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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] [accurev-plugin] (JENKINS-22138) Add support for Accurev SCM

2016-04-11 Thread m...@daniel-spilker.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Daniel Spilker commented on  JENKINS-22138 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Add support for Accurev SCM  
 
 
 
 
 
 
 
 
 
 
The upcoming generic DSL (https://github.com/jenkinsci/job-dsl-plugin/pull/816) will enable support for the AccuRev plugin: 

 

job('example') {
  scm {
accurevSCM {
  serverName('')
  depot('')
  stream('')
  wspaceORreftree('')
  workspace('')
  reftree('')
  subPath('')
  filterForPollSCM('')
  synctime(true)
  cleanreftree(false)
  useSnapshot(true)
  dontPopContent(true)
  snapshotNameFormat('')
  directoryOffset('')
  ignoreStreamParent(true)
}
  }
}
 

 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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] [accurev-plugin] (JENKINS-22138) Add support for Accurev SCM

2015-10-06 Thread m...@daniel-spilker.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Daniel Spilker assigned an issue to Unassigned 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
Added a label for accurev-plugin because the DSL can also be added to that plugin through the Job DSL extension point. 
 
 
 
 
 
 
 
 
 
 Jenkins /  JENKINS-22138 
 
 
 
  Add support for Accurev SCM  
 
 
 
 
 
 
 
 
 

Change By:
 
 Daniel Spilker 
 
 
 

Component/s:
 
 accurev-plugin 
 
 
 

Assignee:
 
 Justin Ryan 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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.