Added the docker run cmd inside the Jenkins job. Things work alright now