Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Oleg Nenashev
@oleg-nenashev
@/all We start the JCasC project meeting in 5 minutes. https://zoom.us/j/286266977 . Feel free to join, it is a public meeting
Since there is no one except me and @sladyn98 , we are just doing the Community Bridge project sync-up
Oleg Nenashev
@oleg-nenashev
https://www.youtube.com/watch?v=moe8Vq-QwmY for the meeting recording. Now rendering
Sladyn
@sladyn98
Just an reminder if anyone wants to join in the schema discussions/dev-tools project for jcasc , feel free to jump in here: https://gitter.im/jenkinsci/jcasc-devtools-project
Dan Williams
@deedubs
Did I read somewhere that JCasC had beta support for installing plugins?
Joseph Petersen
@jetersen
@deedubs outdated info it was removed as of v1.8
Dan Williams
@deedubs
@casz Thanks!
Dan Williams
@deedubs
yeah I'm using the later
but the former looks v. nice
Joseph Petersen
@jetersen
all thanks to gsoc project and @stopalopa :heart_eyes:
Dan Williams
@deedubs
It's cart and horse though since I need to install that plugin -_-
Joseph Petersen
@jetersen
it's not a plugin it's a jar file.
Once the project stabilizes the idea is to add it to the docker image.
Dan Williams
@deedubs
AH nice, that'll be huge! Go go @stopalopa !
Joseph Petersen
@jetersen
@deedubs this is how we use it atm
FROM jenkins/jenkins:2.176.2-alpine

ARG jenkins_home=/usr/share/jenkins/ref
ENV JAVA_OPTS="-Dhudson.model.DirectoryBrowserSupport.CSP=\"sandbox allow-same-origin allow-scripts; default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src blob: 'self';\" ${JAVA_OPTS}"

RUN echo $JENKINS_VERSION | tee \
    $jenkins_home/jenkins.install.UpgradeWizard.state \
    $jenkins_home/jenkins.install.InstallUtil.lastExecVersion

RUN curl -sSfL https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/plugin-management-parent-pom-0.1-alpha-10/jenkins-plugin-manager-0.1-alpha-10.jar > $jenkins_home/install-plugins.jar
# copy preinstalled plugins list
COPY --chown=jenkins plugins.txt $jenkins_home/

# plugin installation layer, plugins are redownloaded everytime when plugins.txt is changed
RUN mkdir -p $jenkins_home/plugins && \
    java -jar $jenkins_home/install-plugins.jar --plugin-file $jenkins_home/plugins.txt
properly should use a newer download :D
Dan Williams
@deedubs
On k8s I guess I could have an initContainer that had an install-plugins container
Joseph Petersen
@jetersen
Yup @deedubs :)
Natasha Stopa
@stopalopa
@deedubs You can find more information about the project here:
https://jenkins.io/projects/gsoc/2019/plugin-installation-manager-tool-cli/
or join the Gitter chat:
https://gitter.im/jenkinsci/plugin-installation-manager-cli-tool?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
I started school again this week so plan to keep working on things but won’t be able to commit full time anymore. We’re planning on releasing the first official version probably this week, although I got some feedback last week that I might also try to incorporate. Contributions are welcome. :)
Ewelina Wilkosz
@ewelinawilkosz
anyone ever configure CASC_JENKINS_CONFING as url to a FOLDER in a password protected repository? :)
Joseph Petersen
@jetersen
@ewelinawilkosz URL has to be to a file
For password we have jenkinsci/configuration-as-code-plugin#665 :sweat:
Ewelina Wilkosz
@ewelinawilkosz
right, I knew I was to hopeful :P
Joseph Petersen
@jetersen
My suggestion is to spin up a container as a proxy :P
Ewelina Wilkosz
@ewelinawilkosz
:D
Oleg Nenashev
@oleg-nenashev
ricardompcarvalho
@ricardompcarvalho
Hello all
Someone could help me here
WARNING: Unexpected exception occurred while performing reload-jcasc-configuration command.
io.jenkins.plugins.casc.ConfiguratorException: unclassified: error configuring 'unclassified' with class io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator configurator
        at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:670)
        at io.jenkins.plugins.casc.ConfigurationAsCode.checkWith(ConfigurationAsCode.java:702)
        at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:686)
        at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:585)
        at io.jenkins.plugins.casc.ConfigurationAsCode.configure(ConfigurationAsCode.java:280)
        at io.jenkins.plugins.casc.cli.ReloadJCascConfigurationCommand.run(ReloadJCascConfigurationCommand.java:29)
        at hudson.cli.CLICommand.main(CLICommand.java:251)
        at org.jenkinsci.main.modules.sshd.CLICommandAdapter$1.run(CLICommandAdapter.java:37)
        at org.jenkinsci.main.modules.sshd.AsynchronousCommand$1.run(AsynchronousCommand.java:112)
        at java.lang.Thread.run(Thread.java:748)
Caused by: io.jenkins.plugins.casc.ConfiguratorException: 'adminAddress' is deprecated
        at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:321)
        at io.jenkins.plugins.casc.BaseConfigurator.check(BaseConfigurator.java:288)
        at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:353)
        at io.jenkins.plugins.casc.BaseConfigurator.check(BaseConfigurator.java:288)
        at io.jenkins.plugins.casc.ConfigurationAsCode.lambda$checkWith$6(ConfigurationAsCode.java:702)
        at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:664)
        ... 9 more

Sep 02, 2019 10:43:01 AM org.apache.sshd.common.session.helpers.AbstractSession exceptionCaught
WARNING: exceptionCaught(ServerSessionImpl[admin@/127.0.0.1:34150])[state=Opened] IOException: Connection reset by peer
does anyone know what replaces adminaddress?
Daniel Estermann
@d.esterman_gitlab
@oleg-nenashev Hi Oleg, I still need support with that :point_up: August 27, 2019 1:41 PM
@ricardompcarvalho according to javadoc it is replaced by adminAddress in JenkinsLocationConfiguration, i.e.
unclassified:
  location:
    adminAddress: "..."
Sergio Teixeira
@sergioteixeiraptc
is it possible to create multi banch pipelines in jasc?
launch jenkins with multi branch pipelines alrdy defined?
ricardompcarvalho
@ricardompcarvalho
@d.esterman_gitlab I already have this setting.
unclassified:
            location:
                adminAddress: "..."
And show me that is deprecated
Sladyn
@sladyn98
@ricardompcarvalho @d.esterman_gitlab
@deprecated as of 1.4
         *      Use {@link JenkinsLocationConfiguration}
This PR seems to point to it being depricated see jenkinsci/mailer-plugin#39.
ricardompcarvalho
@ricardompcarvalho
@sladyn98 what do i use now instead of adminaddress?
Oleg Nenashev
@oleg-nenashev
@d.esterman_gitlab pinging me in GitHub is a bit more reliable
@d.esterman_gitlab Note that GitHub does not send notifications on force-pushes, so I did not know you changed something
Oleg Nenashev
@oleg-nenashev
@d.esterman_gitlab Replied in the PR. Basically, you just hit an issue with obsolete developer tooling in the plugin. It does not look to be maintained anymore. CC @omehegan
Oleg Nenashev
@oleg-nenashev
image.png
Plugin site documentation publishing is almost there
https://issues.jenkins-ci.org/browse/WEBSITE-639 looks to be the only missing thing
Oleg Nenashev
@oleg-nenashev
Daniel Estermann
@d.esterman_gitlab
Yey, documentation! :)))
Daniel Estermann
@d.esterman_gitlab
@oleg-nenashev when I start to bump plugins to newer versions to satisfy plugin dependencies, enforcer-plugin starts to get annoying :)
Daniel Estermann
@d.esterman_gitlab
@oleg-nenashev now I did a normal push, did you get now a notification?
Oleg Nenashev
@oleg-nenashev
@d.esterman_gitlab