yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] :
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

#!/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.
[Miscellaneous Android Development] 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!
[Miscellaneous Android Development] :
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
[Miscellaneous Android Development] :
I forgot:

also, is your error at a different place in the process than the original error you were getting before?
[Miscellaneous Android Development] :
ddd
[Miscellaneous Android Development] dschense:
It's the same error..

Kaaaaaaaaatsching... Tapatalked!
[Miscellaneous Android Development] :
OK. Post the console log when u can.
[Miscellaneous Android Development] dschense:
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:

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:

#!/bin/bash
cd ~/pa43-modded/
source rom-build.sh
[Miscellaneous Android Development] :
Hey I'll be back in town tomorrow and take a look at this.
[Miscellaneous Android Development] :
Is there a particular reason you need to use this script? It doesn't look like it does anything special...

I am wondering why you can't use a shell script to run a brunch i9300

I feel like one of the 'if' may be part of the issue.. Also build dir isn't clean

Its trying to move a file as part of the make script... I am wondering if brunch would avoid that

It looks like its trying to move the ota file but its getting confused because the files during the Jenkins process get put in a DyNamic workspace that is not that path

If we brunch and don't use the makefile it may avoid this

Also is Jenkins set to empty the workspace after every build?
[Miscellaneous Android Development] dschense:
Okay.. i did nano i9300.sh to working direktoy:

#!/bin/bash
#cd ~/omnirom/
#make i9300
cd ~/pa43-modded/out/target/product/
rm -rf i9300
cd ~/pa43-modded/
export PATH=~/bin:$PATH
export USE_CCACHE=1
repo sync -j16
source build/envsetup.sh && time brunch i9300

My input for the jenkins shell:

#!/bin/bash
cd ~/pa43-modded/
source i9300.sh

but after starting job, i get this :

Building in workspace /var/lib/jenkins/workspace/pa43-modded
[pa43-modded] $ /bin/bash /tmp/hudson3386003669716487767.sh
fatal: duplicate project TheMuppets/proprietary_vendor_samsung in /var/lib/jenkins/pa43-modded/.repo/manifest.xml
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including vendor/pa/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/pa/bash_completion/git.bash
including vendor/pa/bash_completion/repo.bash
[B]i9300.sh: line 10: brunch: command not found[/B]

real	0m0.001s
user	0m0.000s
sys	0m0.000s
Build step 'Execute shell' marked build as failure
Finished: FAILURE
[Miscellaneous Android Development] :
I think You need to add /vendor/pa/get-prebuilts

A make clobber at the beginning may help too instead of the rm -rf i9300

After your repo sync

Let's see what happens then
[Miscellaneous Android Development] dschense:
MY Log :

http://pastebin.com/7vz3193M

and what i put to the jenkins shell i9300.sh:

#!/bin/bash
cd ~/pa43/
make clobber
cd ~/pa43/
export PATH=~/bin:$PATH
export USE_CCACHE=1
repo sync
vendor/pa/get-prebuilts
source build/envsetup.sh && time brunch i9300

-----------------------------------------------------------------------

-----------------------------------------------------------------------

-----------------------------------------------------------------------

EDIT:

I think i know what the error was:

#!/bin/bash
cd ~/pa43/
make clobber
cd ~/pa43/
export PATH=~/bin:$PATH
export USE_CCACHE=1
#repo sync
source build/envsetup.sh
[B]lunch pa_i9300-userdebug && mka bacon[/B]

I changed brunch i9300 to:

[B]lunch pa_i9300-userdebug && mka bacon[/B]
[Miscellaneous Android Development] :
I want some bacon

Did it work? Or still seeing
[Miscellaneous Android Development] dschense:
NOOOOO ... :(

still the same Error:

Running releasetool
/var/lib/jenkins/pa43/out/target/product/i9300/pa_i9300-ota-eng.jenkins.zip doesn't exist!
make: *** [/var/lib/jenkins/pa43/out/target/product/i9300/pa_i9300-ota-24.zip] Error 1
make: *** Deleting file `/var/lib/jenkins/pa43/out/target/product/i9300/pa_i9300-ota-24.zip'
Build step 'Execute shell' marked build as failure
Finished: FAILURE

this was the script i used:

#!/bin/bash
cd ~/pa43/
make clobber
cd ~/pa43/
export PATH=~/bin:$PATH
export USE_CCACHE=1
#repo sync
source build/envsetup.sh
lunch pa_i9300-userdebug && mka bacon
[Miscellaneous Android Development] tigger2014:
Im working with dschense, what about if we were to move jenkins working directory which can be specified to where it would normally be on an android build, if thats an option where would it normally be say our sync is all in pa4.3

THanks
[Miscellaneous Android Development] :
I'm not sure what's going on with your guys' build. There are some settings to modify the working directory. I have never built PA.

I wish I could give more guidance... I feel like it has to do with that the script tries to move the ota file thinking its in the main directory when its in the working directory

[MENTION=1806623]beerbong[/MENTION] can you provide any guidance here?
[Miscellaneous Android Development] tigger2014:
would the working dir be under jenkins/workspace then the build name?
[Miscellaneous Android Development] :
you may want to take a look at this:

http://jenkins-ci.361315.n4.nabble.com/Changing-default-workspace-location-td3620027.html

there are some suggestions in there, including making a symlink ("ln -s")

my only concern is that the workspace is dynamic...

Why does PA have to rm -f the OTA maybe that can be removed from the makefile

also, it may be helpful to contact the PA team and ask how they overcome this hurdle with their official nightlies

this would be a good addition to the guide too for helping others
[Miscellaneous Android Development] Lynkz83:
it seems i also get the same error as above

/home/lynkz83/dirtyunicorns/out/target/product/jflteusc/du_jflteusc-ota-eng.jenkins.zip doesn't exist!
make: *** [bacon] Error 1
Build step 'Execute shell' marked build as failure
Finished: FAILURE

This is from my execute shell build step, i set jenkins up before seeing this guide, but its different from above setup but it works, til i get to above error,

#!/bin/bash
cd /home/lynkz83/dirtyunicorns
. build/envsetup.sh
brunch jflteusc
[Miscellaneous Android Development] :
Have you tried building in /var/lib/jenkins?

I think your issue is a little different. Also you don't have it setup per this guide at all... So its hard to begin troubleshooting.

You are supposed to repo init when logged in as jenkins and repo init in jenkins home dir, not your user acct dir
[Miscellaneous Android Development] Lynkz83:
no jenkin's has been an afterthought so ill have to go back and setup via this guide, i was hoping to build as it was, but i can go back and setup via this guide and see if i come across the same problem, the team that my source is coming from is redoing their branches so im hoping that i can get away with just copying my working directory over and then repo init
[Miscellaneous Android Development] Astrali:
Hi i had something similar.

it was an erro because in my filename i didnt had the username "jenkins" in it but the build number.

so in my case i changed the script that is building the rom.

i removed the $username and set a * (cause build number changes)

this way it will take the zip also when theres a small change in the name.

So go to the folder /var/lib/jenkins/pa43-modded/out/target/product/i9300/

and type ls to see how is the name of your zip file :)

good luck!
[Miscellaneous Android Development] :
Thanks [MENTION=5310214]Astrali[/MENTION] - I will link your post in the troubleshooting section when I have a little time.

Sent from Nexus 5 on Slimkat
[Miscellaneous Android Development] GuneetAtwal:
[MENTION=4703968]AndroidSlave[/MENTION] i followed your guide about Jenkins but the thing is i didn't got any Sign up page and i directly got Login page even if i haven't set any user-name and password

So can you help in resetting everything or there is a workaround?
[Miscellaneous Android Development] :
I think you may try modifying the config.XML to disable the user and it will let you create a new fresh login.

Please read this:

http://stackoverflow.com/questions/6988849/reset-jenkins-configuration-command-line

Sent from Omni Nexus 5
[Miscellaneous Android Development] GuneetAtwal:
Solved my problem by uninstalling and again installing btw please update your Guide as the link you have given for setting up security is not right instead use the one given on Jenkins

EDIT: Is there anyway that i can use the jenkins build server directly via Terminal like XDA Build Box ?
[Miscellaneous Android Development] :
Thanks for the info, do you have the link?
[Miscellaneous Android Development] IOIDroid:
F7BA23F
[Miscellaneous Android Development] thetitanium:
Guys, I'm unable to import git.... Any solutions?

Sent from my amazing Exynos Note 3.
[Miscellaneous Android Development] :
I'm not entirely sure what this has to do with Jenkins. Maybe you should post on a build support thread? Unless I am misunderstanding what you're asking.
[Miscellaneous Android Development] thetitanium:
I am really sorry..... I was intending to post my post on another forum. I mistakenly posted it here.

Sent from my amazing Exynos Note 3.
[Miscellaneous Android Development] thehacker911:
I have one Error.

fstab_version = (int) 2
mkbootimg_args = (str) --ramdisk_offset 0x02000000 --tags_offset 0x01e00000
multistage_support = (str) 1
ota_script_path = (str) ./build/tools/releasetools/ota_from_target_files
override_device = (str) bacon,A0001
recovery_api_version = (int) 2
recovery_size = (int) 16777216
selinux_fc = (str) /tmp/targetfiles-Dgqiim/BOOT/RAMDISK/file_contexts
system_size = (int) 1388314624
tool_extensions = (str) device/oppo/common
update_rename_support = (str) 1
use_set_metadata = (str) 1
userdata_size = (int) 13271448576
userdataextra_name = (str) 64G
userdataextra_size = (str) 59914792960
using device-specific extensions in device/oppo/common
using custom bootimage makefile device/oneplus/bacon/mkbootimg.mk...
using prebuilt recovery.img...
using custom bootimage makefile device/oneplus/bacon/mkbootimg.mk...
using prebuilt boot.img...
running: imgdiff -b /tmp/targetfiles-Dgqiim/SYSTEM/etc/recovery-resource.dat /tmp/tmpmvwrfv /tmp/tmpoiwTxF /tmp/tmp_joxUx
boot size (5761024) is 34.34% of limit (16777216)
warning radio-update: no radio image in input target_files; not flashing radio
running: openssl pkcs8 -in build/target/product/security/testkey.pk8 -inform DER -nocrypt
running: java -Xmx2048m -jar /var/lib/jenkins/aokp/out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmpIIGEck /var/lib/jenkins/aokp/out/target/product/bacon/aokp_bacon-ota-12.zip
done.
ln: failed to access ‘/var/lib/jenkins/aokp/out/target/product/bacon/aokp_bacon-ota-12.zip’: No such file or directory
make: *** [bacon] Error 1
[Miscellaneous Android Development] :
See if this post helps:

http://xdaforums.com/showthread.php?p=48454597
[Miscellaneous Android Development] thehacker911:
I have understood only that script I need to change? Must be somewhere in source .

Gesendet von meinem A0001 mit Tapatalk
[Miscellaneous Android Development] :
I'm sorry, I don't understand the language of your question.
[Miscellaneous Android Development] thehacker911:
I have it fixed :)

Gesendet von meinem A0001 mit Tapatalk
[Miscellaneous Android Development] :
Can you please explain how you fixed it to help other users?
[Miscellaneous Android Development] thehacker911:
I make this:

AOKP/build/core/Makefile

# OTA update package

name := $(TARGET_PRODUCT)

ifeq ($(TARGET_BUILD_TYPE),debug)

**name := $(name)_debug

endif

name := $(name)-ota-$(FILE_NAME_TAG)

Changes:

# OTA update package

name := $(TARGET_PRODUCT)

ifeq ($(TARGET_BUILD_TYPE),debug)

**name := $(name)_debug

endif

name := $(name)-ota-eng

Gesendet von meinem A0001 mit Tapatalk
[Miscellaneous Android Development] :
Thanks. I am going to add link to your post in the OP for reference when I have a chance.
[Miscellaneous Android Development] ChaosChris:
wow awesome guide, my build-server is running fine on centos 7 :)

but i have a question, i have my cm12-source in /cm/12/. When i compile for more then one device in this folder i get errors about git is crashing?

Can someone tell me how to compile more than one device at the same time in the same folder?

Thanks! :)
[Miscellaneous Android Development] :
You get these errors in general, or only with Jenkins?
[Miscellaneous Android Development] Vindicate:
Does this still work!? And can it work for the Sprint HTC One M8?
[Miscellaneous Android Development] :
Not sure what your asking. If you don't build roms already then this is useless to you.
[Miscellaneous Android Development] Vindicate:
Well I'm using Ubuntu and a bunch of other windows stuff but I want to use a little bit of the easier stuff. Would you mind messaging me?
[Miscellaneous Android Development] :
This is for setting up automation once you already have a build environment setup. If you don't have a build environment setup, there are lots of tutorials on that on xda. Once you get that going, this will allow you to do everything either automated or with the click of a button via the Web interface.

Setting up Jenkins alone is for more advanced users, there are alot of potential hickups.
[Miscellaneous Android Development] Vindicate:
Is there gonna be an update for CM12 or 11?
[Miscellaneous Android Development] :
Again, this is just a guide on how to setup Jenkins. Nothing impprtant or substantive regarding Jenkins has changed that I am aware of. Any scripting changes required to build a newer version of android should be obvious...
[Miscellaneous Android Development] schwabe93:
Hi i always get that permission denied, can you help me?
[Miscellaneous Android Development] dumtara:
^^^^ check the owner of the file. Since file inside /var folder, root might owner and henceforth cannot be modified from user other than root. Otherwise check the file permission and use chmod 777 to modify the permission if required.
[Miscellaneous Android Development] schwabe93:
Hey thanks, that was easy shame on me, my builds are run great but the i get one error: line 7: repo: command not found . but the repo command are install sucsesfully .
[Miscellaneous Android Development] dumtara:
export PATH=~/bin:$PATH
[Miscellaneous Android Development] schwabe93:
that are in the script, here
[Miscellaneous Android Development] dumtara:
Post line no 7 of that script
[Miscellaneous Android Development] schwabe93:
thats the whole script, there isnt a line 7
[Miscellaneous Android Development] :
Try to see if to adding cd ~/bliss/ && at the beginning of every line helps. It looks like the script may be losing the directory for some reason. Let me know if that makes any difference.
[Miscellaneous Android Development] schwabe93:
so ?
[Miscellaneous Android Development] dumtara:
Give following command as shown here & check for "repo"

$cd
$cd bin
$ls

This should list out "repo"

Then do this....

$cd
$cd bliss
$repo sync

then report here.
[Miscellaneous Android Development] Antonio Almeida Filho:
With this tool, I can build almost any ROM for LG Optimus L5?

Sorry my bad english :P

Enviado do meu LG-E610
[Miscellaneous Android Development] :
Its to automate building. You have this already know how to build a ROM, then you can use this to do it automatically on timed intervals.
[Miscellaneous Android Development] knoneNull:
i have question what will be the estimate hardisk size if i build on vps in one device rom and can you share some affordable hosting we can use
[Miscellaneous Android Development] :
Probably want at least 100gb with 4+ gb ram, and always an SSD HD 64 bit Ubuntu (if you are just building one ROM

My favorite host is weloveservers.net , they are very cheap and reliable for me for 2 years+ now. They often have good promos too.
[Miscellaneous Android Development] knoneNull:
Thanks for this advice
[Miscellaneous Android Development] maxprzemo:
If you use two or more partitions on your computer, for example:

/ ( partition for system, small partition, at my place 20 GB)

/home (partition for user data, big partition, at my place 200 GB)

Sources do not come into /var/lib/jenkins. Therefore, you need a few odd tricks.

I have a source in /home/maxprzemo/CM13

Jenkins working directory is /var/lib/jenkins/jobs/CM13/workspace

Make an empty folder with the name CM13 (rename the CM13 on your folder name)

sudo mkdir /var/lib/jenkins/jobs/CM13/workspace/CM13

mount in this folder sources (replace "maxprzemo" on the name of your user)

sudo mount -o bind /home/maxprzemo/CM13 /var/lib/jenkins/jobs/CM13/workspace/CM13

give permissions

sudo chown -R jenkins:jenkins /var/lib/jenkins/jobs/CM13/workspace/CM13

For automatic mounting at startup add to file etc/init.d/jenkins (replace "maxprzemo" on the name of your user)

mount -o bind /home/maxprzemo/CM13 /var/lib/jenkins/jobs/CM13/workspace/CM13

To work correctly "repo sync"add to your script .sh (replace "maxprzemo" on the name of your user)

export PATH=/home/maxprzemo/bin:/var/lib/jenkins/bin:$PATH

Done :)

It may be useful to someone.
[Miscellaneous Android Development] vanessaem:
Thread closed at OP's request.
[Galaxy Note 3 Q&A, Help & Troubleshooting] mancuk29:
I got my gorgeous note 3 this morning and when i updated the phone with all my settings google play started to install my apps

Half way through the phone rebooted and got stuck in a reboot cycle

I couldnt stop the cycle so ended up hard resetting it via volume up power and home (or was it volume down !)

I then found that non of my apps would install even manually i got error 920

I worked out why and removed the device from my play device list

I then installed app of my apps and rebooted the phone to make sure nothing was lurking in the memory after i had installed them

I got stuck in a cycle again and had to pull the batter

I replaced the battery and it carried on

I ended up taking my battery out for 10 mins and then it turned on normally

I tested again and once again it started the reboot cycle

I have spoken to clove technology who advised me to return the phone for a replacement which i have done

my question is has anyone had this issue ? any ideas what caused it ??

The phone was hot but not boiling hot .. i thought it might be a rogue app but it did it again on my next reset with no apps

Love the phone but dissapointed with the handset i got - fingers x the next one is perfect

Thanks in advance
[Galaxy Note 3 Q&A, Help & Troubleshooting] Fade777:
I had a boot loop aswell.. but only while connected to a USB cable.. unplugged it and all was fine..
[Galaxy Note 3 Q&A, Help & Troubleshooting] mancuk29:
My note 3 did it without the charger plugged in .

It was stock uk firmware completely untouched
[Galaxy Note 3 Q&A, Help & Troubleshooting] danushenko:
I have the same issue. I have found that it is because of conflict between some apps (app), micro sd and sim card. If I put off the micro sd, its ok. If i turn on "Flight mode", its ok too. And when i have wiped my device it was ok too (with sd inserted) untill i had installed my apps (I have more than 300 of them, so its very difficult to identify, which of them causes this problem).

Hope together we will solve this problem
[Galaxy Note 3 Q&A, Help & Troubleshooting] mancuk29:
It's weird wonder what's causing it .... I wonder if it's an app

I've a new phone coming on Friday hope I have better luck

Never known an app cause a boot cycle
[Galaxy Note 3 Q&A, Help & Troubleshooting] danushenko:
Its not just an app fault. I think its because of a conflict between app-microsd-sim. I have installed all my apps to internal memory, and wthout sd or when turning on flight mode before rebooting (with sd connected) - its ok. But when sd is connected, all apps are instaled and 3g is on - it causes rebbot cycle.
[Galaxy Note 3 Q&A, Help & Troubleshooting] mancuk29:
I'll test with installing all apps with no sad card

I'll report back

Thanks
[Galaxy Note 3 Q&A, Help & Troubleshooting] Nani:
I had the same issue and done a few tests.

What I can say is :

- when i used the phone for the first time there was no problem (SIM + SD CARD + 3G)

- when i updated the preinstalled apps (SIM + SD CARD + 3G) there was no problem

- once i installed all my apps reboot issue appeared.

I tried with or without SD CARD => No change

I tried with and with SD CARD but 3G off (Plane Mode) => No loop boot issue !

I thought maybe it was one of my apps so i restarted the phone in "Secured Mode", 3G on => reboot problem appeared again.

So this is a system (or maybe preinstalled and updated) app that's causing problem.

I think that only an updated firmware can resolve this.

One thing sure is that the booting time of this phone is really fast, about 10 sec after the Samsung logo.

So for now when i need to reboot i put the phone in plane mode first, expecting Samsung to correct this (I hope this is not an hardware issue or something fishy regarding the carrier zonning).

Anyway despite this issue i'am really glad to have this phone and haven't any regret buying it !
[Galaxy Note 3 Q&A, Help & Troubleshooting] henklbr:
Having the same problem...

Vodafone - SanDisk 64GB - apps internal mem