<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"> <d:taglib uri="local"> <d:tag name="listTags"> <ul> <j:forEach var="t" items="${tags}"> <li>${t}</li> </j:forEach> </ul> </d:tag> </d:taglib> <l:layout norefresh="true" xmlns:local="local"> <st:include it="${it.build}" page="sidepanel.jelly" /> <l:main-panel> <h1>Build #${it.build.number}</h1> <j:if test="${it.isTagged()}"> <p>This build is labelled:</p> <table border="0" width="640"> <tr> <td><b>Label</b></td> <td><b>Description</b></td> <td><b>Owner</b></td> <td><b>Revision</b></td> </tr> <j:forEach var="entry" items="${it.tags}"> <tr> <td>${entry}</td> <td>${it.getLabel(entry).description}</td> <td>${it.getLabel(entry).ownerName}</td> <td>${it.getLabel(entry).revisionSpec}</td> </tr> </j:forEach> </table> <st:nbsp/> </j:if> <p><b>Create a Perforce Automatic label:</b></p> <p>The Label's view is based on the workspace used during the build and Revision is set to change number: ${it.buildChange}.</p> <form action="submit" method="get" name="label"> <table border="0" width="640"> <tr> <td nowrap="nowrap"><b>Label Name:</b> </td> <td><input type="text" name="name" value="jenkins-${it.build.project.name}-Build-${it.build.number}" style="width:70%" id="name" checkUrl="'checkTag?value='+escape(this.value)"/> </td> </tr> <tr> <td><b>Description:</b> </td> <td><textarea name="desc" rows="5" cols="60" style="width:70%"> JenkinsBuild: #${it.build.number} </textarea></td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td colspan="2" align="right"><input type="submit" value="Label Build"/></td> </tr> </table> </form> </l:main-panel> </l:layout> </j:jelly>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#7 | 26352 | Paul Allen | [SECURITY-1765] | ||
#6 | 19881 | Paul Allen | Change label form submit button to input. | ||
#5 | 19519 | Paul Allen |
Jelly header update. <?jelly escape-by-default='true'?> |
||
#4 | 18160 | Paul Allen |
Update test case testFreeStyleProject_buildLabel for Jenkins 1.625.3 Find the form submit button and call a click() instead of the internal submit() method. |
||
#3 | 15379 | Paul Allen |
Ground-work for Workflow-DSL (Split out Sven’s DSL changes to the core) @sven_erik_knop |
||
#2 | 9986 | Paul Allen | Re-added getLabel method used by Jelly. | ||
#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/tagging/TagAction/tagForm.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/tagging/TagAction/tagForm.jelly | |||||
#3 | 9137 | Paul Allen | Functional tests for tabBuild endpoint (submitting Labels) and browser (P4Web/Swarm) dummy http server checks. | ||
#2 | 9077 | Paul Allen |
Added support for automatic Labels as a post-build Action. Ported original code for promoted builds, but not tested. |
||
#1 | 9069 | Paul Allen |
Adding initial support for tagging Jenkins builds as Perforce Automatic Labels. Only implements TagAction (manual labels); TagNotifier and test cases TODO. |