Skip to content

Commit 964a45c

Browse files
Updated Jenkinsfile
1 parent 1bb2b4c commit 964a45c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

JenkinsFileKubernetes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,13 @@ pipeline
4646
sh 'docker push 149536451818.dkr.ecr.ap-south-1.amazonaws.com/maven-web-application:${buildNumber}'
4747
}
4848
}
49+
50+
stage('Remove Docker Image from Jenkins Locally')
51+
{
52+
steps()
53+
{
54+
sh 'docker rmi -f 149536451818.dkr.ecr.ap-south-1.amazonaws.com/maven-web-application:${buildNumber}'
55+
}
56+
}
4957
}
5058
}

0 commit comments

Comments
 (0)