<https://lh3.googleusercontent.com/-r1ODAnQaXe0/WgLTpt5ClCI/AAAAAAAAAY4/Hyq81hW1snUWUbfqfjtOpU8qyUvYklnUwCLcBGAs/s1600/Capture.PNG>
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. Followed the work around as mentioned in previous mail chain.and able to 
execute below command without any warnings.
mvn -U install -s  <SETTINGS_FULL_PATH>
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 'script text box.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?


On Tuesday, November 7, 2017 at 8:19:11 PM UTC+5:30, Ravi H K wrote:
>
> Hi Victor,
>
> Thanks a lot.I don't see any warning when used below command.But i noticed 
> one thing that when i do unzip of *.hpi files few missing files are not 
> built and not part of *.hpi files.
>
> For instance:
> Output of the "unzip  jquery-detached.hpi " which is built from source.
>
> bash-4.2# unzip jquery-detached/target/jquery-detached.hpi
> Archive:  jquery-detached/target/jquery-detached.hpi
> replace META-INF/MANIFEST.MF? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
>   inflating: META-INF/MANIFEST.MF
>   inflating: WEB-INF/licenses.xml
>   inflating: WEB-INF/lib/jquery-detached.jar
>   inflating: 
> jsmodules/jqueryui1/images/ui-bg_diagonals-thick_18_b81900_40x40.png
>   inflating: 
> jsmodules/jqueryui1/images/ui-bg_diagonals-thick_20_666666_40x40.png
>   inflating: jsmodules/jqueryui1/images/ui-bg_flat_10_000000_40x100.png
>   inflating: jsmodules/jqueryui1/images/ui-bg_glass_100_f6f6f6_1x400.png
>   inflating: jsmodules/jqueryui1/images/ui-bg_glass_100_fdf5ce_1x400.png
>   inflating: jsmodules/jqueryui1/images/ui-bg_glass_65_ffffff_1x400.png
>   inflating: 
> jsmodules/jqueryui1/images/ui-bg_gloss-wave_35_f6a828_500x100.png
>   inflating: 
> jsmodules/jqueryui1/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
>   inflating: 
> jsmodules/jqueryui1/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
>   inflating: jsmodules/jqueryui1/images/ui-icons_222222_256x240.png
>   inflating: jsmodules/jqueryui1/images/ui-icons_228ef1_256x240.png
>   inflating: jsmodules/jqueryui1/images/ui-icons_ef8c08_256x240.png
>   inflating: jsmodules/jqueryui1/images/ui-icons_ffd27a_256x240.png
>   inflating: jsmodules/jqueryui1/images/ui-icons_ffffff_256x240.png
>   inflating: META-INF/maven/org.jenkins-ci.ui/jquery-detached/pom.xml
>   inflating: 
> META-INF/maven/org.jenkins-ci.ui/jquery-detached/pom.properties
>
> Output of the "unzip  jquery-detached.hpi " which is directly downloaded 
> from https://updates.jenkins-ci.org/download/plugins/jquery-detached/
>
> Archive:  jquery-detached.hpi
>    creating: META-INF/
>   inflating: META-INF/MANIFEST.MF
>    creating: jsmodules/
>    creating: jsmodules/jqueryui1/
>    creating: jsmodules/jqueryui1/images/
>    creating: WEB-INF/
>    creating: WEB-INF/lib/
>   inflating: jsmodules/jquery2.js
>   inflating: 
> jsmodules/jqueryui1/images/ui-bg_diagonals-thick_18_b81900_40x40.png
>   inflating: 
> jsmodules/jqueryui1/images/ui-bg_diagonals-thick_20_666666_40x40.png
>   inflating: jsmodules/jqueryui1/images/ui-bg_flat_10_000000_40x100.png
>   inflating: jsmodules/jqueryui1/images/ui-bg_glass_100_f6f6f6_1x400.png
>   inflating: jsmodules/jqueryui1/images/ui-bg_glass_100_fdf5ce_1x400.png
>   inflating: jsmodules/jqueryui1/images/ui-bg_glass_65_ffffff_1x400.png
>   inflating: 
> jsmodules/jqueryui1/images/ui-bg_gloss-wave_35_f6a828_500x100.png
>   inflating: 
> jsmodules/jqueryui1/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
>   inflating: 
> jsmodules/jqueryui1/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
>   inflating: jsmodules/jqueryui1/images/ui-icons_222222_256x240.png
>   inflating: jsmodules/jqueryui1/images/ui-icons_228ef1_256x240.png
>   inflating: jsmodules/jqueryui1/images/ui-icons_ef8c08_256x240.png
>   inflating: jsmodules/jqueryui1/images/ui-icons_ffd27a_256x240.png
>   inflating: jsmodules/jqueryui1/images/ui-icons_ffffff_256x240.png
>   inflating: jsmodules/jqueryui1/style.css
>   inflating: jsmodules/jqueryui1.js
>   inflating: WEB-INF/lib/jquery-detached.jar
>   inflating: WEB-INF/licenses.xml
>    creating: META-INF/maven/
>    creating: META-INF/maven/org.jenkins-ci.ui/
>    creating: META-INF/maven/org.jenkins-ci.ui/jquery-detached/
>   inflating: META-INF/maven/org.jenkins-ci.ui/jquery-detached/pom.xml
>   inflating: 
> META-INF/maven/org.jenkins-ci.ui/jquery-detached/pom.properties
>
> Missing files are:
> * jsmodules/jqueryui1.js*
> * jsmodules/jquery2.js*
> * jsmodules/jqueryui1/style.css*
>
> Any thoughts on this?
>
> On Tuesday, November 7, 2017 at 7:43:18 PM UTC+5:30, Victor Martinez wrote:
>>
>> what if you copy&paste that settings.xml somewhere else and run
>>
>> mvn -U clean package -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
>>
>> Cheers 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/b386168c-ab80-4379-9e8e-c5ea6ec7a645%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to