Problem with Jenkins running Robot Framework script - jenkins

I am trying to automate the execution of Robot Framework using Jenkins.
But when I run Jenkins I am receiving the error "Permission denied". You can see bellow the error's print screen.
Despite several attenpts Im not able to identify where this restriction is.
I have already include the Jenkins user as SUDO user, but the error is still there.
I also applied o CHMOD 777 /home/eduardo/.local/bin/robot but did not solve.
Can someone please tell me how I can identify where this restriction (Permission denied) is.
Thank in advance.

Related

Having issues with all ASK CLI commands not working

Every ASK CLI command that I try to run, whether in CMD or Powershell, aborts and provides me with this error:
[Error]: TypeError: Cannot convert undefined or null to object
I have tried many versions of Node and ASK CLI to no avail. I'm not sure if I'm being foolish as there's no other instances of anyone having this issue with ASK CLI but any help would be appreciated, thanks.
Image of Error Message

How to solve Build Failure in Jenkins

I'm facing an issue in scheduling a job in JENKINS.
Below the build statement and error which i got in JENKINS, Can anyone please help me to resolve it?
Started by user shreeshankari
Running as SYSTEM
BuildingInstalling C:\Users\Srisankari\.jenkins\tools\hudson.model.JDK\jdk-11.0.14\jdk.exe
[jdk-11.0.14] $ C:\Users\Srisankari\.jenkins\tools\hudson.model.JDK\jdk-11.0.14\jdk.exe /s ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress INSTALLDIR=C:\Users\Srisankari\.jenkins\tools\hudson.model.JDK\jdk-11.0.14 /L C:\Users\Srisankari\.jenkins\tools\hudson.model.JDK\install10470724292190900076log
Unknown error (0x2e4)
FATAL: Cannot run program "C:\Users\Srisankari\.jenkins\tools\hudson.model.JDK\jdk-11.0.14\jdk.exe" (in directory "C:\Users\Srisankari\.jenkins\tools\hudson.model.JDK\jdk-11.0.14"): CreateProcess error=740, The requested operation requires elevation
java.io.IOException: CreateProcess error=740, The requested operation requires elevation
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:487)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:154)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
Caused: java.io.IOException: Cannot run program "C:\Users\Srisankari\.jenkins\tools\hudson.model.JDK\jdk-11.0.14\jdk.exe" (in directory "C:\Users\Srisankari\.jenkins\tools\hudson.model.JDK\jdk-11.0.14"): CreateProcess error=740, The requested operation requires elevation
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at hudson.Proc$LocalProc.<init>(Proc.java:254)
at hudson.Proc$LocalProc.<init>(Proc.java:223)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:997)
at hudson.Launcher$ProcStarter.start(Launcher.java:509)
at hudson.Launcher$ProcStarter.join(Launcher.java:520)
at hudson.tools.JDKInstaller.install(JDKInstaller.java:283)
at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:157)
at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:70)
at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108)
at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:221)
at hudson.model.JDK.forNode(JDK.java:149)
at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:341)
at hudson.model.Run.getEnvironment(Run.java:2430)
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:952)
at hudson.model.AbstractBuild$AbstractBuildExecution.decideWorkspace(AbstractBuild.java:453)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:507)
at hudson.model.Run.execute(Run.java:1896)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:442)
Finished: FAILURE
According to your error message, you are trying to run jdk.exe /s ADDLOCAL="ToolsFeature" RE... but it requires elevated privileges to run. The simplest way around this issue is to run your Jenkins as a service with elevated privileges. The way to do this is outlined in this question.
On a different note, I'm not completely sure what is happening here but assuming that you are trying to install JDK. So it might make sense instead to install the JDK separately, and point Jenkins to it. This article has a good tutorial on it. Pay attention to point 3, which has the information you are looking for.

"./setup.sh: Permission denied" error

I came across this problem that I am not sure where it's pointing. I have tried looking various sample codes but nothing that matches my problem. If anyone can look into it I will appreciate. The error is:
/Users/TMK/Library/Developer/Xcode/DerivedData/Project-dfuciscypawvmsalewmxognechca/Build/Intermediates/Project.build/Debug-iphonesimulator/Mustage.build/Script-01D7EAEB1DA69C8000FF7607.sh: line 3: ./setup.sh: Permission denied
I guess it is seems like permission issue towards user.
When you trying to work with modified projects and scripts no neccessory of bin/sh any more.
Following are the steps to avoid this error.
Terminal
Go to your script
Run the command chmod 755 your_script_name.sh
Another Way is as below
Suppose myTODO is my project name
Try this chmod a+x "/Users/TMK/Desktop/Your_FolderName/oDesk/myTODO/MyTODO_iPho‌​ne/Pods/Pods-resourc‌​es.sh"
if you not containing some folder hierarchy please avoid it from the given path
Hope this help you

Having issue with installing this in my mac terminal

I cannnot figure out why it's giving me this result.
Warning: Failed to create the file /Users/myname/.bash_profile: Permission
Warning: denied
curl: (23) Failed writing body (0 != 1968)
When I enter the second step see in the link below.
Instructions provided here that I was given from a bootcamp I am learning to code from.
If some one could take the time out their day to please answer my question. I would gladly appreciated.
Try appending "sudo" in the beginning of the command.
If that does not work, attempt to edit permissions for the directory by using chmod.
Be careful with using 777, but if it is on your local device, it should not mean a whole lot.
Usage: sudo chmod XYZ /di/rec/tory
Replace XYZ with chmod settings.
Read this if you are in doubt.

how to setup appium for iOS simulator?

I was trying to setup appium for iOS automated testing, but I keep getting this error while running ./reset.sh
does anyone know how to fix the issue?
Running "setConfigVer:ios" (setConfigVer) task
Config file exists, updating it
{"git-sha":"1c004673dcc4a2af7357aff4be72a2da7f9f86bc","ios":{"version":"1.2.3"}}
Done, without errors.
* Installing ios-sim-locale
cp: build/ios-sim-locale: Permission denied
---- FAILURE: reset.sh exited with status 1 ----
Because it is a "Permission denied" error,
try: sudo ./reset.sh --ios ?
I found the issue, for some reason the build folder inside my repo, had the wrong permissions. I simply removed it (it's an empty folder) and mkdir a new one with the same name.

Resources