Jenkins MR Jobs

hi community
i just finished the tasks Jenkins MR Jobs in level 4 jenkins
i curled the hhttp://stapp01:8080 and i got the response “Welcome to …”
so i thought that my task is coerrect
but in the confirmation of the task i got an error “- pipeline job ‘nginx-container’ is not configured to build and deploy the ‘nginx-app’ app.”
i redo the task a lot of time and nothing changed
this is my pipeline
pipeline {
agent any

stages {
    stage('Build') {
        steps {
            script {
                // Clone the repository and build the Docker image
                sh '''
                    ssh tony@stapp01 'git clone http://git.stratos.xfusioncorp.com/sarah/mr_job.git && cd mr_job/ && docker build -t stregi01.stratos.xfusioncorp.com:5000/nginx:latest .'
                '''
            }
        }
    }
    
    stage('Deploy') {
        steps {
            script {
                // Deploy the container
                sh '''
                    ssh tony@stapp01 'docker run -d -p 8080:80 --name nginx-app stregi01.stratos.xfusioncorp.com:5000/nginx:latest'
                '''
            }
        }
    }
}

}
i moved to tony@stapp01
i found the docker image also the docker ps
please i want to to fix this issue and continue all the tasks
i will be grateful

Also stucked overthere. it seems like they want us to setup httpd service for all app server

one solution:

my pipeline

pipeline {
agent { label ‘stapp01’ }

stages {
    stage('Build') {
        steps {
            // Clean workspace and clone repository
            sh 'rm -rf ./*'
            //git credentialsId: 'sarah', url: 'http://git.stratos.xfusioncorp.com/sarah/mr_job.git'
            sh '''
               git clone http://git.stratos.xfusioncorp.com/sarah/mr_job.git
               cd mr_job
               docker build -t nginx_lab:latest .
               docker tag nginx_lab:latest stregi01.stratos.xfusioncorp.com:5000/nginx:latest
               docker push stregi01.stratos.xfusioncorp.com:5000/nginx:latest
            '''
        }
    }

    stage('Deploy') {
        steps {
            // Stop and remove existing container if it exists
            sh 'docker stop nginx-app || true'
            sh 'docker rm nginx-app || true'

            sh 'docker run -d --name nginx-app -p 8080:80 stregi01.stratos.xfusioncorp.com:5000/nginx:latest'

        }
    }
}

}

add stapp01 as node with git, pipeline plug-in and sarah credentiel with id “sarah” …
make sure index.html is correctly push from dev to master branch