October 26, 2026
CI/CD Pipelines for efficient deploys: implementation with Jenkins and AWS
Maria Paula Gementi; Eduardo Fernando Mendes
DOI: 10.22167/2675-6528-202601210
Article prepared by the ResumeAI tool, an artificial intelligence solution developed by the Pecege Institute focused on synthesis and writing.
Summary
The problematic nature of manual processes in software development, which compromised traceability and efficiency, motivated the research. The objective was to develop and validate a Continuous Integration and Continuous Delivery (CI/CD) pipeline with Jenkins and Amazon Web Services (AWS), demonstrating how the automation of deployment processes could eliminate human bottlenecks, reduce operational failures, and increase the stability of software deliveries. The adopted methodology, of an applied and experimental nature, was based on DevOps principles, integrating collaboration, automation, and continuous improvement. A pipeline was implemented that included build, automated testing, cloud deployment, and rollback stages, with a focus on security and standardization. Validation occurred through experiments that showed a significant reduction in average deployment time, greater reliability and traceability of deliveries, surpassing the performance of manual processes. It was concluded that the solution contributes to corporate and educational environments, filling gaps in the practical training of professionals and reinforcing the relevance of adopting CI/CD as a strategy for agility, scalability, and innovation in software engineering.
Keywords: Automation; DevSecOps; Scalability; Traceability; Information Security.
1. Introduction
Contemporary software development is marked by increasing complexity and the need for rapid responses to market demands. Organizations of all sizes face the challenge of delivering scalable, secure, and highly available systems, while also seeking to reduce human errors and optimize their internal processes. In this scenario, practices such as DevOps and the adoption of Continuous Integration and Continuous Delivery (CI/CD) pipelines emerge as strategic solutions to ensure agility, reliability, and standardization in deliveries (Bass et al., 2021).
The DevOps methodology promotes the integration between development and operations teams, encouraging collaboration and automation as fundamental pillars for the software lifecycle. Among its main practices, the implementation of CI/CD pipelines stands out, which allow automating critical steps such as build, tests, and deploy, reducing operational bottlenecks and increasing process traceability. Humble and Farley (2010) emphasize that continuous automation is essential to achieve reliable and frequent deliveries, while Forsgren et al. (2018) demonstrate, in empirical studies, that organizations that adopt CI/CD achieve significant gains in delivery speed, stability, and innovation capacity.
The global market reflects this trend. According to a report by Global Growth Insights (2024), the DevOps sector was valued at US$ 11.8 billion in 2024, with a projected growth to US$ 64.4 billion by 2033. The same study indicates that approximately 64% of IT teams have already formalized DevOps practices, and over 70% use CI/CD pipelines as a strategy to accelerate deliveries and reduce operational failures. This expansion shows that automation is no longer a competitive differentiator but has become an essential requirement in highly demanding technological environments.
In Brazil, however, the adoption of DevOps practices still faces significant challenges. Rapôso et al. (2024) highlight that higher education institutions show low incorporation of these methodologies in their curricula, hindering the training of professionals prepared to work in modern contexts. Oliveira (2017), in a case study in the banking sector, identified recurring failures in communication between teams and low process standardization before adopting DevOps, reinforcing the importance of cultural change and technical training. Furthermore, recent reports point to a deficit of over 500,000 technology professionals by 2025, exacerbated by a lack of training in areas such as DevOps and CI/CD (Brasscom, 2024; Google for Startups, 2023).
The relevance of this study lies in its contribution to the practical training of professionals in the software engineering field, offering a solution applicable in both corporate and educational environments. Sharma (2017) highlights that the adoption of DevOps is not limited to technical transformations, but represents a profound cultural shift, capable of directly impacting how teams collaborate and respond to market demands. By proposing the construction of a CI/CD pipeline aligned with the principles of the DevOps methodology, this work seeks not only to optimize technical processes but also to foster a cultural change focused on collaboration, automation, and continuous improvement.
In this context, this work aims to implement and validate a CI/CD pipeline using Jenkins, a consolidated automation tool in the market (Kim; Behr; Spafford, 2016), in conjunction with the Amazon Web Services (AWS) cloud computing platform. The proposal seeks to demonstrate, through a practical study, how the automation of deploy processes can reduce human errors, increase traceability, and promote greater stability in software deliveries. Furthermore, it intends to highlight aspects of security and reliability that emerge from the integration between Jenkins and AWS, emphasizing points of attention related to shared responsibility and permission configurations (Sunagatov, 2023).
2. Material and Methods
The research conducted was framed as a study of an applied nature, seeking to solve a practical problem related to efficiency and reliability in software deployment processes. Additionally, it was characterized as experimental, as it involved the implementation and validation of a Continuous Integration and Continuous Delivery (CI/CD) pipeline in a controlled environment. The study also had a descriptive character, documenting the configuration and execution steps.
The methodological approach was based on the principles of DevOps methodology, which integrates collaboration, automation, and continuous improvement practices throughout the software lifecycle. The central objective was to implement and validate a CI/CD pipeline using Jenkins in conjunction with the Amazon Web Services (AWS) platform, as aligned with the general purpose of the study.
For process automation, Jenkins was selected as the main tool, due to its wide market adoption and flexibility in pipeline configuration. The Jenkins installation was performed in a Docker container, which ensured environment isolation, portability, and ease of system maintenance.
A custom Docker image was developed for Jenkins, incorporating all necessary plugins and dependencies for pipeline execution. This tailoring ensured greater control over the automation environment, eliminating the need for additional installations and guaranteeing Jenkins’ readiness for different use scenarios.
The cloud infrastructure was provisioned on Amazon Web Services (AWS), chosen for offering scalable and reliable services. Services such as Amazon EC2 for running application instances, Amazon S3 for storing artifacts and backups, and AWS IAM for managing users, credentials, and permissions were used.
Source code management and versioning were conducted through GitHub, which acted as the central repository and continuous integration point. Each commit made to GitHub automatically triggered the execution of jobs in Jenkins, promoting traceability and control over code changes.
The orchestration of tasks within the pipeline was carried out through scripts developed in Groovy and Shell. These scripts automated everything from the creation of Docker images to the execution of deploys and the rollback mechanism in case of failures, providing flexibility and control over each step of the process.
The configuration of the experimental environment was systematically executed, aiming to ensure isolation, security, and traceability in all stages of the CI/CD pipeline. The first step involved installing Jenkins in a Docker container, ensuring portability and independence from external dependencies.
Next, the secure integration of Jenkins with GitHub was performed, using access tokens generated specifically for communication between the repository and Jenkins. This configuration ensured that each commit to the repository automatically triggered the execution of jobs, promoting continuous automation.
The next step consisted of the initial configuration of credentials and permissions in AWS IAM (Identity and Access Management). Restrictive access policies were created, ensuring that each service had only the necessary permissions for its execution, mitigating risks of credential exposure (Sunagatov, 2023).
Finally, segregated environments were established for development, homologation/ approval, and production, each with specific security and resource configurations. This separation allowed for the validation of changes in controlled environments before release into production, reducing the probability of critical failures in the pipeline.
The CI/CD pipeline modeling was structured to encompass the essential stages of the software lifecycle, from application building to delivery in a production environment. The objective was to ensure automation, traceability, and reliability, reducing human errors and increasing process efficiency.
The first defined stage was the application build, responsible for compiling the source code and generating the necessary artifacts for execution. This phase ensured that each commit made to the GitHub repository was automatically transformed into a functional version of the application, eliminating the need for manual interventions.
Subsequently, automated tests were configured, which validated the integrity and quality of the code before its release to higher environments. After the validation of the tests, the creation of the Docker image was performed, which encapsulated the application in a standardized and isolated environment.
With the generated Docker image, the pipeline proceeded to deploy in the AWS cloud environment, using EC2 instances for execution, S3 buckets for artifact storage, and IAM for permission control. This phase was fully automated through scripts and API calls (Kim; Behr; Spafford, 2016).
An automatic rollback mechanism was implemented to be triggered in case of failures, allowing the restoration of the previous version of the application whenever critical errors were identified. This functionality aimed to increase the pipeline’s resilience and ensure service continuity.
The experimental procedure was structured to validate the efficiency and reliability of the implemented CI/CD pipeline. To this end, 25 simulated commits were performed on different branches, each automatically triggering the execution of jobs in Jenkins.
During the execution of the tests, continuous monitoring of the logs generated by Jenkins was performed. These logs recorded success messages, authentication failures, inconsistencies in environment variables, and access permission-related errors, serving as a basis for evaluating the pipeline’s behavior.
The data collection instruments were defined to ensure accuracy and allow for comparisons. The main data source was the execution logs generated by Jenkins. Complementarily, response time and stability reports were prepared to consolidate performance metrics.
For the analysis of the collected data, structured spreadsheets were used, in which the indicators were organized and treated comparatively. The quantitative indicators considered included the average deploy time, the failure rate, and the recovery time in case of failure.
Additionally, qualitative indicators such as perceived stability, pipeline maintainability, and user experience were evaluated. These indicators were considered for a comprehensive understanding of the proposed solution’s performance.
Regarding ethical criteria, the research has an exclusively technical character, focused on the implementation and validation of a CI/CD pipeline. There was no involvement of human or animal subjects, concentrating on aspects of technological infrastructure, process automation, and analysis of computational system performance.
For this reason, the research was exempted from submission to the Research Ethics Committee, as it did not fall under activities that required ethical evaluation related to physical, psychological, or social risks. All stages were conducted in a controlled environment, focusing on information security and the technical reliability of the solution.
3. Results and Discussion
The experiments conducted allowed for a comprehensive evaluation of the efficiency and reliability of the developed Continuous Integration and Continuous Delivery (CI/CD) pipeline, utilizing Jenkins and Amazon Web Services (AWS). The quantitative findings revealed a substantial improvement in deployment processes, which were previously marked by manual interventions and susceptibility to errors. The pipeline implementation demonstrated the capability to automate critical steps, aligning with the principles of the DevOps methodology, which emphasizes collaboration and automation to optimize the software lifecycle, as highlighted by Humble and Farley (2010).
One of the most significant indicators was the average deploy time, which was reduced to approximately 15 minutes, with an observed variation between 12 and 18 minutes. This result represents a gain of about 40% compared to the manual deploy model, which required an average of 25 minutes. This optimization is crucial for agility in software development, allowing teams to respond more quickly to market demands and deliver new functionalities continuously, an essential requirement in high-tech demanding environments, as pointed out by Bass et al. (2021).
The failure rate also showed a notable reduction, going from 35% in the manual process to 20% with the CI/CD pipeline, representing a decrease of approximately 43%. Failures identified in the automated pipeline were mainly concentrated in incorrect credential and permission configurations in AWS IAM service. Although this rate is still above international benchmarks, such as the DevOps Research and Assessment (DORA) reports, automation proved effective in mitigating operational errors that were common in manual processes, reinforcing the importance of standardization.
The pipeline’s resilience was significantly enhanced by the implementation of an automatic rollback mechanism. In case of failure, the pipeline was able to restore the previous version of the application in approximately 10 minutes. This recovery time represents a 50% reduction compared to the manual process, which took about 35 minutes to revert incidents. This functionality is vital to ensure service continuity and minimize the impact of critical incidents, contributing to the stability of software deliveries, as advocated by Forsgren et al. (2018).
From a qualitative point of view, the experiment participants reported a perception of greater stability and confidence in the deployment process. The ease of pipeline maintenance was another positive aspect, largely attributed to the use of a custom Docker image for Jenkins. This customization eliminated the need for recurring manual adjustments and ensured that the execution environment was standardized and ready for use in different scenarios, facilitating the replication and scalability of the proposed solution.
The traceability of deliveries was substantially strengthened, achieving a 100% improvement compared to the manual process. Each commit made to the GitHub repository automatically triggered the execution of jobs in Jenkins, generating detailed and traceable logs. This automation ensured rigorous control over all changes and stages of the software lifecycle, allowing for more efficient audits and a clear view of the history of each deploy, which is fundamental for governance in software engineering.
The comparison of the results obtained with the literature benchmarks, especially the metrics proposed by the DevOps Research and Assessment (DORA) and the State of DevOps reports, positions the solution’s performance at an intermediate level. Although mature pipelines reported by DORA show deployment times of less than 10 minutes and failure rates below 5%, the proposed pipeline already demonstrates significant gains in efficiency and traceability, indicating a significant advance compared to manual processes and clear potential for evolution.
The solution architecture was built on the principles of the DevOps methodology, which integrates development and operations to optimize the software lifecycle. The choice of Jenkins as the primary automation tool was justified by its wide market adoption and flexibility in pipeline configuration, while AWS was selected for offering scalable and reliable services, such as EC2 for application instances, S3 for artifact storage, and IAM for access and permissions management, forming a robust and secure infrastructure.
The configuration of the experimental environment was systematic, aiming to ensure isolation, security, and traceability. The installation of Jenkins in a Docker container ensured portability and independence from external dependencies, facilitating the replication of the solution in various scenarios and promoting greater control over versions and configurations. This containerization approach is crucial for maintaining consistency between development, staging, and production environments, minimizing dependency conflicts and standardizing execution.
Secure integration with GitHub was established through access tokens, ensuring that each commit automatically triggered the execution of jobs in Jenkins. This continuous automation is a pillar of CI/CD, promoting early error detection and constant code validation. Credential and permission management in AWS was carried out with restrictive IAM policies, granting each service only the necessary permissions for its execution, which significantly reduced exposure risks and mitigated vulnerabilities.
The CI/CD pipeline modeling encompassed essential stages of the software lifecycle. The build phase was responsible for compiling the source code and generating artifacts, ensuring that each commit transformed into a functional version of the application without manual intervention. Subsequently, automated tests validated the integrity and quality of the code, reducing the probability of errors in production and aligning with DevOps quality metrics, as advocated by Kim, Behr, and Spafford (2016).
After the validation of the tests, the creation of the Docker image encapsulated the application in a standardized and isolated environment, ensuring consistency between different environments and facilitating scalability. With the generated Docker image, the pipeline proceeded to deploy in the cloud on AWS, using EC2 instances, S3 buckets, and IAM. This phase was fully automated by scripts and API calls, ensuring speed and reliability in delivery, a fundamental aspect for the system’s agility and scalability.
Security was a central element in the configuration and execution of the pipeline, considering the inherent risks in the integration between Jenkins and AWS. To mitigate vulnerabilities, practices such as the use of tokens and restrictive IAM policies were adopted, which reduced the attack surface and avoided excessive privileges. Secure communication via SSL/TLS was configured in all interactions between Jenkins, GitHub, and AWS, ensuring the confidentiality and integrity of transmitted data and preventing man-in-the-middle attacks, according to cloud security best practices (Sunagatov, 2023).
To increase the solution’s robustness, configuration automation with secure templates standardized permissions and environment variables, minimizing human errors and ensuring consistency across different execution environments. Regular permission audits were conducted to identify exposed credentials, unauthorized access, and incorrect configurations, contributing to compliance maintenance and early vulnerability detection. Backup strategies in S3 buckets and EC2 instance snapshots were implemented to ensure resilience and rapid recovery in case of critical failures, complementing the protection mechanisms.
The collection and analysis instruments were defined to ensure accuracy and allow comparisons with benchmarks. The main data source was the Jenkins execution logs, which recorded each step of the pipeline, including successes, authentication failures, environment variable inconsistencies, and permission errors. These logs were crucial for identifying operational bottlenecks and evaluating the solution’s reliability, providing an empirical basis for the interpretation of results.
Complementarily, response time and stability reports consolidated performance metrics, such as average deploy time and variation between executions. These reports allowed for observing pipeline behavior patterns and comparing the results with previous manual processes, evidencing the gains achieved. The systematization of data into structured spreadsheets for statistical analysis facilitated clear visualization of metrics and interpretation of results, reinforcing the validity of the applied methodology.
Among the strengths of the implementation, the complete automation of build, test, and deploy stages, the automatic rollback mechanism, the efficient integration between Jenkins and AWS, and the creation of a custom Docker image stand out. On the other hand, limitations were concentrated on failures related to credentials and IAM permissions, which impacted the success rate of deploys. These observations provide a clear path for future optimizations and improvements of the CI/CD pipeline.
As future opportunities, the adoption of continuous monitoring tools, such as AWS CloudWatch or Prometheus, is suggested for even greater visibility into pipeline performance. The incorporation of advanced DevSecOps practices, including vulnerability analysis in Docker images and secret managers, can elevate the infrastructure’s security level. Furthermore, continuous optimization of automation scripts can further reduce the average deploy time, bringing the solution closer to international maturity benchmarks.
In summary, the proposed pipeline contributes significantly to the efficiency, traceability, and reliability of software deliveries, demonstrating expressive gains compared to manual processes. The results confirm that the automation of deploy processes is an effective strategy to eliminate human bottlenecks, reduce operational failures, and increase delivery stability, while also highlighting the need for continuous adjustments to achieve maturity levels comparable to international benchmarks and further strengthen information security.
4. Conclusion
The present study sought to implement and validate a Continuous Integration and Continuous Delivery (CI/CD) pipeline with Jenkins and Amazon Web Services (AWS), aiming to demonstrate the effectiveness of deploy process automation in reducing failures, increasing traceability, and improving software delivery stability. A reduction in the average deploy time to 15 minutes was observed, representing a 40% gain compared to the manual process. The failure rate decreased by 43%, reaching 20%, although concentrated in IAM credential and permission configurations. It was also observed that the automatic rollback mechanism allowed for failure recovery in approximately 10 minutes, and delivery traceability was improved by 100% through detailed logs. Qualitatively, participants reported greater stability and confidence in the process, facilitated by pipeline maintenance with a custom Docker image.
The main contribution of this work lies in offering a practical and replicable solution for corporate and educational environments, filling gaps in the training of software engineering professionals and reinforcing the relevance of automation and DevOps culture for agility and scalability. Although the pipeline demonstrates significant gains in efficiency and traceability, failures related to IAM credentials and permissions represent a limitation, positioning performance at an intermediate level when compared to international benchmarks. For future studies, it is suggested to incorporate continuous monitoring tools, adopt advanced DevSecOps practices, such as vulnerability analysis in Docker images, and optimize automation scripts to further reduce deployment time, aiming to achieve higher maturity levels and strengthen information security.
Bibliographic References
Bass, L.; Weber, I.; Zhu, L. 2021. DevOps: A software architect’s perspective. 2ed. Addison-Wesley, Boston, MA, EUA.
BRASSCOM. 2024. Relatório de mercado de tecnologia da informação no Brasil.
Forsgren, N.; Humble, J.; Kim, G. 2018. Accelerate: The science of lean software and DevOps. IT Revolution Press, Portland, OR, EUA.
Global Growth Insights. 2024. Relatório de tendências globais.
Google for Startups. 2023. Relatório de inovação e empreendedorismo.
Humble, J.; Farley, D. 2010. Continuous delivery: Reliable software releases through build, test, and deployment automation. Addison-Wesley, Boston, MA, EUA.
Kim, G.; Behr, K.; Spafford, G. 2016. The Phoenix project: A novel about IT, DevOps, and helping your business win. 5ed. IT Revolution Press, Portland, OR, EUA.
Oliveira, J. 2017. Estudo de caso sobre a adoção de DevOps no setor bancário. São Paulo, SP, Brasil.
Rapôso, M.; et al. 2024. Adoção de práticas DevOps em instituições de ensino superior brasileiras. São Paulo, SP, Brasil.
Sharma, S. 2017. The DevOps adoption playbook: A guide to adopting DevOps in a multi-speed IT enterprise. Wiley, Hoboken, NJ, EUA.
Sunagatov, R. 2023. Shared responsibility in cloud security: Best practices for AWS. Londres, Reino Unido.
Article originating from the Final Course Work of the Specialization in Software Engineering of the MBA USP/Esalq
To learn more about the course, click here and access the MBX Academy platform