Skip to content
Snippets Groups Projects

Fix s2i build pipeline: post-setup-actions.sh run only once

Merged Carina Antunes requested to merge fix-s2i into dev10.2-0-pack-fix

s2i jobs are finishing with

mv: can't rename '/tmp/colorbutton': Directory not empty
Connecting to download.ckeditor.com (173.199.183.188:443)
saving to 'panelbutton.zip'
panelbutton.zip 100% |********************************| 1484 0:00:00 ETA
'panelbutton.zip' saved
Archive: panelbutton.zip
inflating: panelbutton/plugin.js
mv: can't rename '/tmp/panelbutton': Directory not empty
Script scripts/post-setup-actions.sh handling the post-update-cmd event returned with error code 1
error: build error: building at STEP "RUN /usr/libexec/s2i/assemble": while running runtime: exit status 1

Upon inspection seems the scripts/post-setup-actions.sh were running 3x, and the outcome of the mv command is not determinist. It creates a folder and moves content if not found, a second run will move the folder inside the existing folder, a 3rd run will result in the error above.

A quick fix is to check if they already created one of the needed folders; the permanent fix I suggest is to remove the action from post update.

Edited by Carina Antunes

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Carina Antunes resolved all threads

    resolved all threads

  • Carina Antunes added 1 commit

    added 1 commit

    • 7e168623 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Tbc: clone created from web services portal are not copying field repositoryUrl

    Edited by Carina Antunes
  • Carina Antunes changed title from Fix s2i build pipeline: post-setup-actions.sh run only once to [WIP] Fix s2i build pipeline: post-setup-actions.sh run only once

    changed title from Fix s2i build pipeline: post-setup-actions.sh run only once to [WIP] Fix s2i build pipeline: post-setup-actions.sh run only once

  • Carina Antunes added 1 commit

    added 1 commit

    Compare with previous version

  • Carina Antunes changed the description

    changed the description

  • Carina Antunes resolved all threads

    resolved all threads

  • Carina Antunes added 1 commit

    added 1 commit

    • c22300e1 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Carina Antunes added 1 commit

    added 1 commit

    • 03215415 - Update post-setup-actions.sh

    Compare with previous version

  • Carina Antunes added 1 commit

    added 1 commit

    • bbe6471d - Update post-setup-actions.sh

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading