Menu
Who Do Is
  • Home
  • What
  • How
  • Is
  • Can
  • Are
  • Does
  • Do
  • Why
  • Who
  • Where
  • Which
  • Which
  • Should
  • Will
  • When
  • What’s
  • Did
Who Do Is

[ANSWERED] android – Job failed using Gitlab

Posted on November 14, 2022

Solution 1 :

This could be related to the issues in GitLab with killing processes on Windows:

tl;dr the windows runner (current version is around ~13.6 with no fix yet) can’t kill the full tree of processes started in the job properly, so processes holding file locks are left around for the next job/pipeline to fail on when it attempts to clean up

  • https://gitlab.com/gitlab-org/gitlab-runner/-/issues/3185
  • https://gitlab.com/gitlab-org/gitlab-runner/-/issues/3121

I’ve had similar issues in the past and a workaround is to clean up troublesome directories in the job that makes them, rather than letting the git clean command clean them up in the next job.

One option:

debugTests:
  stage: test
  script:
    - cd MediaDrmCts
    - ./gradlew -Pci --console=plain :app:testDebug
  after_script:
    - if (Test-Path ./MediaDrmCts/app/build) { Remove-Item ./MediaDrmCts/app/build -Recurse -Force; }
...

Another option

If your builds aren’t sensitive to how clean the repo folder is, then you can try turning off the git clean -ffdx step in your .gitlab-ci.yml file:

...
variables:
  GIT_CLEAN_FLAGS: none
...

which will tell the GitLab runner not to attempt cleaning up the repository of extra files before each run.

Keep in mind that this may have some unintended consequences, such as the wrong files being left over from previous runs on other branches, so be wary, and have good tests!

Problem :

I have used the Gitlab for run the CI plan.

Problem sequence:

  1. Run the CI plan, with below yaml script, now CI getting passed

  2. Again run the CI plan, now CI getting failed with below error code

    warning: failed to remove MediaDrmCts/app/build/outputs/apk/debug/output.json: Invalid argument

Environment:
Gitlab runner in Windows PC
Shell

READ  [ANSWERED] How to sort SMS message in listview android
Powered by Inline Related Posts

Yaml Code:

assembleDebug:
  stage: build
  script:
    - echo 'start building...'
    - cd MediaDrmCts
    - ./gradlew clean assemble
  artifacts:
    paths:
      - MediaDrmCts/app/build/outputs/

debugTests:
  stage: test
  script:
    - cd MediaDrmCts
    - ./gradlew -Pci --console=plain :app:testDebug

Error Log:
error log

Please help us to resolve the issue?

Comments

Comment posted by VMS

Please guys, help me??

Recent Posts

  • How can I play with my cat without toys?
  • What is a bag pipe band called?
  • Are Honda Civics actually fast?
  • Are Yankee candles toxic?
  • How do I pair my Michael Kors smartwatch with my Android?

Recent Comments

No comments to show.

Archives

  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuántas
  • ¿Cuánto
  • ¿Que
  • ¿Quién
  • 90” and 108” so you may have to round up to the nearest size.
  • and delete any Spotify folders from it. Once this is done
  • Android
  • Are
  • At
  • Bei
  • blink
  • C'est
  • Can
  • carbs
  • Comment
  • Did
  • Do
  • Does
  • During
  • For
  • Has
  • How
  • In
  • Is
  • Ist
  • Kann
  • Können
  • nouveau
  • On
  • or 108 inches.2020-08-03
  • Où
  • owning
  • Pourquoi
  • Puis-je
  • Quand
  • Quante
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • spiritual
  • tap the downward-facing arrow on the top left. A downward-facing arrow will appear underneath each song in the album; they'll turn green as the download completes.2020-07-28
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welcher
  • Welches
  • Welke
  • Wer
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Whose
  • Why
  • Wie
  • Will
  • Wo
  • Woher
  • you will receive two curtains each with the same measurements of width 66"" (168cm) x drop 54""(137cm).
  • you'll see a green downward-facing arrow next to each song.2021-02-26
©2023 Who Do Is | Powered by SuperbThemes & WordPress