index.jelly #2

  • //
  • guest/
  • perforce_software/
  • p4jenkins/
  • main/
  • src/
  • main/
  • resources/
  • org/
  • jenkinsci/
  • plugins/
  • p4/
  • trigger/
  • P4Trigger/
  • P4TriggerAction/
  • index.jelly
  • View
  • Commits
  • Open Download .zip Download (1023 B)
<?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">
    <l:layout>
        <st:include it="${it.owner}" page="sidepanel.jelly" />
        <l:main-panel>
            <h1>${%Last Perforce Change}</h1>
            <j:set var="log" value="${it.log}" />
            <j:choose>
                <j:when test="${empty(log)}">
                    ${%P4 trigger has not run yet.}
                </j:when>
                <j:otherwise>
                	<link rel="stylesheet" href="${rootURL}/plugin/p4/style.css"></link>
                	<script type="text/javascript" src="${rootURL}/plugin/p4/script.js"></script>
                    <pre>
                        <st:getOutput var="output" />
                        <j:whitespace>${it.writeLogTo(output)}</j:whitespace>
                    </pre>
                </j:otherwise>
            </j:choose>
        </l:main-panel>
    </l:layout>
</j:jelly>
# Change User Description Committed
#2 19519 Paul Allen Jelly header update.

<?jelly escape-by-default='true'?>
#1 15403 Paul Allen Perforce triggered polling BETA.

Perforce triggers on a change-submit and sends a POST to the endpoint http://${JENKINS}/p4/change with the data:
{"change":"12345","p4port":"localhost:1666"}

Note: ‘change’ is not used (yet), but ‘p4port’ MUST match the credential in the Jenkins Job.

JENKINS-25249