-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
bash-4.2# java -jar /usr/share/jenkins/jenkins.war --version
2.66
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z)
Maven home: /usr/local/bin/apache-maven-3.5.2
Java version: 1.8.0_121
JavaScript GUI Lib: ACE Editor bundle plugin - 1.1
JavaScript GUI Lib: Handlebars bundle plugin - 1.1.1
JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin - 1.2.1
JavaScript GUI Lib: Moment.js bundle plugin - 1.1.1bash-4.2# java -jar /usr/share/jenkins/jenkins.war --version 2.66 Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z) Maven home: /usr/local/bin/apache-maven-3.5.2 Java version: 1.8.0_121 JavaScript GUI Lib: ACE Editor bundle plugin - 1.1 JavaScript GUI Lib: Handlebars bundle plugin - 1.1.1 JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin - 1.2.1 JavaScript GUI Lib: Moment.js bundle plugin - 1.1.1
HI All,
My requirement is to build jenkins plugins binaries i.e ace-editor,handlebars,momentjs and jquery-detached from source code.and Install jenkins with these plugins.Note: Rest all plugins are built from source code and has been verified jenkins functionality.
In order to achieve this i followed below steps:
1. Downloaded latest js-lib source code from https://github.com/jenkinsci/js-libs
2. Used command "mvn -U clean install -s <SETTINGS_FULL_PATH>"
where <SETTINGS_FULL_PATH> is just the full path of the settings which its content is https://wiki.jenkins.io/display/JENKINS/Plugin+tutorial#Plugintutorial-SettingUpEnvironment
3. Later copied the *.hpi files from the target folder(For instant "jquery-detached/target/jquery-detached.hpi") for the ace-editor,handlebars,momentjs and jquery-detached. Replaced the *.hpi files into *.jpi format.
4. Built the jenkins with these plugins.
5. Jenkins is up and running successfully.But i login to jenkins UI in some pages "text box' is not appearing because of this am not able to enter any data into those text fields.
Issue observed in Login to jenkins UI > Click on 'New Item' > Enter some text "Enter an item name" field > select "Pipeline" > click on 'OK' button > Scroll down the page and observe 'Script' Text box is no more visible.Attached 'Capture.PNG' for your reference.
The root cause i found that,When we build these plugins from source code.Below files are not built as a part of *.hpi files
Missing files respective of plugins.
1. Jquery Detached.
jsmodules/jqueryui1.js
jsmodules/jquery2.js
jsmodules/jqueryui1/style.css
2. ace-editor:Below are missing files
jsmodules/
jsmodules/ace-editor-119.js
jsmodules/ace-editor-122.js
jsmodules/test.js
3. MomentSj
jsmodules/momentjs2.js
4. HandleBar
jsmodules/handlebars3.js
Is there any alternative ways to build these plugins?Or am i missing something here?
Tried with Maven version 3.3.9 and 3.2.5 as well.
It would be more helpful if some one suggest me on this to fix it.Or latest js-lib source code is not stable?