python - How can I run two docker machines in Jenkins to simulate ssh server and ssh client? -


i'm testing pipeline in ssh client talks many servers gather data them. test software spinning docker machine simulate ssh server. want automate testing in jenkins. how can spin docker ssh servers in jenkins don't act agents rather wait agent contact them ssh request? here's current jenkins pipeline below. dockerfile creates machine runs python script need create docker ssh server talk to.

pipeline {     agent { dockerfile true }     stages {         stage('checkout') {             steps {                 checkout([$class: 'gitscm', branches: [[name: '*/master']], dogeneratesubmoduleconfigurations: false, extensions: [], submodulecfg: [], userremoteconfigs: [[credentialsid: 'somecredentials', url: 'a git repo']]])             }         }         stage('run tests') {             steps {                 sh "python ./rsyncunittests.py"             }         }     }     post {         failure {             sendemail('foo@bar.org')         }         changed {             sendemail('foo@bar.org')         }     } } 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -