Despite seeing the image being built in my satpp02 server and despite the below script.
pipeline {
agent {
label ‘stapp02’
}
stages {
stage(‘Build’) {
steps {
// Clones the repository from Gitea
git credentialsId: ‘gitea-creds’, url: ‘http://git.stratos.xfusioncorp.com/sarah/web.git’
// Builds the Docker image using the Dockerfile
sh 'docker build -t stregi01.stratos.xfusioncorp.com:5000/nginx:latest .'
// Pushes the image to the private registry
sh 'docker push stregi01.stratos.xfusioncorp.com:5000/nginx:latest'
}
}
}
}