Skip to content

Building plugin no longer works since PR 138 #142

@afmsavage

Description

@afmsavage

We are getting the following error when trying to run gradle build for this plugin inside of the rundeckpro/enterprise Docker image. I tried both 4.7.0 and SNAPSHOT tags for this image and both fail. It seems to be an issue since this line https://github.com/rundeck-plugins/kubernetes/blob/master/build.gradle#L7 was updated in PR138 https://github.com/rundeck-plugins/kubernetes/pull/138/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7R7

Error:

#9 9.473
#9 9.473 FAILURE: Build failed with an exception.
#9 9.474
#9 9.474 * Where:
#9 9.474 Build file '/home/rundeck/kubernetes/build.gradle' line: 7
#9 9.474
#9 9.474 * What went wrong:
#9 9.474 An exception occurred applying plugin request [id: 'pl.allegro.tech.build.axion-release', version: '1.14.2']
#9 9.474 > Failed to apply plugin [id 'pl.allegro.tech.build.axion-release']
#9 9.474    > Could not create plugin of type 'ReleasePlugin'.
#9 9.475       > Class pl.allegro.tech.build.axion.release.ReleasePlugin is an abstract class.
#9 9.475
#9 9.475 * Try:
#9 9.475 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
#9 9.475
#9 9.476 * Get more help at https://help.gradle.org
#9 9.476
#9 9.476 BUILD FAILED in 8s
------
executor failed running [/bin/sh -c git clone https://github.com/rundeck-plugins/kubernetes &&     cd kubernetes && gradle build && pip3 install -r requirements.txt &&     cp build/libs/kubernetes-plugin-*.zip /home/rundeck/libext/ &&     cd .. && rm -rf kubernetes]: exit code: 1

Start of the Dockerfile up to the layer that it fails on

FROM rundeckpro/enterprise:SNAPSHOT
USER root
ARG RUNDECK_CLI_VERSION=2.0.3

# Install deps
RUN apt-get update && \
    apt-get install --no-install-recommends -y git gradle python3 python3-pip jq && \
    ln -s /usr/bin/python3 /usr/bin/python

# Install forked kubernetes plugin
RUN git clone https://github.com/rundeck-plugins/kubernetes && \
    cd kubernetes && gradle build && \
    cp build/libs/kubernetes-plugin-*.zip /home/rundeck/libext/ && \
    cd .. && rm -rf kubernetes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions