Commit a3ac7e9c authored by Harald Sitter's avatar Harald Sitter 🦄

add some demo code for what I think atomic containers would look like

parent 34427076
......@@ -2,6 +2,24 @@ env.DIST = 'xenial'
env.TYPE = 'user'
env.PWD_BIND = '/workspace'
// def in_container(body) {
// container_id = sh(script: "bin/container_start.rb", returnStdout: true).trim()
// try {
// def contain = { args ->
// env = args['env'] ? args['env'] : ''
// cmd = args['cmd']
// sh "echo '$env bin/contain.rb $cmd'"
// }
// body(contain)
// } finally {
// sh "bin/container_murder.rb"
// }
// }
//
// in_container { contain ->
// contain(cmd: "xxx")
// }
cleanNode('os-autoinst') {
try {
stage('tree[wget]') {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment