-
Bug
-
Resolution: Unresolved
-
Blocker
-
None
-
Production
Hi,
Jenkins Android build pipelines are failing with the below errors from the console log,
Jenkins Version is : Jenkins 2.319.2
[Pipeline] { (Clean project)[Pipeline] tool[Pipeline] envVarsForTool[Pipeline] withEnv[Pipeline] {[Pipeline] script[Pipeline] {[Pipeline] echoBuild is offline true[Pipeline] dirRunning in /softwares/jenkins/workspace/CD-MBE-ANDROID/Android[Pipeline]
[Pipeline] // dir
Jenkins file and complete log files are attached.
[JENKINS-69122] Android Build - Gradle build durable-b54ee4ac/script.sh: Operation not permitted)
Comment | [ Thank you for this information it is very helpful for me nice. {color:#c1c7d0}https://www.gm-socrates.com{color} ] |
Comment |
[ Hello, [~zabhishek]
For general issues, here are some steps you can take: Check Upgrade Notes: Review the Jenkins upgrade guide for any notes on version 2.440.x that may relate to your issue. Update Plugins: Ensure all plugins are updated to their latest versions, as this can often resolve compatibility issues. Review Configuration: Double-check your Jenkins configuration, especially if you’ve recently made changes. I hope it's helpful for you. Best Regard, diana658h [Official Site|https://www-floridablue.com] ] |
Comment |
[ enkins Android build pipelines are encountering an “Operation not permitted” error. Let’s troubleshoot this issue:
Permissions: The error message suggests that the Jenkins user doesn’t have permission to execute a shell script. Ensure that the Jenkins user has the necessary permissions to access the relevant directories and execute scripts. Check User Context: Confirm whether Jenkins is running as the correct user (e.g., “jenkins_admin”). If the script works fine in your terminal but fails in Jenkins, it might be related to user context. Directory Permissions: Verify that the directories involved in the build process (e.g., /softwares/jenkins/workspace/CD-MBE-ANDROID/Android) have the correct permissions. Make sure the Jenkins user can read, write, and execute in those directories. Shell Script Execution: Double-check the shell script (script.sh) permissions. Ensure it’s executable (chmod +x script.sh). Confirm that the script doesn’t rely on any environment variables or paths that Jenkins doesn’t have access to. Jenkins Configuration: Review your Jenkins configuration. Check if there are any restrictions or security settings that might cause this issue. Log Files: Examine the complete log files for additional details. Look for any other error messages or warnings. Remember to adjust the steps based on your specific setup. I hope this info is helpful to you. Best Regard, Gregory Chavez [mydestinycard|https://www.mydestiny-card.com] ] |
I am using 2.440.3 version jenkins and still facing this error. Can anybody please update.
Any fix or workaround available?