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

Building plugin no longer works since PR 138 #142

Open
afmsavage opened this issue Dec 16, 2022 · 1 comment
Open

Building plugin no longer works since PR 138 #142

afmsavage opened this issue Dec 16, 2022 · 1 comment

Comments

@afmsavage
Copy link

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
@Marcussafar
Copy link

Also experiencing the same issue with trying to build the plugin in:

# Install Kubernetes Plugin
RUN sudo apt-get update && \
    sudo apt-get install --no-install-recommends -y git gradle jq
RUN sudo 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

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

No branches or pull requests

2 participants