Jenkins Build Images , Kodekloud Engineer >jenkins>level3>Jenkins Build Images

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'
        }
    }
}

}

So we can look at your pipeline uncorrupted, please paste it into a code block; if you’re not familiar with how to do this, you can find instructions here.

Hi Dont worry about this it worked for me , thank you