jenkins-plugin | DEPRECATION NOTE : This plugin will only support | Continuous Deployment library

 by   openshift Java Version: Current License: Apache-2.0

kandi X-RAY | jenkins-plugin Summary

kandi X-RAY | jenkins-plugin Summary

jenkins-plugin is a Java library typically used in Devops, Continuous Deployment, Jenkin, Docker applications. jenkins-plugin has build file available, it has a Permissive License and it has low support. However jenkins-plugin has 17 bugs and it has 2 vulnerabilities. You can download it from GitHub.

DEPRECATION NOTE: This plugin will only support OpenShift versions up to v3.11. Any OpenShift versions after that will require use of the OpenShift Client Plugin for Jenkins. This project provides a series Jenkins plugin implementations that operate on Kubernetes based OpenShift. In summary they are a series of REST flows that interface with the OpenShift server via the exposed API. They minimally mimic the REST flows of common uses of the oc CLI command, but in several instances additional logic has been added to provide validation of the operations being performed. Their ultimate intent is to provide easy to use building blocks that simplify the construction of the projects, workflows, and pipelines in Jenkins that operate against OpenShift deployments, where allowing OpenShift interactions via Jenkins build steps, pipeline DSL, etc. gives those familiar with Jenkins, but new to OpenShift and the oc CLI, a better introductory experience. NOTE: This plugin does NOT require the oc binary be present. NOTE: This plugin currently does not intend to match feature to feature what is provided via oc, but rather expose and augment when possible (additional validations for example) OpenShift API REST endpoints, with which the oc client also leverages, typically used with CI/CD type flows. One notable example of an oc option that is not exposed in the plugin is the oc new-app command. This omission stems from the fact that there is no single OpenShift server side API for oc new-app, and there is a fair amount of client side logic involved. Rather than invest in porting that logic to the plugin, we currently recommend that if oc new-app functionality is desired in your Jenkins jobs, either use the OpenShift Jenkins image, where the oc binary is already provided and can be invoked from your Jenkins jobs, or if you are not using the OpenShift Jenkins image, include the oc binary in your Jenkins installation. NOTE: With the above two notes in mind, since this plugin was first envisioned and created, the rapid evolution of both Jenkins (including Pipelines and the introduction of Global Tool Configuration in Jenkins V2) and OpenShift have had an effect on how to best provide OpenShift integration from Jenkins jobs. The advantages of not requiring the oc binary to be included in the Jenkins path have been largely mitigated. The cost of porting oc REST interactions to Java is non-trivial. And the lack of functionality with client side logic in addition to REST flows, such as seen with oc new-app or binary builds, is more of a detriment.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              jenkins-plugin has a low active ecosystem.
              It has 82 star(s) with 53 fork(s). There are 126 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 84 have been closed. On average issues are closed in 10 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of jenkins-plugin is current.

            kandi-Quality Quality

              jenkins-plugin has 17 bugs (0 blocker, 0 critical, 15 major, 2 minor) and 241 code smells.

            kandi-Security Security

              jenkins-plugin has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              jenkins-plugin code analysis shows 2 unresolved vulnerabilities (0 blocker, 2 critical, 0 major, 0 minor).
              There are 1 security hotspots that need review.

            kandi-License License

              jenkins-plugin is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              jenkins-plugin releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              jenkins-plugin saves you 3927 person hours of effort in developing the same functionality from scratch.
              It has 8361 lines of code, 721 functions and 163 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed jenkins-plugin and discovered the below as its top functions. This is intended to give you an instant insight into jenkins-plugin implemented functionality, and help decide if they suit your requirements.
            • The core logic
            • Make a REST call to a resource
            • Derives a tag from an image stream
            • Derives an image ID from a source stream
            • Execute core logic
            • Returns the timeout value for this job
            • Pull auth token from file
            • Derives the bearer token from Jenkins
            • Gets the api client
            • Run core logic
            • The main loop
            • Validate connection
            • Sets the wait unit
            • Allow a certificate to be trusted
            • Checks if the current SCM file is already in open mode
            • Calculates the revisions from the build
            • Checks if the given JSON or YAML is valid
            • Allow to handle hostname and tls
            • Loads the config
            • Update a TimedShiftBase step
            • Performs core logic for the core object
            • Run the core logic
            • The core logic
            • The core logic
            • The core logic of the core
            • Delete core logic
            Get all kandi verified functions for this library.

            jenkins-plugin Key Features

            No Key Features are available at this moment for jenkins-plugin.

            jenkins-plugin Examples and Code Snippets

            No Code Snippets are available at this moment for jenkins-plugin.

            Community Discussions

            QUESTION

            Jenkins in Docker Container - installing Plugins manually doesn't work
            Asked 2022-Feb-24 at 13:24

            I'm trying to install Jenkins plugins with jenkins-plugin-manager, it appears to work, because the plugins are in the $JENKINS_HOME/plugins folder (*.jpi), but I don't see any plugins installed in the Jenkins UI. I've tried to restart Jenkins throght UI, but it didn't work.

            ...

            ANSWER

            Answered 2022-Feb-24 at 13:24

            Apparently restart throught UI somehow doesn't work here. I've restartet jenkins docker container (or docker service) and now I see the installed plugins in the UI.

            Source https://stackoverflow.com/questions/71252485

            QUESTION

            Why does docker image content differ from the container created from it?
            Asked 2022-Jan-22 at 17:17

            Following is the Dockerfile for the image,

            ...

            ANSWER

            Answered 2022-Jan-22 at 17:17

            The jenkins/jenkins:lts-jdk11 has an ENTRYPOINT that runs /usr/local/bin/jenkins.sh, which among other things creates the copy_reference_file.log file:

            Source https://stackoverflow.com/questions/70815067

            QUESTION

            Unable to build Docker images through Jenkins installed on Kubernetes
            Asked 2021-May-03 at 05:16

            I used the following helm chart to install Jenkins

            https://artifacthub.io/packages/helm/jenkinsci/jenkins

            The problem is it does't build docker images, saying there's no docker. Docker was installed on host with sudo apt install docker-ce docker-ce-cli containerd.io

            ...

            ANSWER

            Answered 2021-Apr-08 at 20:25

            You are running Jenkins itself as a container. Therefore the docker command line application must be present in the container, not the host.

            Easiest solution: Use a Jenkins docker image that contains the docker cli already, for example https://hub.docker.com/r/trion/jenkins-docker-client

            Source https://stackoverflow.com/questions/67011315

            QUESTION

            Jenkins-pipeline fail : No such DSL method 'androidLint' found among steps
            Asked 2020-Nov-21 at 17:16

            I get a failure for the stage 'Static analysis' during my jenkins-pipeline.

            Here is my Jenkinsfile :

            ...

            ANSWER

            Answered 2020-Nov-21 at 17:16

            After investigation, it seems "androidLint" is not supported by "Warnings Next Generation Plugin", and has been replaced by "androidLintParser"

            the correct step with Warning Next Generation plugin is :

            Source https://stackoverflow.com/questions/64945349

            QUESTION

            Pod fails to start up after installing Jenkins on Kubernetes
            Asked 2020-Nov-06 at 08:26

            I install Jenkins via Helm charts on my Kubernetes Cluster. I follow the rules described in: https://www.jenkins.io/doc/book/installing/kubernetes/

            When I look at the pods, I get the following error:

            ...

            ANSWER

            Answered 2020-Nov-06 at 08:26

            If you use the default settings from the documentation, ensure that the PVC are correctly set and ensure that all objects are in the same namespace.

            The solution to my problem was:

            • getting everything under the same namespace
            • reverting to standard values
            • when using an ingress resource, set the corresponding path in the helm config (jenkinsUriPrefix: "/yourpath") and not the jenkinsOpts: "--prefix=/yourpath"

            Source https://stackoverflow.com/questions/64664503

            QUESTION

            SonarQube Sonar.exclusions parameter is not working from jenkins and from SonarQube server
            Asked 2020-Aug-21 at 03:37

            sonar.exclusions parameter is not working for Sonarqube, the sonar.exclusions parameter defined in Jenkins or project setting in SonarQube Server it is not taking effect and scanning all files.

            I want to exclude CSS,JS and HTML file scanning from the project for that I defined

            ...

            ANSWER

            Answered 2020-Aug-20 at 14:33

            QUESTION

            Cannot find 'tools.jar' on ubuntu 18.04 when using maven
            Asked 2020-Aug-14 at 09:42

            I tried building a custom Jenkins-Plugin using Maven. Here is the issue:

            My project depends on org.kohsuke.args4j (https://github.com/kohsuke/args4j). I've added the dependency in my pom.xml-file.

            ...

            ANSWER

            Answered 2020-Aug-14 at 09:42

            Apparently, this is not possible any more since JDK9, according to @Hans and this post.

            Closed.

            Source https://stackoverflow.com/questions/63297562

            QUESTION

            Jenkins and Nexus Repository Manager Choice Parameter
            Asked 2020-Jul-16 at 16:05

            I know there is a Nexus Platform plugin https://plugins.jenkins.io/nexus-jenkins-plugin/ in Jenkins but I am not sure if the below is possible any advise or suggestions would be appreciated.

            In Jenkins you have Git choice parameter this allows you to build specific tags / branches within your job is there something similar for Sonatype Nexus? We have an internal nexus where we upload and tag docker images.

            I currently have a Jenkins job I have to manually type in the image version. Is there a way in Jenkins to get a choice parameter where i can query all the tags in nexus.

            So for example I can run the command - > docker pull internal/application/service:0.0.1 So the developers would upload a new version for example 0.0.2

            From Jenkins I would like to display a list of 0.0.1 or 0.0.2 for the support team to build. Not sure if this is currently possible ?

            Update 2020/07/15

            I have read up on the active choice paramater plugin. This allows you to execute a groovy script.

            So i created the below

            ...

            ANSWER

            Answered 2020-Jul-13 at 08:35

            The Maven Artifact ChoiceListProvider (Nexus) may satisfy your requirements.

            With this extension its possible to use the Service API from a Maven Repositories like Nexus, Maven-Central or Artifactory to search for artifacts using groupId, artifactId and packaging.

            This plugin will let the user choose a version from the available artifacts in the repository and will publish the URL as an environment variable. The Plugin will return the full URL of the choosen artifact, so that it will be available during the build, i.E. you can retrieve the artifact by using "wget" Example

            You might then have to parse (groovy ?) the resulting env variable to feed as your parameter.

            Source https://stackoverflow.com/questions/62870718

            QUESTION

            Phabricator + Jenkins: Any ideas of how to get the whole workspace when executing an arc diff?
            Asked 2020-Jan-10 at 15:01

            I'm using the plugin from Jenkins for the integration with Phabricator. Everything works perfectly during the integration, but when an arc diff is executed, the only files received on the Jenkins job is the files edited or created by the arc diff. This is a problem when creating microservices and editing files that could potentially affect to other microservices.

            Any thoughts on how to get the whole workspace from the repository (hosted also in Phabricator) to be tested, instead of only the diff files?

            I've created an issue on the plugin, here is the link:

            https://github.com/uber/phabricator-jenkins-plugin/issues/334

            ...

            ANSWER

            Answered 2020-Jan-10 at 15:01

            Using git plugin and the repository URL, has been quite straightforward: added the URL of the staging area (in my case is the same as the repository) and git credentials (as username/password). The only trick is to indicate which tag we need to test. Since phabricator staging areas uses two tags per diff (phabricator/base/${DIFF_ID} with the base code of the diff and phabricator/diff/${DIFF_ID} with the whole code with the diff applied), i used the following setting:

            As result, git plugin will build the code of the whole project with the diff applied.

            More information about the integration and the needed variables can be found here: https://github.com/uber/phabricator-jenkins-plugin

            Source https://stackoverflow.com/questions/59680933

            QUESTION

            Jenkins SSH Agent Plugin shows empty drop down in Jenkins Job
            Asked 2020-Jan-07 at 22:03

            I am using SSH Agent Plugin version 1.17 with Jenkins version 2.190.3

            When I create credentials using Jenkins -> Credentials -> System -> Global credentials (unrestricted) -> Add Credentials

            But when I create jenkins job type Freestyle project, I don't see credentials in ssh agent drop down.

            Please advise what I am missing

            Ref:

            https://wiki.jenkins.io/display/JENKINS/SSH+Agent+Plugin

            https://support.cloudbees.com/hc/en-us/articles/360029470091-How-to-use-the-SSH-Agent-Plugin

            Jenkins plugin ssh-agent showing "ERROR: Failed to run ssh-add"

            Update:

            Issue is open for credentials (username/password) https://issues.jenkins-ci.org/browse/JENKINS-59807 but good thing is that it works with private key :)

            ...

            ANSWER

            Answered 2020-Jan-07 at 20:59

            You have to select Kind as SSH Username with private key to be able to specific use credentials in ssh agent:

            Source https://stackoverflow.com/questions/59635544

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install jenkins-plugin

            Like the Jenkins project itself, this project is a maven based project. To build this project, after you install maven and java 1.8 or later, and cd to this projects root directory (where the pom.xml file is located), run mvn clean package. If built successfully, and openshift-pipeline.hpi file will reside in the target subdirectory.
            The Centos and RHEL versions of the OpenShift Jenkins Docker Image, starting officially with V3.2 of OpenShift, will have the plugin installed. See the Jenkins Docker Image repository for details.
            As noted earlier, wiki page has a link to the latest official version of the plugin.
            You could also go to the openshift-pipeline page at the Jenkins Update Center to view the complete list of released plugins.
            The Jenkins server used for OpenShift development has a job that build the latest commit to the master repo. The resulting openshift-pipeline.hpi file be a saved artifact from that job.
            A RHEL RPM is also available as of V3.2 of OpenShift.

            Support

            Each of the Jenkins "build steps" can also be used as steps in a Jenkins Pipeline / Workflow plugin Groovy script, as they implement jenkins.tasks.SimpleBuildStep and java.io.Serializable. From your Groovy script, instantiate the associated Java object, and then leverage the workflow plugin step keyword to call out to the object with the necessary workflow contexts. Here is a useful reference on constructing Jenkins Workflow Groovy scripts.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/openshift/jenkins-plugin.git

          • CLI

            gh repo clone openshift/jenkins-plugin

          • sshUrl

            git@github.com:openshift/jenkins-plugin.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link