/
Other Jenkins configurations

Other Jenkins configurations

A) Artifact Pushes
   1. The default configuration is to upload the artifacts (zip, jar etc files) to azure blob and docker containers to the configured container registry.
   2. Docker container push require a hub account mandatorily. But if you decide to not use azure storage blob to store artifacts, then you can change the configuration in Jenkins jobs to disable to push to azure blob.
   3. Go to the Jenkins ArtifactUpload jobs and Deploy jobs and change the order from ArtifactRepo JenkinsJob to JenkinsJob ArtifactRepo


B) Log rotation
   1. By default the log rotation for build jobs is configured as 1. Which means only the last built artifact is kept in build jobs and others are deleted. You can change this value in the job configuration.
   2. The log rotation for all other jobs is by default set to 5. Which means the last 5 successful artifacts are stored.


Note: When the jenkins-jobs-setup.sh script is triggered, it will overwrite these changes. You can run a simple find and replace using sublime or any other editor to make the configuration changes as per your desire. The find and replace needs to be run on the config.xml files. This can be done even before the jenkins-jobs script runs or later in the /var/lib/jenkins/jobs directory (Take a backup first!)

Related content

ArtifactUpload Jobs
ArtifactUpload Jobs
More like this
Few Jenkins tweaks
Few Jenkins tweaks
More like this
Creating new folders for Jenkins jobs
Creating new folders for Jenkins jobs
More like this
Removing folders for Jenkins jobs
Removing folders for Jenkins jobs
More like this
Jenkins Configuration as code
Jenkins Configuration as code
More like this
Jenkins jobs to auto stop / start azure infra:
Jenkins jobs to auto stop / start azure infra:
More like this