-
Bug
-
Resolution: Not A Defect
-
Major
-
Jenkins ver. 2.176.2
-
Powered by SuggestiMate
On clicking the ManageJenkins-> Manage Plugins
The page load fails with the below javascript error as in console
Uncaught TypeError: Cannot read property 'get' of undefined
at _createResponder (prototype.js:5615)
at Function.observe (prototype.js:5694)
at initPluginRowHandling (_table.js:350)
at _table.js:406
at responder (prototype.js:5656)
Screenshot as below:
- jenkins_issue.png
- 344 kB
- jenkins_issue.png
- 344 kB
[JENKINS-60761] Plugin manager fails to load while navigating to the manage plugins view
contd ..
{"newly":[],"trend":[],"updated":[]}},"routing":{"locationBeforeTransitions":null}};</script></head> <body> <script src="https://jenkins.io/assets/bower/jquery/jquery.min.js"></script> <!-- starting partial toptoolbar.html.haml -> <nav class="navbar navbar-expand-lg navbar-dark top bg-dark fixed-top" id="ji-toolbar"> <a class="navbar-brand" href="https://jenkins.io"> Jenkins </a> <button class="navbar-toggler" data-target="#CollapsingNavbar" data-toggle="collapse" type="button"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="CollapsingNavbar"> <ul class="nav navbar-nav mr-auto"> <li class="nav-item dropdown"> <!- starting partial dropdown.html.haml -> <button aria-expanded="false" aria-haspopup="true" class="nav-link dropdown-toggle" data-toggle="dropdown"> <!- starting partial cdf_logo.html.haml -> <svg width="36" height="18" xmlns="http://www.w3.org/2000/svg" role="img" xmlns:xlink="http://www.w3.org/1999/xlink" viewbox="-3.23 44.77 362.70 271.95"><defs><lineargradient id="a" x1="359.765" x2="104.082" y1="134.295" y2="124.577" gradienttransform="matrix(1 0 0 -1 0 439.068)" gradientunits="userSpaceOnUse"><stop offset="0" stop-color="#ed1c24"/><stop offset="1" stop-color="#f7941d"/></lineargradient><lineargradient id="b" x1="355.202" x2="99.519" y1="254.467" y2="244.749" xlink:href="#a"><lineargradient id="c" x1="183.903" x2="10.612" y1="227.598" y2="221.023" xlink:href="#a"><lineargradient id="d" x1="367.119" x2="157.995" y1="265.311" y2="257.091" xlink:href="#a"/></lineargradient></lineargradient></defs><path fill="#c49a6c" d="M231.52 309.278c2.483.332 4.895-.77 7.255-1.329s4.649-1.206 6.991-1.957c13.494-4.58 25.187-12.952 36.374-24.593l-.14-.175c-14.944 15.486-30.693 25.344-50.48 28.054z"/><path fill="url(#a)" d="M224.232 309.96h.332c1.084 0 2.15-.14 3.216-.228a93.844 93.844 0 0 1-3.233.227z"/><path fill="url(#b)" d="M284.692 187.187l-.122.192.122-.192z"/><path fill="url(#c)" d="M146.145 231.847a150.844 150.844 0 0 1-12.97 15.862c-7.582 7.889-15.507 13.563-24.652 16.667a47.832 47.832 0 0 1-4.738 1.326 56.959 56.959 0 0 1-4.916.9 38.32 38.32 0 0 1-1.682.214l-.912.083c-.723.059-1.445.118-2.18.154h-3.068a42.325 42.325 0 0 1-9.192-1.043 49.977 49.977 0 0 1-6.764-2.002 43.097 43.097 0 0 1-4.525-1.954c-1.493-.77-2.961-1.516-4.407-2.37a59.5 59.5 0 0 1-17.105-15.399 59.714 59.714 0 0 1-2.914-4.311 53.09 53.09 0 0 1-1.291-2.263 51.985 51.985 0 0 1-2.263-4.738 46.72 46.72 0 0 1 0-36.426 51.986 51.986 0 0 1 2.263-4.738 54.14 54.14 0 0 1 1.291-2.263 59.742 59.742 0 0 1 2.914-4.311 59.714 59.714 0 0 1 17.105-15.4 60.828 60.828 0 0 1 4.407-2.369q2.217-1 4.525-1.777a49.976 49.976 0 0 1 6.906-2.073 42.325 42.325 0 0 1 9.192-1.042h3.128c.722 0 1.445.094 2.155.154l1.043.106 1.019.119c1.8.237 3.553.557 5.271.96.853.2 1.694.426 2.523.663a51.186 51.186 0 0 1 11.846 5.176 59.645 59.645 0 0 1 4.395 2.89 74.485 74.485 0 0 1 8.386 7.108q2.038 1.99 4.063 4.193l.083-.13a159.395 159.395 0 0 1 11.064 13.942c5.437-8.576 13.658-21.464 16.584-25.74 1.185-1.718 2.37-3.46 3.66-5.212-13.54-16.513-29.827-30.23-51.587-36.082h-.154a89.397 89.397 0 0 0-3.187-.794l-.45-.107a92.565 92.565 0 0 0-3.151-.627l-.628-.119a80.578 80.578 0 0 0-3.743-.569h-.142a58.29 58.29 0 0 0-2.073-.236h-.391l-1.872-.166h-.568l-1.754-.119h-.675l-1.777-.07h-3.115c-46.447-.25-87.125 40.476-87.125 86.911s40.725 87.173 87.172 87.173h3.14l1.729-.071h.734l1.67-.095h.676l1.706-.154h.568l1.813-.213.414-.06 1.967-.272h.213a125.91 125.91 0 0 0 3.553-.628l.652-.142c.96-.201 1.907-.415 2.855-.64l.58-.142a86.66 86.66 0 0 0 3.009-.817l.237-.071c20.73-6.077 36.425-19.392 49.55-35.277-2.037-3.068-3.4-5.366-4.039-6.48z"/><path fill="url(#d)" d="M318.05 51.733v94.66a85.514 85.514 0 0 0-52.595-18.729h-3.115l-1.777.072-.7.047-1.752.118h-.569l-1.871.166h-.391c-.7.071-1.386.142-2.073.237h-.154c-1.256.154-2.5.355-3.732.569l-.628.118c-1.066.19-2.108.403-3.15.628l-.45.107c-30.35 6.858-50.333 28.808-66.822 52.82-.7 1.018-1.35 2.049-2.038 3.068-2.25 3.423-5.46 8.422-8.635 13.397-4.17 6.527-8.292 13.03-9.939 15.66l20.624 32.137s21.997 40.465 61.68 51.482l.237.07c.995.297 2.002.558 3.009.818l.58.142c.936.237 1.896.439 2.855.64l.652.142c1.184.225 2.369.439 3.553.628h.214l1.966.273.415.059 1.812.213h.569l1.705.154h.676l1.67.095h.734l1.73.07h3.139c54.703 0 86.355-30.964 87.149-85.063V51.733zm-52.595 215.403h-3.068c-.734 0-1.457-.095-2.18-.154l-.912-.083c-.568-.06-1.125-.13-1.682-.213a49.077 49.077 0 0 1-9.571-2.275 49.612 49.612 0 0 1-6.634-2.83 55.792 55.792 0 0 1-6.254-3.768 63.068 63.068 0 0 1-3.009-2.215 82.399 82.399 0 0 1-8.683-7.925l-.095.119c-1.255-1.303-2.487-2.69-3.731-4.11-.154-.167-.296-.356-.45-.534-.628-.722-1.256-1.445-1.884-2.215s-1.125-1.398-1.682-2.097-.888-1.101-1.338-1.682a184.467 184.467 0 0 1-6.053-8.292c-.7-.995-1.398-2.025-2.109-3.056-.379-.569-.77-1.184-1.185-1.73-.675-1.018-1.362-2.013-2.049-3.056l-.355-.545c-1.185-1.812-2.37-3.684-3.649-5.603q2.95-4.608 5.817-8.86c1.907-2.831 3.79-5.556 5.662-8.138s3.72-5.046 5.591-7.38 3.72-4.525 5.603-6.586q2.026-2.203 4.063-4.194c1.374-1.338 2.748-2.594 4.158-3.778s2.807-2.287 4.252-3.329a57.594 57.594 0 0 1 7.748-4.62c.331-.166.663-.367 1.006-.533l.226-.118c1.41-.652 2.843-1.185 4.3-1.73l.485-.201c.273-.083.557-.142.83-.237a44.943 44.943 0 0 1 3.34-.948l1.374-.343a60.798 60.798 0 0 1 4.738-.841l1.019-.119 1.042-.106c.711 0 1.434-.119 2.156-.154h3.128a42.431 42.431 0 0 1 4.572.26 48.011 48.011 0 0 1 6.93 1.35c1.54.427 3.08.925 4.596 1.505a48.724 48.724 0 0 1 4.525 1.955c1.493.722 2.961 1.516 4.407 2.369s2.866 1.8 4.24 2.784 2.725 2.049 4.028 3.174a58.459 58.459 0 0 1 8.837 9.477 59.73 59.73 0 0 1 2.914 4.312 51.067 51.067 0 0 1 5.318 11.916 47.38 47.38 0 0 1 1.185 5.165 45.567 45.567 0 0 1 .71 8.09c.072 35.964-16.062 52.122-52.227 52.122z"/></svg> <!-- ending partial cdf_logo.html.haml -> </button> <!- ending partial dropdown.html.haml -> <div class="dropdown-menu"> <a class="dropdown-item feature" href="https://cd.foundation/"> What is CDF? </a> <a class="dropdown-item feature" href="https://jenkins-x.io/"> Jenkins X </a> <a class="dropdown-item feature" href="https://cloud.google.com/tekton/"> Tekton </a> <a class="dropdown-item feature" href="https://www.spinnaker.io/"> Spinnaker </a> </div> </li> </ul> <ul class="nav navbar-nav ml-auto"> <li class="nav-item"> <a class="nav-link" href="https://jenkins.io/node"> Blog </a> </li> <li class="nav-item dropdown"> <!- starting partial dropdown.html.haml -> <button aria-expanded="false" aria-haspopup="true" class="nav-link dropdown-toggle" data-toggle="dropdown"> Documentation </button> <!- ending partial dropdown.html.haml -> <div class="dropdown-menu"> <a class="dropdown-item" href="https://jenkins.io/doc"> Use Jenkins </a> <a class="dropdown-item" href="https://jenkins.io/doc/developer"> Extend Jenkins </a> <span class="dropdown-item"> <strong> Use-cases </strong> </span> <a class="dropdown-item feature" href="https://jenkins.io/solutions/android"> Android </a> <a class="dropdown-item feature" href="https://jenkins.io/solutions/bitbucketserver"> Bitbucket Server </a> <a class="dropdown-item feature" href="https://jenkins.io/solutions/c"> C/C++ </a> <a class="dropdown-item feature" href="https://jenkins.io/solutions/docker"> Docker </a> <a class="dropdown-item feature" href="https://jenkins.io/solutions/embedded"> Embedded </a> <a class="dropdown-item feature" href="https://jenkins.io/solutions/github"> GitHub </a> <a class="dropdown-item feature" href="https://jenkins.io/solutions/java"> Java </a> <a class="dropdown-item feature" href="https://jenkins.io/solutions/php"> PHP </a> <a class="dropdown-item feature" href="https://jenkins.io/solutions/pipeline"> Continuous Delivery </a> <a class="dropdown-item feature" href="https://jenkins.io/solutions/python"> Python </a> <a class="dropdown-item feature" href="https://jenkins.io/solutions/ruby"> Ruby </a> </div> </li> <li class="active nav-item"> <a class="nav-link" href="https://plugins.jenkins.io/"> Plugins </a> </li> <li class="nav-item dropdown"> <!-- starting partial dropdown.html.haml -> <button aria-expanded="false" aria-haspopup="true" class="nav-link dropdown-toggle" data-toggle="dropdown"> Community </button> <!- ending partial dropdown.html.haml -> <div class="dropdown-menu"> <a class="dropdown-item feature" href="https://jenkins.io/participate"> Overview </a> <a class="dropdown-item feature" href="https://jenkins.io/chat" title="Chat with the rest of the Jenkins community on IRC"> Chat </a> <a class="dropdown-item feature" href="https://jenkins.io/projects/jam"> Meet </a> <a class="dropdown-item feature" href="https://jenkins.io/events"> Events </a> <a class="dropdown-item feature" href="https://issues.jenkins-ci.org/"> Issue Tracker </a> <a class="dropdown-item feature" href="https://jenkins.io/mailing-lists" title="Browse Jenkins mailing list archives and/or subscribe to lists"> Mailing Lists </a> <a class="dropdown-item feature" href="https://wiki.jenkins.io/"> Wiki </a> <a class="dropdown-item feature" href="https://accounts.jenkins.io/" title="Create/manage your account for accessing wiki, issue tracker, etc"> Account Management </a> <a class="dropdown-item feature" href="https://jenkins.io/sigs/"> <strong> Special Interest Groups </strong> </a> <a class="dropdown-item feature" href="https://jenkins.io/sigs/advocacy-and-outreach/"> Advocacy and Outreach </a> <a class="dropdown-item feature" href="https://jenkins.io/sigs/chinese-localization/"> Chinese Localization </a> <a class="dropdown-item feature" href="https://jenkins.io/sigs/cloud-native/"> Cloud Native </a> <a class="dropdown-item feature" href="https://jenkins.io/sigs/docs/"> Documentation </a> <a class="dropdown-item feature" href="https://jenkins.io/sigs/gsoc/"> Google Summer of Code </a> <a class="dropdown-item feature" href="https://jenkins.io/sigs/hw-and-eda/"> Hardware and EDA </a> <a class="dropdown-item feature" href="https://jenkins.io/sigs/pipeline-authoring/"> Pipeline Authoring </a> <a class="dropdown-item feature" href="https://jenkins.io/sigs/platform/"> Platform </a> <a class="dropdown-item feature" href="https://jenkins.io/sigs/ux/"> User Experience </a> </div> </li> <li class="dropdown nav-item"> <!-- starting partial dropdown.html.haml -> <button aria-expanded="false" aria-haspopup="true" class="nav-link dropdown-toggle" data-toggle="dropdown"> Subprojects </button> <!- ending partial dropdown.html.haml -> <div class="dropdown-menu"> <a class="dropdown-item feature" href="https://jenkins.io/projects/"> Overview </a> <a class="dropdown-item feature" href="https://jenkins.io/projects/blueocean/"> Blue Ocean </a> <a class="dropdown-item feature" href="https://jenkins.io/projects/evergreen/"> Evergreen </a> <a class="dropdown-item feature" href="https://jenkins.io/projects/gsoc/"> Google Summer of Code in Jenkins </a> <a class="dropdown-item feature" href="https://jenkins.io/projects/infrastructure/"> Infrastructure </a> <a class="dropdown-item feature" href="https://jenkins.io/projects/jam/"> Jenkins Area Meetups </a> <a class="dropdown-item feature" href="https://jenkins.io/projects/jcasc/"> Jenkins Configuration as Code </a> <a class="dropdown-item feature" href="https://jenkins.io/projects/remoting/"> Jenkins Remoting </a> </div> </li> <li class="nav-item dropdown"> <!- starting partial dropdown.html.haml -> <button aria-expanded="false" aria-haspopup="true" class="nav-link dropdown-toggle" data-toggle="dropdown"> About </button> <!- ending partial dropdown.html.haml -> <div class="dropdown-menu"> <a class="dropdown-item" href="https://jenkins.io/security"> Security </a> <a class="dropdown-item" href="https://jenkins.io/press"> Press </a> <a class="dropdown-item" href="https://jenkins.io/awards"> Awards </a> <a class="dropdown-item" href="https://jenkins.io/project/conduct"> Conduct </a> <a class="dropdown-item" href="https://jenkins.io/artwork"> Artwork </a> </div> </li> <li class="nav-item dropdown"> <!- starting partial dropdown.html.haml -> <button aria-expanded="false" aria-haspopup="true" class="nav-link dropdown-toggle" data-toggle="dropdown"> English </button> <!- ending partial dropdown.html.haml -> <div class="dropdown-menu"> <a class="dropdown-item" href="https://jenkins.io/zh"> 中文 Chinese </a> </div> </li> <li class="nav-item"> <a class="nav-link btn btn-outline-secondary" href="https://jenkins.io/download"> Download </a> </li> </ul> </div> </nav> <!- Spacing to make the fixed-top sticky navbar not occlude any content below it -> <div class="pt-4"> </div> <!- ending partial toptoolbar.html.haml -> <div id="grid-box"><div data-reactroot="" data-reactid="1" data-react-checksum="-1266184529"><div data-reactid="2"><section class="modalview" data-reactid="3"><div class="overlayStyles" style="position:fixed;display:block;top:0;left:0;width:100%;height:100%;z-index:99;background-color:rgba(0,0,0,0.3);" data-reactid="4"></div><div class="dialog" style="width:98%;display:block;height:98%;position:absolute;top:1%;left:1%;background-color:#fff;border-radius:2px;z-index:100;box-shadow:0 0 4px rgba(0,0,0,.14),0 4px 8px rgba(0,0,0,.28);" data-reactid="5"><div class="header" style="padding:25px 20px 25px 50px;background-color:#168BB9;color:#ffffff;font-size:18px;font-weight:normal;overflow-y:auto;max-height:20%;min-height:5%;" data-reactid="6"><a role="button" style="cursor:pointer;position:absolute;font-size:3em;color:#ffffff;right:20px;top:5px;" data-reactid="7">×</a><div class="back" data-reactid="8">Find plugins</div></div><div class="content" style="background-color:#FFF;color:#000;overflow-y:auto;max-height:90%;min-height:75%;padding:25px 20px 25px 50px;" data-reactid="9"><div data-reactid="10"><div class="row flex" data-reactid="11"><div class="col-md-9 main" data-reactid="12"><div class="container-fluid padded" data-reactid="13"><h1 class="title" data-reactid="14"><!- react-text: 15 ->user build vars<!- /react-text -><div class="badge-box" data-reactid="16"><!- react-empty: 17 -></div><span class="v" data-reactid="18">1.5</span><span class="sub" data-reactid="19"><!- react-text: 20 ->Minimum Jenkins requirement: <!- /react-text -><!- react-text: 21 ->1.609.1<!- /react-text -></span><span class="sub" data-reactid="22"><!- react-text: 23 ->ID: <!- /react-text -><!- react-text: 24 ->build-user-vars-plugin<!- /react-text -></span></h1><div class="row flex" data-reactid="25"><div class="col-md-4" data-reactid="26"><div data-reactid="27"><!- react-text: 28 ->Installs: <!- /react-text -><!- react-text: 29 ->20369<!- /react-text -></div><div data-reactid="30"><a href="https://github.com/jenkinsci/build-user-vars-plugin" data-reactid="31">GitHub →</a></div><div data-reactid="32"><!- react-text: 33 ->Last released: <!- /react-text -><span title="Friday, December 11th 2015" data-reactid="34">4 years ago</span></div></div><div class="col-md-4 maintainers" data-reactid="35"><h5 data-reactid="36">Maintainers</h5><div class="maintainer" data-reactid="37">Gavriil Konovalenko</div></div><div class="col-md-4 dependencies" data-reactid="38"><h5 data-reactid="39">Dependencies</h5><div class="required" data-reactid="40"><a href="/mailer" data-reactid="41"><!- react-text: 42 ->Mailer<!- /react-text -><!- react-text: 43 -> ≥ <!- /react-text -><!- react-text: 44 ->1.16<!- /react-text -><!- react-text: 45 -> <!- /react-text -><!- react-text: 46 -><!- /react-text -></a></div><div class="implied" data-reactid="47"><a href="/bouncycastle-api" data-reactid="48"><!- react-text: 49 ->bouncycastle API<!- /react-text -><!- react-text: 50 -> v.<!- /react-text -><!- react-text: 51 ->2.16.0<!- /react-text -><!- react-text: 52 -> <!- /react-text -><span class="req" data-reactid="53"><!- react-text: 54 ->(<!- /react-text -><!- react-text: 55 ->implied<!- /react-text -><!- react-text: 56 ->)<!- /react-text -></span></a><!- react-text: 57 -> <!- /react-text -><a href="#" data-reactid="58"><span class="req" data-reactid="59">(what's this?)</span></a></div><div class="implied" data-reactid="60"><a href="/command-launcher" data-reactid="61"><!- react-text: 62 ->Command Agent Launcher<!- /react-text -><!- react-text: 63 -> v.<!- /react-text -><!- react-text: 64 ->1.0<!- /react-text -><!- react-text: 65 -> <!- /react-text -><span class="req" data-reactid="66"><!- react-text: 67 ->(<!- /react-text -><!- react-text: 68 ->implied<!- /react-text -><!- react-text: 69 ->)<!- /react-text -></span></a><!- react-text: 70 -> <!- /react-text -><a href="#" data-reactid="71"><span class="req" data-reactid="72">(what's this?)</span></a></div><div class="implied" data-reactid="73"><a href="/jdk-tool" data-reactid="74"><!- react-text: 75 ->Oracle Java SE Development Kit Installer<!- /react-text -><!- react-text: 76 -> v.<!- /react-text -><!- react-text: 77 ->1.0<!- /react-text -><!- react-text: 78 -> <!- /react-text -><span class="req" data-reactid="79"><!- react-text: 80 ->(<!- /react-text -><!- react-text: 81 ->implied<!- /react-text -><!- react-text: 82 ->)<!- /react-text -></span></a><!- react-text: 83 -> <!- /react-text -><a href="#" data-reactid="84"><span class="req" data-reactid="85">(what's this?)</span></a></div><div class="implied" data-reactid="86"><a href="/jaxb" data-reactid="87"><!- react-text: 88 ->JAXB<!- /react-text -><!- react-text: 89 -> v.<!- /react-text -><!- react-text: 90 ->2.3.0<!- /react-text -><!- react-text: 91 -> <!- /react-text -><span class="req" data-reactid="92"><!- react-text: 93 ->(<!- /react-text -><!- react-text: 94 ->implied<!- /react-text -><!- react-text: 95 ->)<!- /react-text -></span></a><!- react-text: 96 -> <!- /react-text -><a href="#" data-reactid="97"><span class="req" data-reactid="98">(what's this?)</span></a></div><div class="implied" data-reactid="99"><a href="/trilead-api" data-reactid="100"><!- react-text: 101 ->Trilead API<!- /react-text -><!- react-text: 102 -> v.<!- /react-text -><!- react-text: 103 ->1.0.4<!- /react-text -><!- react-text: 104 -> <!- /react-text -><span class="req" data-reactid="105"><!- react-text: 106 ->(<!- /react-text -><!- react-text: 107 ->implied<!- /react-text -><!- react-text: 108 ->)<!- /react-text -></span></a><!- react-text: 109 -> <!- /react-text --><a href="#" data-reactid="110"><span class="req" data-reactid="111">(what's this?)</span></a></div></div></div><div class="content" data-reactid="112"><p></p> This plugin provides a set of environment variables that describe the user who started the build. <p></p> <h2 id="BuildUserVarsPlugin-Variablesprovided">Variables provided</h2> <p>This plugin defines the following environment variables to describe the user who started the build:</p> <div class="table-wrap"> <table class="wrapped confluenceTable"> <colgroup> <col> <col> </colgroup> <tbody> <tr> <th class="confluenceTh"><p>Variable</p></th> <th class="confluenceTh"><p>Description</p></th> </tr> <tr> <td class="confluenceTd"><p>BUILD_USER</p></td> <td class="confluenceTd"><p>Full name (first name + last name)</p></td> </tr> <tr> <td class="confluenceTd"><p>BUILD_USER_FIRST_NAME</p></td> <td class="confluenceTd"><p>First name</p></td> </tr> <tr> <td class="confluenceTd"><p>BUILD_USER_LAST_NAME</p></td> <td class="confluenceTd"><p>Last name</p></td> </tr> <tr> <td class="confluenceTd"><p>BUILD_USER_ID</p></td> <td class="confluenceTd"><p>Jenkins user ID</p></td> </tr> <tr> <td class="confluenceTd"><p>BUILD_USER_EMAIL</p></td> <td class="confluenceTd"><p>Email address</p></td> </tr> </tbody> </table> </div> <h2 id="BuildUserVarsPlugin-Usageexample">Usage example</h2> <p>Select <em>Set Jenkins user build variables</em> and reference the variables during the build:</p> <p><span class="confluence-embedded-file-wrapper image-center-wrapper"><img class="confluence-embedded-image confluence-content-image-border image-center" src="https://wiki.jenkins.io/download/attachments/59511381/build-user-vars-plugin-sample-usage.png?version=1&modificationDate=1329374467000&api=v2" data-image-src="/download/attachments/59511381/build-user-vars-plugin-sample-usage.png?version=1&modificationDate=1329374467000&api=v2" data-unresolved-comment-count="0" data-linked-resource-id="59900179" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="build-user-vars-plugin-sample-usage.png" data-base-url="https://wiki.jenkins.io" data-linked-resource-content-type="image/png" data-linked-resource-container-id="59511381" data-linked-resource-container-version="18"></span></p> <h2 id="BuildUserVarsPlugin-PipelineExamples">Pipeline Examples</h2> <div class="code panel pdl conf-macro output-block" style="border-width: 1px;" data-hasbody="true" data-macro-name="code"> <div class="codeHeader panelHeader pdl hide-border-bottom" style="border-bottom-width: 1px;"> <b class="code-title">Script</b> <span class="collapse-source expand-control" style="display:none;"><span class="expand-control-icon icon"> </span><span class="expand-control-text">Expand source</span></span> <span class="collapse-spinner-wrapper"> </span> </div> <div class="codeContent panelContent pdl hide-toolbar"> <pre class="syntaxhighlighter-pre" data-syntaxhighlighter-params="brush: groovy; gutter: true; theme: Confluence; collapse: true" data-theme="Confluence">node { wrap([$class: 'BuildUser'])
}</pre> </div> </div> <p><br></p> <h2 id="BuildUserVarsPlugin-Jenkinscorecompatibility">Jenkins core compatibility</h2> <p>This plugin requires Jenkins 1.609+ (since 1.5 version of plugin).</p> <h2 id="BuildUserVarsPlugin-Changelog">Changelog</h2> <h3 id="BuildUserVarsPlugin-1.5(Dec11,2015)">1.5 (Dec 11, 2015)</h3> <ul> <li><img class="emoticon emoticon-plus" src="https://wiki.jenkins.io/s/en_GB/8100/5084f018d64a97dc638ca9a178856f851ea353ff//images/icons/emoticons/add.svg" data-emoticon-name="plus" alt="(plus)"> - W<span style="color: rgb(34,34,34);">orkflow support</span></li> <li>Requires 1.609 or higher of Jenkins.</li> </ul> <h3 id="BuildUserVarsPlugin-1.4(Oct10,2014)">1.4 (Oct 10, 2014)</h3> <ul> <li><img class="emoticon emoticon-plus" src="https://wiki.jenkins.io/s/en_GB/8100/5084f018d64a97dc638ca9a178856f851ea353ff//images/icons/emoticons/add.svg" data-emoticon-name="plus" alt="(plus)"> - Support of BUILD_USER_EMAIL. Currently, only the explicit e-mail definition in user properties will work (see <a href="https://wiki.jenkins.io/display/JENKINS/Mailer">Mailer Plugin</a>)</li> <li><img class="emoticon emoticon-cross" src="https://wiki.jenkins.io/s/en_GB/8100/5084f018d64a97dc638ca9a178856f851ea353ff//images/icons/emoticons/error.svg" data-emoticon-name="cross" alt="(error)"> - NPE on non-existent upstream builds (<a href="https://issues.jenkins-ci.org/browse/JENKINS-22974">JENKINS-22974</a>)</li> </ul> <h3 id="BuildUserVarsPlugin-1.3(Apr12,2014)">1.3 (Apr 12, 2014)</h3> <ul> <li><img class="emoticon emoticon-cross" src="https://wiki.jenkins.io/s/en_GB/8100/5084f018d64a97dc638ca9a178856f851ea353ff//images/icons/emoticons/error.svg" data-emoticon-name="cross" alt="(error)"> User variables are not set to Maven3 build (<a href="https://issues.jenkins-ci.org/browse/JENKINS-19187">JENKINS-19187</a>)</li> </ul> <h3 id="BuildUserVarsPlugin-1.2">1.2</h3> <p>* JENKINS-21955 Set BUILD_USER to "SCMTrigger" if a build is run because of a source code change</p> <h3 id="BuildUserVarsPlugin-1.1">1.1</h3> <p>* Now works with Jenkins starting from 1.396 version.</p> <h3 id="BuildUserVarsPlugin-1.0">1.0</h3> <p>* Initial version</p></div></div></div><div class="col-md-3 gutter" data-reactid="113"><a href="https://updates.jenkins.io/download/plugins/build-user-vars-plugin" class="btn btn-secondary" data-reactid="114"><i class="icon-box" data-reactid="115"></i><span data-reactid="116">Archives</span><span class="v" data-reactid="117">Get past versions</span></a><div class="chart" data-reactid="118"><div style="padding:0px;" data-reactid="119"><canvas height="200" width="300" data-reactid="120"></canvas></div></div><h5 data-reactid="121">Links</h5><div data-reactid="122"><a href="https://github.com/jenkinsci/build-user-vars-plugin" data-reactid="123">GitHub</a></div><div data-reactid="124"><a href="https://javadoc.jenkins.io/plugin/build-user-vars-plugin" data-reactid="125">Javadoc</a></div><h5 data-reactid="126">Labels</h5><div class="empty" data-reactid="127">This plugin has no labels</div><br data-reactid="128"/><div class="update-link" data-reactid="129"><h5 data-reactid="130">Help us to improve this page!</h5><!-- react-text: 131 ->This content is served from the <!- /react-text -><a href="https://wiki.jenkins-ci.org/display/JENKINS/Build+User+Vars+Plugin" target="_wiki" data-reactid="132">Jenkins Wiki</a><!- react-text: 133 -> which is in the <!- /react-text -><a href="https://groups.google.com/forum/#!msg/jenkinsci-dev/lNmas8aBRrI/eL3u7A6qBwAJ" target="_blank" data-reactid="134">read-only state</a><!- react-text: 135 ->. We recommend moving the plugin documentation to GitHub, see the guidelines <!- /react-text -><a href="https://jenkins.io/blog/2019/10/21/plugin-docs-on-github/" target="_blank" data-reactid="136">here</a><!- react-text: 137 ->.<!- /react-text --></div></div></div></div></div></div></section></div></div></div><script type="text/javascript" src="/assets/js/main.js"></script> <script src="https://jenkins.io/assets/bower/anchor-js/anchor.min.js"></script> <script src="https://jenkins.io/assets/bower/tether/js/tether.min.js"></script> <script src="https://jenkins.io/assets/bower/bootstrap/js/bootstrap.min.js"></script> <footer id="footer"> <div class="container"> <div class="row"> <div class="col-md-4"> <div class="license-box"> <div id="creativecommons"> <a href="https://creativecommons.org/licenses/by-sa/4.0/"> <p> <img alt="Creative Commons Attribution-ShareAlike license" src="https://licensebuttons.net/l/by-sa/4.0/88x31.png"> </p> </a> <p> The content driving this site is licensed under the Creative Commons Attribution-ShareAlike 4.0 license. </p> <p> UI <a href="https://github.com/jenkins-infra/plugin-site/commit/c2c50cf">c2c50cf</a> / API <a href="https://github.com/jenkins-infra/plugin-site-api/commit/"></a> </p> </div> </div> </div> <div class="links col-md-8"> <div class="container"> <div class="row"> <div class="area col-md-3"> <div class="div-mar"> <h5>Resources</h5> <ul class="resources"> <li> <a href="https://jenkins.io/download"> Downloads </a> </li> <li> <a href="https://jenkins.io/node"> Blog </a> </li> <li> <a href="https://jenkins.io/doc"> Documentation </a> </li> <li> <a href="https://plugins.jenkins.io/"> Plugins </a> </li> <li> <a href="https://jenkins.io/security"> Security </a> </li> <li> <a href="https://jenkins.io/participate"> Contributing </a> </li> </ul> </div> </div> <div class="area col-md-3"> <div class="div-mar"> <h5>Project</h5> <ul class="project"> <li> <a href="https://jenkins.io/project"> Structure and governance </a> </li> <li> <a href="https://issues.jenkins-ci.org"> Issue tracker </a> </li> <li> <a href="https://wiki.jenkins.io"> Wiki </a> </li> <li> <a href="https://github.com/jenkinsci"> GitHub </a> </li> <li> <a href="https://ci.jenkins.io"> Jenkins on Jenkins </a> </li> </ul> </div> </div> <div class="area col-md-3"> <div class="div-mar"> <h5>Community</h5> <ul class="community"> <li> <a href="https://jenkins.io/events"> Events </a> </li> <li> <a href="https://jenkins.io/mailing-lists"> Mailing lists </a> </li> <li> <a href="https://jenkins.io/chat"> Chats </a> </li> <li> <a href="https://jenkins.io/sigs"> Special Interest Groups </a> </li> <li> <a href="https://twitter.com/jenkinsci"> Twitter </a> </li> <li> <a href="https://reddit.com/r/jenkinsci"> Reddit </a> </li> </ul> </div> </div> <div class="area col-md-3"> <div class="div-mar"> <h5>Other</h5> <ul class="other"> <li> <a href="https://jenkins.io/conduct"> Code of Conduct </a> </li> <li> <a href="https://jenkins.io/press"> Press information </a> </li> <li> <a href="https://jenkins.io/merchandise"> Merchandise </a> </li> <li> <a href="https://jenkins.io/artwork"> Artwork </a> </li> <li> <a href="https://jenkins.io/awards"> Awards </a> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </footer> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function()
,i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-4216293-5', 'auto'); ga('send', 'pageview'); ga('set', 'anonymizeIp', true); </script> <script> !function(d,s,id) { var js, fjs=d.getElementsByTagName(s)[0]; if (!d.getElementById(id))
{ js = d.createElement(s); js.id=id; js.src="//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js,fjs); }}(document,"script","twitter-wjs"); $(function(){ var $body = $(document.body); $(".nav-link.dropdown-toggle").on("mousedown", function()
{ $body.addClass("no-outline"); }) $body.on("keydown", function()
{ $body.removeClass("no-outline"); }) }
After rebooting jenkins server yet again we do not see this issue anymore ,hence closing this.Will re-open if we encounter this issue.
Thanks
Anish
anishpk, next time, perhaps submit the multi-message log as an attachment; much easier to read that your posts.
Got the same JavaScript error while trying to navigate to Manage Plugins as mentioned on the screenshots. Restarted both jenkins service and jenkins server multiple times. Current jenkins version is 2.222 .Also tried to with other versions but No luck. Has any concrete reason of this error been for previous issue ?
akafle the original submitter says that restarting the server resolved the issue. Since restarting the server does not resolve it for you, I assume you have a different issue at the root of the problem.
Can you duplicate the problem on another computer?
Can you duplicate the problem on the same computer when running Jenkins with a different JENKINS_HOME directory (see the wiki for JENKINS_HOME setting)?
I am basically installing jenkins on a VM created through proxmox. The current JENKINS_HOME configured on the UI is /va/lib/jenkins and as you suggested I tried export JENKINS_HOME=/.jenkins and moved everything from /var/lib/jenkins to /.jenkins directory in my VM and tried restarting the jenkins.
But i get following errors. Is there any other way to change JENKINS_HOME or why is it still trying to reach /var/lib/jenkins ?
Setting the JENKINS_HOME environment variable before running Jenkins should be enough. I just confirmed with my environment that I can use:
$ jdir=tmp$$ $ mkdir $jdir $ wget http://mirrors.jenkins.io/war/latest/jenkins.war $ JENKINS_HOME=`pwd`/$jdir java -jar jenkins.war --httpPort=9090
That starts a Jenkins server that is using the "jdir" that I defined.
You may also want to check that you are sizing the virtual machine adequately.
markewaite Thank you ! It seems changing the JAVA_HOME directory is some sort of solution even though I don't understand how that makes difference .
Setting the JAVA_HOME to /.jenkins and running by executing java - jar jenkins.war worked but I am rather trying to run the jenkins as the service.
The war file is placed in /usr/share/jenkins and systemctl start jenkins or /etc/init.d/jenkins start basically starts the jenkins. However, doing so I am not able to change the JENKINS_HOME to /.jenkins by using export JENKINS_HOME=/.jenkins
That indicates that the contents of your JENKINS_HOME directory is the source of the problem. You don't need to change the JENKINS_HOME you use, just fix the contents of the default JENKINS_HOME directory
contd ....
"version":"1.2","total":13},
{"version":"1.2-SNAPSHOT (private)","total":1},
{"version":"1.3","total":91},
{"version":"1.4","total":606},
{"version":"1.5","total":19510},
{"version":"1.5-github-push-event","total":1},
{"version":"1.6-SNAPSHOT (private)","total":11},
{"version":"1.8-SNAPSHOT (private)","total":1}],"installationsPercentagePerVersion":[
{"version":"1.0","percentage":0.002269297538946819},
{"version":"1.1","percentage":0.04878989708735661},
{"version":"1.2","percentage":0.004916811334384774},
{"version":"1.2-SNAPSHOT (private)","percentage":0.0003782162564911365},
{"version":"1.3","percentage":0.034417679340693424},
{"version":"1.4","percentage":0.22919905143362873},
{"version":"1.5","percentage":7.378999164142074},
{"version":"1.5-github-push-event","percentage":0.0003782162564911365},
{"version":"1.6-SNAPSHOT (private)","percentage":0.004160378821402502},
{"version":"1.8-SNAPSHOT (private)","percentage":0.0003782162564911365}],"currentInstalls":20369,"trend":-130},"title":"user build vars","url":"http://updates.jenkins-ci.org/download/plugins/build-user-vars-plugin/1.5/build-user-vars-plugin.hpi","version":"1.5","securityWarnings":null,"wiki":{"content":"\x3cp>\x3c/p> This plugin provides a set of environment variables that describe the user who started the build.\n\x3cp>\x3c/p>\n\x3ch2 id=\"BuildUserVarsPlugin-Variablesprovided\">Variables provided\x3c/h2>\n\x3cp>This plugin defines the following environment variables to describe the user who started the build:\x3c/p>\n\x3cdiv class=\"table-wrap\">\n \x3ctable class=\"wrapped confluenceTable\">\n \x3ccolgroup>\n \x3ccol>\n \x3ccol>\n \x3c/colgroup>\n \x3ctbody>\n \x3ctr>\n \x3cth class=\"confluenceTh\">\x3cp>Variable\x3c/p>\x3c/th>\n \x3cth class=\"confluenceTh\">\x3cp>Description\x3c/p>\x3c/th>\n \x3c/tr>\n \x3ctr>\n \x3ctd class=\"confluenceTd\">\x3cp>BUILD_USER\x3c/p>\x3c/td>\n \x3ctd class=\"confluenceTd\">\x3cp>Full name (first name + last name)\x3c/p>\x3c/td>\n \x3c/tr>\n \x3ctr>\n \x3ctd class=\"confluenceTd\">\x3cp>BUILD_USER_FIRST_NAME\x3c/p>\x3c/td>\n \x3ctd class=\"confluenceTd\">\x3cp>First name\x3c/p>\x3c/td>\n \x3c/tr>\n \x3ctr>\n \x3ctd class=\"confluenceTd\">\x3cp>BUILD_USER_LAST_NAME\x3c/p>\x3c/td>\n \x3ctd class=\"confluenceTd\">\x3cp>Last name\x3c/p>\x3c/td>\n \x3c/tr>\n \x3ctr>\n \x3ctd class=\"confluenceTd\">\x3cp>BUILD_USER_ID\x3c/p>\x3c/td>\n \x3ctd class=\"confluenceTd\">\x3cp>Jenkins user ID\x3c/p>\x3c/td>\n \x3c/tr>\n \x3ctr>\n \x3ctd class=\"confluenceTd\">\x3cp>BUILD_USER_EMAIL\x3c/p>\x3c/td>\n \x3ctd class=\"confluenceTd\">\x3cp>Email address\x3c/p>\x3c/td>\n \x3c/tr>\n \x3c/tbody>\n \x3c/table>\n\x3c/div>\n\x3ch2 id=\"BuildUserVarsPlugin-Usageexample\">Usage example\x3c/h2>\n\x3cp>Select \x3cem>Set Jenkins user build variables\x3c/em> and reference the variables during the build:\x3c/p>\n\x3cp>\x3cspan class=\"confluence-embedded-file-wrapper image-center-wrapper\">\x3cimg class=\"confluence-embedded-image confluence-content-image-border image-center\" src=\"https://wiki.jenkins.io/download/attachments/59511381/build-user-vars-plugin-sample-usage.png?version=1&modificationDate=1329374467000&api=v2\" data-image-src=\"/download/attachments/59511381/build-user-vars-plugin-sample-usage.png?version=1&modificationDate=1329374467000&api=v2\" data-unresolved-comment-count=\"0\" data-linked-resource-id=\"59900179\" data-linked-resource-version=\"1\" data-linked-resource-type=\"attachment\" data-linked-resource-default-alias=\"build-user-vars-plugin-sample-usage.png\" data-base-url=\"https://wiki.jenkins.io\" data-linked-resource-content-type=\"image/png\" data-linked-resource-container-id=\"59511381\" data-linked-resource-container-version=\"18\">\x3c/span>\x3c/p>\n\x3ch2 id=\"BuildUserVarsPlugin-PipelineExamples\">Pipeline Examples\x3c/h2>\n\x3cdiv class=\"code panel pdl conf-macro output-block\" style=\"border-width: 1px;\" data-hasbody=\"true\" data-macro-name=\"code\"> \n \x3cdiv class=\"codeHeader panelHeader pdl hide-border-bottom\" style=\"border-bottom-width: 1px;\"> \n \x3cb class=\"code-title\">Script\x3c/b> \n \x3cspan class=\"collapse-source expand-control\" style=\"display:none;\">\x3cspan class=\"expand-control-icon icon\"> \x3c/span>\x3cspan class=\"expand-control-text\">Expand source\x3c/span>\x3c/span> \n \x3cspan class=\"collapse-spinner-wrapper\"> \x3c/span> \n \x3c/div> \n \x3cdiv class=\"codeContent panelContent pdl hide-toolbar\"> \n \x3cpre class=\"syntaxhighlighter-pre\" data-syntaxhighlighter-params=\"brush: groovy; gutter: true; theme: Confluence; collapse: true\" data-theme=\"Confluence\">node {\n wrap([$class: 'BuildUser'])
{\n def user = env.BUILD_USER_ID\n }\n}\x3c/pre> \n \x3c/div> \n\x3c/div>\n\x3cp>\x3cbr>\x3c/p>\n\x3ch2 id=\"BuildUserVarsPlugin-Jenkinscorecompatibility\">Jenkins core compatibility\x3c/h2>\n\x3cp>This plugin requires Jenkins 1.609+ (since 1.5 version of plugin).\x3c/p>\n\x3ch2 id=\"BuildUserVarsPlugin-Changelog\">Changelog\x3c/h2>\n\x3ch3 id=\"BuildUserVarsPlugin-1.5(Dec11,2015)\">1.5 (Dec 11, 2015)\x3c/h3>\n\x3cul>\n \x3cli>\x3cimg class=\"emoticon emoticon-plus\" src=\"https://wiki.jenkins.io/s/en_GB/8100/5084f018d64a97dc638ca9a178856f851ea353ff//images/icons/emoticons/add.svg\" data-emoticon-name=\"plus\" alt=\"(plus)\"> - W\x3cspan style=\"color: rgb(34,34,34);\">orkflow support\x3c/span>\x3c/li>\n \x3cli>Requires 1.609 or higher of Jenkins.\x3c/li>\n\x3c/ul>\n\x3ch3 id=\"BuildUserVarsPlugin-1.4(Oct10,2014)\">1.4 (Oct 10, 2014)\x3c/h3>\n\x3cul>\n \x3cli>\x3cimg class=\"emoticon emoticon-plus\" src=\"https://wiki.jenkins.io/s/en_GB/8100/5084f018d64a97dc638ca9a178856f851ea353ff//images/icons/emoticons/add.svg\" data-emoticon-name=\"plus\" alt=\"(plus)\"> - Support of BUILD_USER_EMAIL. Currently, only the explicit e-mail definition in user properties will work (see \x3ca href=\"https://wiki.jenkins.io/display/JENKINS/Mailer\">Mailer Plugin\x3c/a>)\x3c/li>\n \x3cli>\x3cimg class=\"emoticon emoticon-cross\" src=\"https://wiki.jenkins.io/s/en_GB/8100/5084f018d64a97dc638ca9a178856f851ea353ff//images/icons/emoticons/error.svg\" data-emoticon-name=\"cross\" alt=\"(error)\"> - NPE on non-existent upstream builds (\x3ca href=\"https://issues.jenkins-ci.org/browse/JENKINS-22974\">
{"commit":""}JENKINS-22974\x3c/a>)\x3c/li>\n\x3c/ul>\n\x3ch3 id=\"BuildUserVarsPlugin-1.3(Apr12,2014)\">1.3 (Apr 12, 2014)\x3c/h3>\n\x3cul>\n \x3cli>\x3cimg class=\"emoticon emoticon-cross\" src=\"https://wiki.jenkins.io/s/en_GB/8100/5084f018d64a97dc638ca9a178856f851ea353ff//images/icons/emoticons/error.svg\" data-emoticon-name=\"cross\" alt=\"(error)\"> User variables are not set to Maven3 build (\x3ca href=\"https://issues.jenkins-ci.org/browse/JENKINS-19187\">JENKINS-19187\x3c/a>)\x3c/li>\n\x3c/ul>\n\x3ch3 id=\"BuildUserVarsPlugin-1.2\">1.2\x3c/h3>\n\x3cp>*JENKINS-21955Set BUILD_USER to \"SCMTrigger\" if a build is run because of a source code change\x3c/p>\n\x3ch3 id=\"BuildUserVarsPlugin-1.1\">1.1\x3c/h3>\n\x3cp>* Now works with Jenkins starting from 1.396 version.\x3c/p>\n\x3ch3 id=\"BuildUserVarsPlugin-1.0\">1.0\x3c/h3>\n\x3cp>* Initial version\x3c/p>","url":"https://wiki.jenkins-ci.org/display/JENKINS/Build+User+Vars+Plugin"}},"plugins":[],"query":"","showFilter":false,"showResults":false,"sort":"relevance","total":0,"view":"Tiles"},"data":{"categories":[],"info":,"labels":[],"stats":