[INFO] [02:19:43] Starting 'build'...
[INFO] [02:19:43] Starting 'copy:fonts'...
[INFO] [02:19:43] Starting 'copy:common'...
[INFO] [02:19:43] Starting 'inject:vendor'...
[INFO] [02:19:43] Starting 'ngconstant:prod'...
[INFO] [02:19:43] Finished 'ngconstant:prod' after 107 ms
[INFO] [02:19:43] gulp-inject 1 files into vendor.scss.
[INFO] [02:19:43] gulp-inject 22 files into index.html.
[INFO] [02:19:43] Finished 'copy:common' after 183 ms
[INFO] [02:19:43] Finished 'inject:vendor' after 180 ms
[INFO] [02:19:43] Finished 'copy:fonts' after 211 ms
[INFO] [02:19:43] Starting 'copy'...
[INFO] [02:19:43] Finished 'copy' after 7.52 ??s
[INFO] [02:19:43] Starting 'inject:app'...
[INFO] [02:19:43] gulp-inject 137 files into index.html.
[INFO] [02:19:43] 'inject:app' errored after 260 ms
[INFO] [02:19:43] Error: EPERM: operation not permitted, chmod '/opt/atlassian/pipelines/agent/build/src/main/webapp/index.html'
[INFO] at Error (native)
[INFO] [02:19:43] 'build' errored after 474 ms
[INFO] [02:19:43] Error in plugin 'run-sequence(inject:app)'
[INFO] Message:
[INFO] EPERM: operation not permitted, chmod '/opt/atlassian/pipelines/agent/build/src/main/webapp/index.html'
[INFO] Details:
[INFO] errno: -1
[INFO] code: EPERM
[INFO] syscall: chmod
[INFO] path: /opt/atlassian/pipelines/agent/build/src/main/webapp/index.html
[INFO] Stack:
[INFO] Error: EPERM: operation not permitted, chmod '/opt/atlassian/pipelines/agent/build/src/main/webapp/index.html'
[INFO] at Error (native)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:43 min
[INFO] Finished at: 2018-03-26T02:19:43Z
[INFO] Final Memory: 41M/604M
Thanks for your feedback Jeroen. I am not executing chmod in my script. I am running gulp-inject , which probably is doing something. Is there any other alternative?
Just try updating your bitbucket-pipelines.yml script to look something like this:
step:
default:
- step:
script:
- chmod +rwx src/main/webapp/index.html
- gulp-inject
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
+ chmod +rwx src/main/webapp/index.html
chmod: changing permissions of 'src/main/webapp/index.html': Operation not permitted
customer docker image is probably using non-root user, is there a way we can default to root user when running the pipeline?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Balu,
Can you run 'whoami' at the start of your script to verify the user you're running as? It should be defaulting to root.
If it's not running as root, you can add the following to your yaml to run as root.
# The important stuff
image:
name: normal-image-you-use
run-as-user: 0
# Everything below doesn't matter.
pipelines:
default:
- step:
script:
- ./script
Thanks,
Pihl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
as your log output suggests:
[INFO] Error: EPERM: operation not permitted, chmod '/opt/atlassian/pipelines/agent/build/src/main/webapp/index.html'
Try 'chmod +rwx src/main/webapp/index.html'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.