Still trying to get jenkins to play nice with docker.

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2021-10-26 10:12:22 -04:00
parent a0de4bff88
commit f7327b4f9c
2 changed files with 16 additions and 6 deletions

12
Dockerfile-test Normal file
View File

@@ -0,0 +1,12 @@
FROM python:3.10-alpine3.14
USER root
RUN pip3 install -U pip
RUN pip3 install wheel nox nox_poetry poetry
COPY . /plex-playlist
WORKDIR /plex-playlist
RUN poetry install

10
Jenkinsfile vendored
View File

@@ -3,14 +3,12 @@ pipeline {
stages {
stage('Test') {
agent {
docker { image 'python:3.10-alpine3.14' }
docker {
dockerfile { filename 'Dockerfile-test' }
}
}
steps {
sh 'whoami'
sh 'pwd'
sh 'pip3 install -U pip'
sh 'pip3 install wheel nox nox_poetry poetry'
sh 'nox -x'
sh 'nox --version'
}
}
}