config.jelly #1

  • //
  • guest/
  • perforce_software/
  • p4jenkins/
  • main/
  • src/
  • main/
  • resources/
  • org/
  • jenkinsci/
  • plugins/
  • p4/
  • workflow/
  • P4PublishStep/
  • config.jelly
  • View
  • Commits
  • Open Download .zip Download (488 B)
<j:jelly 	xmlns:j="jelly:core" 	xmlns:st="jelly:stapler" 	xmlns:d="jelly:define" 
			xmlns:l="/lib/layout" 	xmlns:t="/lib/hudson" 		xmlns:f="/lib/form"
			xmlns:c="/lib/credentials">
			
	<f:entry title="Perforce Credentials" field="credential">
		<c:select/>
	</f:entry>
	
	<f:entry title="Workspace behaviour">
		<f:dropdownDescriptorSelector field="workspace"/>
	</f:entry>
	
	<f:entry title="Publish options">
		<f:dropdownDescriptorSelector field="publish"/>
	</f:entry>
	
</j:jelly>
# Change User Description Committed
#2 19519 Paul Allen Jelly header update.

<?jelly escape-by-default='true'?>
#1 15394 Paul Allen Workflow-DSL functionality.

Tested workflow DSL against 1.596.1 older functionality tested against 1.580.1
@sven_erik_knop
//guest/sven_erik_knop/p4jenkins/src/main/resources/org/jenkinsci/plugins/p4/workflow/P4PublishStep/config.jelly
#1 14892 Sven Erik Knop Add p4publish as the last p4 step puzzle piece.

Interesting snippet:

node {
   p4sync credential: '634a31d2-bd60-4c39-bf84-b09f057c5431', template: 'jenkins'
   p4tag rawLabelDesc: 'Jenkins post-build label - from DSL!.', rawLabelName: 'jenkins-{BUILDTAG}'

   publisher = [$class: 'SubmitImpl', description: 'Submitted by Jenkins. Build: ${BUILD_TAG}', onlyOnSuccess: false, reopen: false]
   buildWorkspace = [$class: 'StreamWorkspaceImpl', charset: 'none', format: 'jenkins-${NODE_NAME}-${JOB_NAME}', pinHost: false, streamName: '//stream/main']

   p4publish credential: '634a31d2-bd60-4c39-bf84-b09f057c5431', publish: publisher, workspace: buildWorkspace

}

Makes it easier to read.