Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jenkinsfile: use tags for images #420

Merged
merged 2 commits into from
Jun 7, 2018
Merged

Conversation

julianoes
Copy link
Collaborator

This should prevent caching issues on Jenkins instances.

This should prevent caching issues on Jenkins instances.
@julianoes
Copy link
Collaborator Author

@dagar looks like I don't know groovy:

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

WorkflowScript: 3: Not a valid section definition: "def docker_ubuntu_1604 = 'dronecore/dronecore-ubuntu-16.04:2018-06-06'". Some extra configuration is required. @ line 3, column 3.

     def docker_ubuntu_1604 = 'dronecore/dronecore-ubuntu-16.04:2018-06-06'

     ^


WorkflowScript: 4: Not a valid section definition: "def docker_ubuntu_1804 = 'dronecore/dronecore-ubuntu-18.04:2018-06-06'". Some extra configuration is required. @ line 4, column 3.

     def docker_ubuntu_1804 = 'dronecore/dronecore-ubuntu-18.04:2018-06-06'

     ^


WorkflowScript: 5: Not a valid section definition: "def docker_fedora_27 = 'dronecore/dronecore-fedora-27:2018-06-06'". Some extra configuration is required. @ line 5, column 3.

     def docker_fedora_27 = 'dronecore/dronecore-fedora-27:2018-06-06'

     ^


WorkflowScript: 6: Not a valid section definition: "def docker_fedora_28 = 'dronecore/dronecore-fedora-28:2018-06-06'". Some extra configuration is required. @ line 6, column 3.

     def docker_fedora_28 = 'dronecore/dronecore-fedora-28:2018-06-06'

I would appreciate your help.

@dagar
Copy link
Member

dagar commented Jun 6, 2018

I also don't know groovy. We got away with this only in scripted portions of the PX4 Jenkinsfile. Notice the declarative jobs still use the image and tag directly.

Jenkins doesn't like defs outside of a stage, so we just have to add the
tags inline.
@julianoes
Copy link
Collaborator Author

Thanks @dagar I'll try without the variables, should be simple enough. Let's see if clang-format is there now.

@JonasVautherin JonasVautherin merged commit c218d75 into develop Jun 7, 2018
@JonasVautherin JonasVautherin deleted the fix-jenkins-clang-format branch June 7, 2018 09:59
rt-2pm2 pushed a commit to rt-2pm2/DronecodeSDK that referenced this pull request Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants