Skip to content
Snippets Groups Projects
Commit 669f4a5f authored by Thibault's avatar Thibault
Browse files

Pushing on repo

parent 8952b525
No related branches found
No related tags found
No related merge requests found
node{
def app
def registryProject='http://127.0.0.1:8083'
def registryProject='http://172.20.0.2:8083/repository/RegistryDocker/'
def image="${registryProject}:version-${env.BUILD_ID}"
stage('Clone') {
......@@ -30,6 +30,12 @@ node{
./clair-scanner --report="rapportClair" --ip="172.20.0.5" --clair="http://172.20.0.6:6060" debian:buster || exit 0
'''
}
stage('Push on repo nexus'){
docker.withRegistry(registryProject,'Jenkins-credential'){
app.push()
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment