Tutorial https://jenkins.io/doc/tutorials/build-a-java-app-with-maven/ not working.

18 views
Skip to first unread message

SuprB

unread,
Nov 24, 2019, 7:34:52 AM11/24/19
to Jenkins Users
I copied and pasted the code and still i get an error.
Howto proceed ?


 Obtained Jenkinsfile from git /home/Github/simple-java-maven-app/
Running in Durability level: MAX_SURVIVABILITY
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 4: expecting '}', found '' @ line 4, column 35.
               image 'maven:3-alpine'
                                     ^

1 error

Victor Martinez

unread,
Nov 25, 2019, 11:35:31 AM11/25/19
to Jenkins Users
I just followed the same steps from https://jenkins.io/doc/tutorials/build-a-java-app-with-maven/ and I didn't get any errors though.

- Run Jenkins in Docker
- Configure default plugins
- Create pipeline project in Jenkins
- Use the initial Pipeline as a Jenkinsfile

If you replay the build, do you see any syntax errors?

In my case it looks like the below screenshot:


Screenshot 2019-11-25 at 16.34.38.png
Cheers

Bas Neve

unread,
Nov 25, 2019, 8:29:27 PM11/25/19
to jenkins...@googlegroups.com
Well i copied the code as a whole (not line by line)
and it works like a charm !

Graag ontvang ik een ontvangst- en leesbevestiging retour.

Met vriendelijke groet,

Bas Neve
bastia...@gmail.com
316 14 12 00 71












Op ma 25 nov. 2019 om 17:35 schreef Victor Martinez <victormar...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e267067f-65a9-4f40-b387-3cc7a0c0ba77%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages