change agent

This commit is contained in:
oleg.vodyanov91@gmail.com 2026-01-25 00:34:28 +04:00
parent a2f6320818
commit da898badfd

View File

@ -1,13 +1,5 @@
pipeline { pipeline {
agent { agent { label = 'agent1' }
node {
label 'agent1'
}
docker {
image 'python:3.12-slim'
args '-u root'
}
}
environment { environment {
DOCKER_BUILDKIT = '1' DOCKER_BUILDKIT = '1'
IMAGE_NAME = 'registry.myinstalink.ru/docbot' IMAGE_NAME = 'registry.myinstalink.ru/docbot'
@ -17,6 +9,7 @@ pipeline {
steps { checkout scm } steps { checkout scm }
} }
stage('Lint/Test/Sec'){ stage('Lint/Test/Sec'){
agent { docker { image 'python:3.12-slim' args '-u root' } }
steps { steps {
sh ''' sh '''
apt-get update && apt-get install -y build-essential libpq-dev curl jq apt-get update && apt-get install -y build-essential libpq-dev curl jq