Jenkins: manual build promotion

  1. Install the “Promoted Builds Plugin” in Jenkins Manage Plugin.
  2. Then in the jenkins project add the configuration as follows:
    build1
  3. Then add the name of user is authorized to promote the build.
  4. build2
    Then add the build you want to build after the promotion has been done.

    build3

jenkins parsing poms stackoverflowerror

This issue is mainly with Java version or Maven version.
You can add Java version in the Manage Jenkins -> Tool configuration section as:
JDK -> JDK installations
java1

Then you can choose the required java in the job as follows:
java2

To change Maven:
1. First download maven from: https://maven.apache.org/download.cgi

2. Unzip it in a directory accessible by Jenkins suppose: /home/jenkins/apache-maven-3.2.3

3. Then add maven as

maven1
You can also add mvn to PATH and manually execute mvn clean for that project.

Jenkins initialization has not reached the COMPLETED

Well, ‘Loaded all jobs’ is not the last init stage, ‘Completed’ is. So there appears to be a problem

Do you have the extremenotification plugin installed? It’s the one referenced in JENKINS-37759.

Jenkins – Publish Over SSH Plugin: How to copy directory

Problem:

I’m trying to use Jenkins’ Publish Over SSH plugin to copy all files AND sub-directories of some given directory, but so far, I’ve only able to copy files and NOT directory.

I have a directory named foo in my workspace, and during the build, I want to copy everything in this directory to a remote server. I’ve tried this pattern foo/**, but it doesn’t copy all sub-directories.

Solution:

For recursive copy of directory you should give

foo/**/*

Jenkins: publish over ssh does not put files to remote server

Problem:

I have strange issue on the latest Jenkins 1.634.
Publish over ssh writes to log that it puts correctly file but nothing appears on remote server.
e.g. I have logs
SSH: cd [var/www/data-fb-localtest]
SSH: OK
SSH: put [asm.js]
SSH: OK
SSH: put [asm.js.gz]
SSH: OK
SSH: put [hero.data]
SSH: OK
SSH: put [hero_main.js]
SSH: OK
SSH: cd [/home/dev]
SSH: OK
SSH: cd [var/www/data-fb-localtest/]
SSH: OK
SSH: put [achievements.exm]
SSH: OK
SSH: put [ai.exm]
SSH: OK
SSH: put [atlas0.atlas]
SSH: OK
SSH: put [atlas0.rgbz]
SSH: OK
but nothing appears in var/www/data-fb-localtest

 

Solution:

I found the issue. I do not set root remote directory and in publish task use absolute path. But plugin does use not absolute path but path relative to my user’s home directory