index.jelly #12

  • //
  • guest/
  • perforce_software/
  • p4jenkins/
  • main/
  • src/
  • main/
  • resources/
  • org/
  • jenkinsci/
  • plugins/
  • p4/
  • changes/
  • P4ChangeSet/
  • index.jelly
  • View
  • Commits
  • Open Download .zip Download (6 KB)
<?jelly escape-by-default='true'?>
<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:i="jelly:fmt">
    <j:set var="browser" value="${it.browser}"/>
    <j:choose>
        <j:when test="${it.emptySet}">
            No changes from last build.
        </j:when>
        <j:otherwise>

            <j:forEach var="entry" items="${it.history}" varStatus="loop">

                <j:choose>
                    <j:when test="${entry.id == null}">
                        No connection to Perforce.
                    </j:when>
			
            
                    <j:otherwise>          
                        <div class="changeset-message" style="width: 650px; margin-bottom: 4px; background-color: inherit">  

                            <a name="detail${loop.index}"></a>
                            <j:choose>
                                <j:when test="${entry.shelved}">
                                    <img src="${rootURL}/plugin/p4/icons/shelved.png" border="0" style="vertical-align: middle"/>
                                </j:when>	
                                <j:otherwise>
                                    <img src="${rootURL}/plugin/p4/icons/submitted.png" border="0" style="vertical-align: middle"/>
                                </j:otherwise>
                            </j:choose>
						
		
                            <j:choose>
                                <j:when test="${entry.label}">
                                    <b>
                                        <a href="${browser.getLabelSetLink(entry)}">${entry.id}</a>
                                    </b>
                                </j:when>
                                <j:otherwise>
                                    <b>
                                        <a href="${browser.getChangeSetLink(entry)}">${entry.id}</a>
                                    </b>
                                </j:otherwise>
                            </j:choose>
						
                            by <a href="${rootURL}/${entry.author.url}/">${entry.author}</a> (${entry.clientId})
                            on <i:formatDate value="${entry.date}" type="both" dateStyle="medium" timeStyle="medium"/>
                            <hr/>
                            <textarea readonly="readonly" rows="${entry.rows}" style="resize: none; width: 100%; border: none; background: transparent; outline: none;">${entry.msg}</textarea>
                            <br/>
                        </div>
					
                        <j:if test="${entry.affectedFiles.size() > 0}">
                            <j:choose>
                                <j:when test="${entry.shelved}">
                                    Shelved Files:
                                </j:when>	
                                <j:otherwise>
                                    Submitted Files:
                                </j:otherwise>
                            </j:choose>
						
                            <ul style="list-style-type: none;">
                                <j:forEach var="file" items="${entry.affectedFiles}" varStatus="fileloop">
                                    <li>
                                        <img src="${rootURL}/plugin/p4/icons/action-${file.action}.gif" border="0" style="vertical-align"/>
                                        <st:nbsp/> 
                                        <a href="${browser.getFileLink(file)}">${file.getPath()}</a>
                                        <j:choose>
                                            <j:when test="${entry.shelved}">                                    
                                            </j:when>	
                                            <j:otherwise>
                                                <j:set var="diff" value="${browser.getDiffLink(file, entry.id)}"/>
                                                <j:choose>
                                                    <j:when test="${diff!=null}">
                                                        <st:nbsp/>
                                                        <a href="${diff}">${file.revision}</a>
                                                    </j:when>
                                                    <j:otherwise>
                                                    	<st:nbsp/>${file.revision}
                                                    </j:otherwise>
                                                </j:choose>
                                            </j:otherwise>
                                        </j:choose>
                                    </li>
                                </j:forEach>
							
                                <j:if test="${entry.fileLimit}">
                                    ...list truncated (more than ${entry.getMaxLimit()} files)
                                </j:if>
                            </ul>
                        </j:if>
		
                        <j:if test="${entry.jobs.size() > 0}">
                            Affected Jobs:
                            <ul style="list-style-type: none;">
                                <j:forEach var="job" items="${entry.jobs}" varStatus="jobloop">
                                    <p>
                                        <img src="${rootURL}/plugin/p4/icons/job.gif" border="0" style="vertical-align"/>
                                        <st:nbsp/>
                                        <a href="${browser.getJobLink(job.getJobId())}">${job.getJobId()}</a> - ${entry.getJobStatus(job)}
                                    </p>
                                </j:forEach>
                            </ul>
                        </j:if>
					
                    </j:otherwise>
                </j:choose>
            </j:forEach>
        </j:otherwise>
    </j:choose>
</j:jelly>
# Change User Description Committed
#12 26766 Paul Allen Merge pull request #120 from VirtualTim/patch-1

Remove background colour for change list
#11 22372 Paul Allen Update Repository Browser for use with Pipeline.

May fix the following: JENKINS-43069 JENKINS-37094
#10 22128 Paul Allen Helix Graph support for Jenkins.

JENKINS-40354
#9 19519 Paul Allen Jelly header update.

<?jelly escape-by-default='true'?>
#8 16409 Paul Allen Use Fix records for Job information.

'p4 fixes' is lighter and still provides enough useful data.  Includes jelly fix and extra job data in changelog.xml.
#7 12181 Paul Allen @mjoubert Fix bug where jelly showed the version of a shelved file

Added missing <j:choose> around when/otherwise option.
#6 11338 Paul Allen Copying (mjoubert) Icon and Jelly changes using p4-jenkins
#5 10201 Paul Allen Fix page loading error with no connection to P4
#4 9803 Paul Allen Merging using p4-jenkins
#3 9769 Paul Allen Copying using p4-jenkins
#2 9696 Paul Allen Updated install notes and removed old ref to p4-client
#1 9690 Paul Allen [Branching using p4-jenkins]
Release 1.0.1
//guest/paul_allen/dev/p4-jenkins/p4-client/src/main/resources/org/jenkinsci/plugins/p4/changes/P4ChangeSet/index.jelly
#1 9672 Paul Allen Refactor name from 'p4_client' to 'p4'.
//guest/paul_allen/dev/p4-jenkins/p4-client/src/main/resources/org/jenkinsci/plugins/p4_client/changes/P4ChangeSet/index.jelly
#4 9127 Paul Allen Added Browser support for P4Web.
 - Includes fix for move/add and move/delete icons when browsing change lists.
#3 9055 Paul Allen Label support.

Build at a label using the pram 'label'.  This includes adding the label to the ChangeEntry, building the change reports and Browser links to Swarm. (TPI-102)
#2 8916 Paul Allen Unit tests for ChangeLog feature and minor fix when listing files if the change is Submitted or Shelved.
#1 8915 Paul Allen Support for ChangeLog and RepoBrowser.

 - Added RepoBrowser for Swarm (porting the others should be easy)
 - ChangeLog XML file now only stores the changelist number all other information is fetched from Perforce