diff --git a/Dockerfile.build b/Dockerfile.build new file mode 100644 index 0000000000..cc64e522d3 --- /dev/null +++ b/Dockerfile.build @@ -0,0 +1,15 @@ +FROM node:lts-bullseye-slim + +ARG GID +ARG UID +ARG UNAME + +ENV GID=${GID} +ENV UID=${UID} +ENV UNAME=${UNAME} + +RUN mkdir /home/$UNAME; exit 0 + +RUN groupadd -g $GID $UNAME; exit 0 +RUN useradd -r -u $UID -g $UNAME -d /home/$UNAME $UNAME; exit 0 +RUN chown $UNAME:$UNAME /home/$UNAME; exit 0 diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000000..93147e2163 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,36 @@ +pipeline { + agent { + dockerfile { + filename 'Dockerfile.build' + additionalBuildArgs '''\ + --build-arg GID=$(id -g) \ + --build-arg UID=$(id -u) \ + --build-arg UNAME=$(id -un) \ + ''' + } + } + stages { + stage('Build') { + steps { + script { + BUILD_TAG = "DEV-${env.BRANCH_NAME}-${env.GIT_BRANCH}-${params.BRANCH}" + echo "$BUILD_TAG" + } + // sh 'npm config get cache' + // sh 'npm install' + } + } + // stage('Test') { + // steps { + // sh './jenkins/scripts/test.sh' + // } + // } + // stage('Deliver') { + // steps { + // sh './jenkins/scripts/deliver.sh' + // input message: 'Finished using the web site? (Click "Proceed" to continue)' + // sh './jenkins/scripts/kill.sh' + // } + // } + } +} \ No newline at end of file