Created
March 17, 2020 15:51
-
-
Save kuju63/51341237b80f52fdd29d9103bed3d21e to your computer and use it in GitHub Desktop.
Docker上のJenkinsからcontainer上でのテストを行う
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
jenkins: | |
image: jenkinsci/blueocean:latest | |
user: root | |
volumes: | |
- ./jenkins-data:/var/jenkins_home | |
- /var/run/docker.sock:/var/run/docker.sock | |
environment: | |
- JENKINS_OPTS="--prefix=/jenkins" | |
ports: | |
- 8080:8080 | |
- 50000:50000 | |
gitea: | |
image: gitea/gitea:latest | |
ports: | |
- 3000:3000 | |
environment: | |
- DISABLE_SSH=false | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent { docker 'python:3.6' } | |
stages { | |
stage('setup') { | |
steps { | |
sh 'pip install mkdocs' | |
} | |
} | |
stage('build') { | |
steps { | |
sh 'mkdocs build' | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment