Giter VIP home page Giter VIP logo

Comments (5)

hhorak avatar hhorak commented on July 24, 2024

How the keep-alive could work: A simple solution would be to add sleep to the cleanup script:

$ keep_time=$(echo "${ghprbCommentBody}" | grep -o '\[keep-machine[^]]*\]' | sed -e 's/\[keep-machine:\([^]]*\)\]/\1/')
[ -n "${keep_time}" ] && echo "Keeping the machine $IP alive for ${keep_time}" && sleep "${keep_time}"

Of course this can be enhanced by sending a github comment, tagging the person who added that comment etc...

from container-common-scripts.

praiskup avatar praiskup commented on July 24, 2024

Do you want to keep the VM allocated by resalloc alive, or the jenkins
machine? If the former, new resalloc feature will be shipped in v3.0;
you could put the machine into sandbox by --sandbox ... and anyone
(perhaps person doing the debugging) could re-take the machine with
the same --sandbox option (within pre-configured time-limit).

from container-common-scripts.

praiskup avatar praiskup commented on July 24, 2024

the docs

from container-common-scripts.

hhorak avatar hhorak commented on July 24, 2024

@praiskup wow, that helps, thanks. The original idea was very simple -- the job would wait and thus block the chain (there is a limit of 4 parallel jobs I think) -- so doing it through resalloc would be much better approach.

from container-common-scripts.

phracek avatar phracek commented on July 24, 2024

This would be really awesome. I am a volunteer for testing. :)

from container-common-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.