User Tools
toolsandtechnologies:jenkins_2
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| toolsandtechnologies:jenkins_2 [2021/06/25 10:09] – external edit 127.0.0.1 | toolsandtechnologies:jenkins_2 [2023/06/07 17:39] (current) – [Artifactory storage] - fix url redirect aryan | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ===== Introduction ===== | ===== Introduction ===== | ||
| - | Jenkins 2 can be accessed at: [[http:// | + | Jenkins 2 can be accessed at: [[https:// |
| It is encouraged to create new projects using the Pipeline plugin of Jenkins 2 and with Jenkinsfile being part of the project SCM. | It is encouraged to create new projects using the Pipeline plugin of Jenkins 2 and with Jenkinsfile being part of the project SCM. | ||
| Line 14: | Line 14: | ||
| ===== Integration to BitBucket ===== | ===== Integration to BitBucket ===== | ||
| + | |||
| The installed Jenkins has prepared credentials for accessing the BitBucket repositories. | The installed Jenkins has prepared credentials for accessing the BitBucket repositories. | ||
| + | |||
| The credentials have ' | The credentials have ' | ||
| - | To create password for Jenkins (or other application) go to https:// | + | |
| + | To create password for Jenkins (or other application) go to https:// | ||
| + | |||
| + | {{: | ||
| + | |||
| + | It is crucial to add at least read/write access to repositories in order to make cloning and tagging work. | ||
| + | |||
| + | **errigal_robot** account should be used for all builds, and NOT personal accounts due to the issue of account closure in Bitbucket directly affecting the build process | ||
| Example below shows how to use these credentials in order to clone a repo and tag it with a build number. | Example below shows how to use these credentials in order to clone a repo and tag it with a build number. | ||
| Line 114: | Line 124: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | ===== Artifactory storage ===== | ||
| + | |||
| + | Artifactory configuration is covered [[development: | ||
| + | |||
| + | Each pipeline has a step to push the build suite (war/jar, pom, XML etc) to the artifactory store in [[http:// | ||
| + | |||
| + | 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 | ||
| + | < | ||
| + | stage (' | ||
| + | steps { | ||
| + | nexusPublisher( | ||
| + | nexusInstanceId: | ||
| + | nexusRepositoryId: | ||
| + | packages: [ | ||
| + | [$class: ' | ||
| + | | ||
| + | | ||
| + | ], | ||
| + | | ||
| + | ] | ||
| + | ] | ||
| + | ) | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | 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.1624612196.txt.gz · Last modified: 2021/06/25 10:09 by 127.0.0.1