Your new job definition will be very similar to the manual-gate
job you created. It would be nice if you can copy the new job from the old one...
When you run the job it will show lots of output in the console window. Dig through the logs and you should find the problem.
When you fix your Jenkinsfile you'll need to push changes and that will trigger a new build.
Need more? Here's the solution.