FORUMS
Remove All Ads from XDA

[Guide] How-to Automate Your ROM Build Process Using Jenkins - Setup Nightlies

n/a posts
Thanks Meter: 0
 
By AndroidSlave, Guest on 2nd October 2013, 06:40 PM
Thread Closed Email Thread
AndroidSlave
11th October 2013, 07:27 AM |#21  
Guest
Thanks Meter: 0
 
More
Quote:
Originally Posted by dschense

I am at work atm.. I will post everything when I have a little more time.. Next week I have much free time to use for setting up everything at all.. But maybe I can post some things like the build script tomorrow after work.
BTW. Big big the for helping me!

EDIT:

This is the rom-build.sj script:

http://pastebin.com/UzFFKqYM

EDIT2:

Now everything is clean.. i fetched my repo stuff and finished syncing.
Job is also clean.. any help for how to do next ?



Kaaaaaaaaatsching... Tapatalked!

I will look in the morning when I get to work. I'll get back to you asap.

Sent from my GT-N7000 using Tapatalk 2
AndroidSlave
11th October 2013, 08:00 AM |#22  
Guest
Thanks Meter: 0
 
More
Quote:
Originally Posted by dschense

Kaaaaaaaaatsching... Tapatalked!

Please also post your 'execute shell' Jenkins config section
I want to see a screenshot of that. I think that's where the issue is.
Sent from my GT-N7000 using Tapatalk 2
11th October 2013, 09:07 AM |#23  
dschense's Avatar
Senior Member
Thanks Meter: 140
 
More
Quote:
Originally Posted by AndroidSlave

Please also post your 'execute shell' Jenkins config section
I want to see a screenshot of that. I think that's where the issue is.
Sent from my GT-N7000 using Tapatalk 2

I put the build script (copy past) into my shell and changed some parameters. Screenshot is coming..

EDIT1:

The script I put inso the jenkins shell:

http://pastebin.com/BKcif2aZ


EDIT2:

The Screenshots











I hope this helps you to help me



Kaaaaaaaaatsching.... Tapatalked!
AndroidSlave
11th October 2013, 06:09 PM |#24  
Guest
Thanks Meter: 0
 
More
Quote:
Originally Posted by dschense

I put the build script (copy past) into my shell and changed some parameters. Screenshot is coming..

EDIT1:

The script I put inso the jenkins shell:

http://pastebin.com/BKcif2aZ


EDIT2:

The Screenshots











I hope this helps you to help me



Kaaaaaaaaatsching.... Tapatalked!

OK, so I'm not sure this will resolve your issue without us working through it a little more, but right off the bat you are doing something fundamentally on disagreement with my guide.
Do not paste the build script in your execute shell section in Jenkins. You just CALL it from Jenkins.

Your execute shell section should ONLY have something like this
Code:
#!/bin/bash
cd ~/var/lib/jenkins/ParanoidAndroidFolder
source rom-build.sh i9300
That's ALL your execute shell section should have. The execute shell section doesn't work properly with full scripts, that's why we care CALLING to your actual shell script from the folder.

Try that and get back to me, but that is STEP 1 to fixing this.

If this doesn't work, its because we can't call the script with the i9300 parameter from Jenkins. To fix that we will have to make another local (not Jenkins) script to call the ROM build script.

I can help you do all this. But first let me know if this gets the build any further.

If not, we will have Jenkins call a local shell script that runs the build script with the i9300 parameter separately

I know this gets complex, but you have to do this type of stuff to get Jenkins to work.

Then once we get all this done we can setup auto upload.


Sent from my GT-N7000 using Tapatalk 2
11th October 2013, 06:21 PM |#25  
dschense's Avatar
Senior Member
Thanks Meter: 140
 
More
The First Step did not fix the issue.. I took the build script now and changed the parameters inside to i9300.. With this I don't have to rund the script with parameters. Just run the script.. Everything works fine till the end.. But I get the same error every time.. I will post this error when I am back home.

Kaaaaaaaaatsching... Tapatalked!
AndroidSlave
11th October 2013, 06:48 PM |#26  
Guest
Thanks Meter: 0
 
More
Quote:
Originally Posted by dschense

The First Step did not fix the issue.. I took the build script now and changed the parameters inside to i9300.. With this I don't have to rund the script with parameters. Just run the script.. Everything works fine till the end.. But I get the same error every time.. I will post this error when I am back home.

Kaaaaaaaaatsching... Tapatalked!

ok...

if its getting hung up on something inside the P.A. script, we may have to copy that last segment of the P.A. script as an additional script, and do a separate execute shell function.

I know this is a pain in the butt, but jenkins is really really really finicky...

especially with something like PA that uses a build script, as opposed to just using "brunch" command

my build scripts are literally 10 lines... the PA script is long so leaves more room for error
AndroidSlave
11th October 2013, 07:08 PM |#27  
Guest
Thanks Meter: 0
 
More
I forgot:
also, is your error at a different place in the process than the original error you were getting before?
AndroidSlave
11th October 2013, 07:09 PM |#28  
Guest
Thanks Meter: 0
 
More
ddd
11th October 2013, 09:31 PM |#29  
dschense's Avatar
Senior Member
Thanks Meter: 140
 
More
It's the same error..

Kaaaaaaaaatsching... Tapatalked!
AndroidSlave
12th October 2013, 12:13 AM |#30  
Guest
Thanks Meter: 0
 
More
Quote:
Originally Posted by dschense

It's the same error..

Kaaaaaaaaatsching... Tapatalked!

OK. Post the console log when u can.

Sent from my GT-N7000 using Tapatalk 2
12th October 2013, 09:35 AM |#31  
dschense's Avatar
Senior Member
Thanks Meter: 140
 
More
Quote:
Originally Posted by AndroidSlave

OK. Post the console log when u can.

Okay mate, this is the log of my last build....

http://www.file-upload.net/download-8168867/log.html

everything seems to be good till the end:

error:

Code:
Running releasetool
/var/lib/jenkins/pa43-modded/out/target/product/i9300/pa_i9300-ota-eng.jenkins.zip doesn't exist!
make: *** [/var/lib/jenkins/pa43-modded/out/target/product/i9300/pa_i9300-ota-8.zip] Error 1
make: *** Deleting file `/var/lib/jenkins/pa43-modded/out/target/product/i9300/pa_i9300-ota-8.zip'

EDIT:

This is my rom-build.sh --- path: /var/lib/jenkins/pa43-modded/rom-build.sh chmod a+x

http://pastebin.com/tidVD6m0

I changed the path parameters and the default to i9300



EDIT2:

This is the jenkins shell input:

Code:
#!/bin/bash
cd ~/pa43-modded/
source rom-build.sh
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes