问题
I read in certain docker plugins, such as docker-slave-plugin, it shows there is support for compose but I do not understand how to implement it.
Has anyone used docker-compose in the Jenkins pipeline and how?
回答1:
The short answer appears to be no. It does not directly support compose.
I got around this by using the script{}
blocks in the Jenkinsfile to manually call docker-compose up
which worked fine.
回答2:
I installed docker and docker-compose on the Jenkins machine and run it withsh 'docker-compose up'
it is not a Jenkins plugin but it works.
来源:https://stackoverflow.com/questions/48995717/does-jenkins-support-docker-compose