Still trying to get jenkins to play nice with docker.
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
12
Dockerfile-test
Normal file
12
Dockerfile-test
Normal 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
10
Jenkinsfile
vendored
@@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user