i have an issue that Jenkins can't file location after build the apk. Even though i already set the file location in the right place see the picture. Can you help me?
write full path your .apk
this error is occured it can't found your file
Related
Jenkins script in the cache gives the following error
C:\Users\svcBICM\AppData\Local\Temp\jenkins6041485005934862737.sh:
line 16: C:\Program: No such file or directory
I am running the above in Windows. The previous node path was is c:\root\nodejs which was working and the current path is in c:\Program Files\ .
So I am getting the following error since maybe the jenkins is taking c:\Program as one string and Files\ as another one. Is there any way to fix this? The above jenkins script is not created by me , but you can say its auto-generated and not available to view when i go to the location.
Any help would be appreciated.
As Rohit already said, you can fix the issue just by using double quotes: "c:\Program Files\".
I need to change the location of log files of jenkins outside of jenkins home(installation) directory. I checked in jenkins.xml file but did not found any parameter to set.
Gone through some articles but they suggest to create symlinks.
Please let suggest if anyone already did it.
You can change the log location by changing the default location for the logs in %JENKINS_HOME%/jenkins.xml. By default the logs get stored at %JENKINS_HOME%/jenkins.out and %JENKINS_HOME%/jenkins.err.
I try to upload file to my jenkins machine.
I try to use the File Parameter option, and put in the File location line:/opt/myFolder.
I wish that if I'll choose a.txt file from my local machine, then it will be uploaded to /opt/myFolder/a.txt.
But it gives me an error: FATAL: /opt/myFolder (Is a directory)
How can I fix it?
See my answer here, How to upload a .xlsx file to jenkins job. Basically the name you enter in the File Parameter setting will be the name of the file, so in your case you have set File location to be /opt/myFolder, however it should be the actual file location, so /opt/myFolder/a.txt. This do however mean that the file will have the same name each time.
And as Christopher Orr points out in the comments, the file location should be a relative URL so that it is loaded into the workspace, that way it won't hinder you from running jobs in parallel and on different machines.
I am trying to package a JavaFX application using NetBeans & Inno setup. I have placed the custom .iss file and the images under Sample/package/windows folder. Ant CLASSPATH is also updated.
When I an trying to build the project, the compiler picks up the custom .iss file, but throws a file not found error.
Reading file (WizardImageFile)
File: C:\Users\Me\AppData\Local\Temp\build3064710805837836647.fxbundler\imageswin-app.image\Sample.bmp
Error on line 34 in C:\Users\Me\AppData\Local\Temp\build3064710805837836647.fxbundler\images\win-app.image\Sample.iss: Could not read "C:\Users\Me\AppData\Local\Temp\build3064710805837836647.fxbundler\images\win-app.image\Sample.bmp".
Error: The system cannot find the file specified.
Compile aborted.
Sample.bmp file is present under Sample/package/windows
I figured out the problem here. The custom iss file should have the absolute path of the image file.
I just recently updated to the new version of forge, did not change anything on my setting and when I went to build my app I got an error that said it could not find the file..
so I made the copy of aapt file and put it in a directory where trigger said it was looking (the docs said trigger.io should have moved this file for me already but Im guessing it did not)
After I moved this file and ran the build again it looked like it found the file but now I get [Error 5] Access is denied.
I have checked the permissions on the folder as I am the admin and I have full permissions and I have launched trigger as an administrator and still nothing.
Thanks.
So again from what I can tell this is a problem with the python script that calls aapt.
When you look at the script it points only to aapt, this means its looking for a directory and not the aapt.exe file itself so the first thing that happens is
1) forge says it cant find the aapt directory, this is why you are getting the error message "cant find aapt tool"
2) by adding the directory you would get the access denied because then the script is trying to run all these commands on just the directory (this was the problem I ran into), by making the change below you do not need to create a directory, just leave everything how it is but add the exe and it should work
After doing some testing I found that by adding .exe to the pythong script in android_tasks.py the build was able to run successfully
if you look on line 35 of android_tasks.py and change 'appt' to 'appt.exe' it should build for you
this is what it looks like for me
path.join(sdk, 'build-tools', '*','aapt.exe')
Hope this helps