{"id":32530,"date":"2023-01-23T04:46:04","date_gmt":"2023-01-23T04:46:04","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=32530"},"modified":"2023-01-23T04:46:06","modified_gmt":"2023-01-23T04:46:06","slug":"how-to-set-nexus-user-name-and-password-in-a-aws-code-pipeline","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/how-to-set-nexus-user-name-and-password-in-a-aws-code-pipeline\/","title":{"rendered":"How to set nexus user name and password in a AWS Code Pipeline"},"content":{"rendered":"\n<p>To set Nexus username and password in an AWS CodePipeline, you can use environment variables.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"947\" height=\"829\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/01\/image-2.png\" alt=\"\" class=\"wp-image-32531\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/01\/image-2.png 947w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/01\/image-2-300x263.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/01\/image-2-768x672.png 768w\" sizes=\"auto, (max-width: 947px) 100vw, 947px\" \/><\/figure>\n\n\n\n<p>Here is an example of how to set Nexus credentials using environment variables:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to the CodePipeline console and select the pipeline you want to set the credentials for.<\/li>\n\n\n\n<li>Click on the &#8220;Edit&#8221; button in the &#8220;Stages&#8221; section.<\/li>\n\n\n\n<li>In the &#8220;Actions&#8221; section, click on the &#8220;Edit&#8221; button for the action that will be using Nexus.<\/li>\n\n\n\n<li>In the &#8220;Environment Variables&#8221; section, click on the &#8220;Add environment variable&#8221; button.<\/li>\n\n\n\n<li>In the &#8220;Name&#8221; field, enter &#8220;NEXUS_USERNAME&#8221; and in the &#8220;Value&#8221; field, enter your Nexus username.<\/li>\n\n\n\n<li>Click on the &#8220;Add environment variable&#8221; button again and enter &#8220;NEXUS_PASSWORD&#8221; in the &#8220;Name&#8221; field and your Nexus password in the &#8220;Value&#8221; field.<\/li>\n\n\n\n<li>Click on the &#8220;Save&#8221; button to save your changes.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>To set Nexus username and password in an AWS CodePipeline, you can use environment variables. Here is an example of how to set Nexus credentials using environment variables:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-32530","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=32530"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32530\/revisions"}],"predecessor-version":[{"id":32532,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32530\/revisions\/32532"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=32530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=32530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=32530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}