Jenkins pipeline using maven project - docker

I am trying to create a maven project pipeline it show me docker error although i already installed docker integration plugin in jenkins.

Related

How to write jenkinsfile that will access openshift and run few commands

I am new to Jenkins, can someone help me to write Jenkinsfile that access openshift run few of commands, and return the report
I know commands to run manually in open shift but don't know how to do in Jenkins
There are a few good introductions available on how to access OpenShift using the OpenShift Jenkins Plugin or on how to run generic commands using sh:
Using OpenShift Pipeline Plugin with External Jenkins
Building Declarative Pipelines with OpenShift DSL Plugin
More generic: Jenkins Pipeline: running external programs with sh

jenkinsfile not found in multi module project

I have a mvn project with a parent pom that is hosted in github. each module is a microservice that is buildable using mvn + docker.
I'm trying to configure a jenkins build of one of the modules but jenkins can't find Jenkinsfile becuase it's not in the root( assumption)
--Project
--moduleA
/jenkins/Jenkinsfile
When trying to configure a Pipeline (Using Jenkins blue ocean), Jenkins can't locate any Jenkinsfile in all the project's branches.

Pipeline by using Jenkins with private SVN repository

I am trying to implement CI/CD pipeline for my microservice oriented project by using Kubernetes and Jenkins. I am using my code repository on my on-premise server. I created one SVN repository on my server.
I am interested to know, can I use my private SVN code repository with Jenkins?
The reason for my doubt is because every example is showing the creation of pipeline with Jenkins and GitHub project.
You can use the shell command in your pipeline. So you are free to use SVN with Jenkins:
https://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-cli-main.html
Some info there:
Run bash command on jenkins pipeline

jenkins integration with artifactory 5.5.2

Currently I am using JFrog OSS version 5.5.2 for my artifacts which is integrated with Jenkins version 2.19.4. The artifactory plugin version is 2.13.1. I created a free-style software project. The repository type is “generic-local”. I am able to run build successfully and builds are saved in repository but the artifacts are not saved.Also, there is no option called “deploy artifacts to artifactory” in Jenkins configuration.
Do I have change my settings or update Jenkins?
Please advice me what changes has to be done.
Do I need to upgrade jenkins?
No: the Artifactory plugin requires a Jenkins Core 1.521.
But you would need to define a Maven 2/3 build instead.
Maven 3 Support for Jenkins Free-style Jobs
The Jenkins Artifactory plugin supports running Maven 3 builds from free-style jobs by using a Maven 3 build step + a build environment section for the Artifactory Maven 3 integration (artifact and build information deployment).
For Maven 3 builds users are encouraged to configure the Artifactory integration using Jenkins' native Maven 2/3 build projects.

Build a Freestyle project using Jenkins Pipeline Job

I am trying to build a code which doesn't have a pom.xml. Also i want to deploy the same to artifactory. Is there a way to build such a project using pipeline job. I can use freestyle job for building the above project. But I was hoping if there is some way to achieve the same in pipeline job. Also I require the groovy script details for artifactory deployment of such kind of project in pipeline job. But the basic question I have is this even feasible?
UPDATE:
We have a freestyle project job in whcih which we package our freestyle code into .tar and then deploy to artifactory using Generic Artifactory Configuration.
Now I am trying to achieve the same using a pipeline job. I get the point that we can use shell script inside Groovy and can build a tar package but how to deploy the tar package to Artifactory using Pipeline job.
if you have only 1 file , you can use maven deploy option , and upload the file.
http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html

Resources