I am using Jenkins version 2.383 with the "Maven Release Plug-in Plug-in
Version 0.16.3". I am trying to invoke the release plugin from the command line. I have tried curl, the jenkins-cli.jar, and directly via ssh.
I can start normal build on a job, but is there a way to start the "Perform Mavin Release" part of the job via ssh or jenkins-cli.jar?
I know the posting to http://:8080/job//m2release/
is the way to do it but I am unable to post via curl due to authentication problems. What is the current recommended way to authenticate via curl?
Related
I am using GitHub enterprise server, so I cannot use stCarolas/setup-maven. (because it is not an verified account).
I think it is normal to pre-install maven in runner, but I am forbidden to do so by my administrators.
How should I use the mvn command?
I have written a Jenkins plugin using Java and deployed the HPI file in my Jenkins instance. The plugin is available for use when i use freestyle job from the Jenkins GUI. When i try to access/use the plugin in the Pipeline as code (.Jenkins file) i am not able to access or use the plugin i deployed. The plugin is not showing up in pipeline script generator as well. Can some one provide the detail of what i need to do so that the plugin i have written can be used in the pipeline script format as well?
In order to integrate and run the Selenium Maven project on Jenkins 2.73.3, I set the option(s) as the following images:
Notice Goals and options with clean install; nothing else selected/checked, but Enable triggering of downstream projects.
Notice Install automatically is unchecked.
Jenkins project built successfully without opening any browser that shows any activity.
Please, let me know if there is/are any project setting(s) to solve this issue; i.e.: can we see the Web application run on browser as it does when it's run by the Maven project.
You are using Jenkins from services means you are using installable Jenkins version which not allow opening of any UI invocation.
You need to use jenkins.war
You can download war from below URL:
https://updates.jenkins-ci.org/download/war/
Use below command to start Jenkins server
java -jar jenkins.war --httpPort=9090
Specifically, have the Jenkins instance running on a Linux server execute a Maven build on a Windows server
Yep, you can have a master-slave relation with another box: https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds
If you only want launch a maven build there without setting up a slave, you can install the ssh plugin, configure ssh access on the Windows box, and then remotely execute the maven build
Is there any way to provision/deploy features to Fuse ESB/Servicemix automaticaly though Maven, like cargo for Tomcat? Using ant+ssh is not an option.
I'm currently finalizing a client wrapped in a maven plugin that will do just that, but instead of the fusesource approach of using the hot deployment folder I connect directly to the remote karaf console and execute the commands required to (un)install features.
The auto deploy is part of automated regression tests executed by Jenkins through a set of SoapUI test scripts.
Basically I use apache SSHD to connect to karaf (see an example here: https://cwiki.apache.org/KARAF/63-programmatically-connect-to-the-console.html) and some custom code to execute the commands and parse the result.