User Tools

Site Tools


toolsandtechnologies:jenkins_2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
toolsandtechnologies:jenkins_2 [2023/03/31 18:29] – [Integration to BitBucket] - updated aryantoolsandtechnologies:jenkins_2 [2023/06/07 17:39] (current) – [Artifactory storage] - fix url redirect aryan
Line 124: Line 124:
   }   }
 </code> </code>
 +
 +===== Artifactory storage ===== 
 +
 +Artifactory configuration is covered [[development:artifactory]]
 +
 +Each pipeline has a step to push the build suite (war/jar, pom, XML etc) to the artifactory store in  [[http://artifactory2.err:4041/#browse/browse:maven-candidates|Maven Candidate Storage]]. Each application has its own folder, and inside each folder there is a branch folder. These folders are either IDMS, AUTO, Support or Rel- based.
 +
 +Ideally (as of June 6th, 2023 not working) we should keep
 +
 +   *- 15 days of IDMS & AUTO 
 +   *- 30 days of SUPPORT
 +   *- Last 4 REL-
 +
 +Deployment is covered via
 +<code>
 + stage ('Deploying to candidates repo') {
 +            steps {
 +                nexusPublisher(
 +                        nexusInstanceId: 'nexusArtifactory2',
 +                        nexusRepositoryId: 'maven-candidates',
 +                        packages: [
 +                                [$class: 'MavenPackage',
 +                                 mavenAssetList: [
 +                                         [classifier: '', extension: 'jar', filePath: 'build/libs/elastic-replicator.jar']
 +                                 ],
 +                                 mavenCoordinate: [artifactId: 'elastic-replicator', groupId: 'com.errigal', packaging: 'jar', version: versionNumber]
 +                                ]
 +                        ]
 +                )
 +            }
 +        }
 +</code>
 +
 +The deployment playbooks should then source the artefact from the repo and not from our dev jenkins with a public IP interface (security risk).
 +
 +
 +
 +
  
 ===== Generating API token (e.g. for Ansible) ===== ===== Generating API token (e.g. for Ansible) =====
toolsandtechnologies/jenkins_2.1680283744.txt.gz · Last modified: 2023/03/31 18:29 by aryan