The fourth industrial revolution was a milestone at the industrial level. It forced most industries to evolve technically and for their collaborators to prepare and advance together with technology; the oil industry was no exception. It develops its activities in dangerous and dynamic environments and needs to protect its human resources, equipment, and infrastructure. This article presents a scoping review, based on the PRISMA guidelines, of pipeline maintenance methodologies based on Industry 4.0. From the first collection of 123 articles from prestigious databases such as SpringerLink, MDPI, Scopus, IEEEXplore and ACM, a final sample of 31 articles was obtained. Here, technologies that enhance preventive and predictive maintenance systems are discussed. The results show that predictive maintenance compared to preventive maintenance has a percentage difference in upkeep time optimization of 38% in the last five years. This difference was corroborated with a Student’s t-test for independent samples, with a significance of 0.023. Likewise, the most used technologies were analyzed, with artificial intelligence standing out with 45.16%.