Parameter Tagging :
parameters([
string(name: 'Version_Major', defaultValue: '1', description: 'Version Major'),
string(name: 'Version_Minor', defaultValue: '0', description: 'Version Minor'),
string(name: 'Version_Patch', defaultValue: '0', description: 'Version Patch')
])
stage ('Build Docker images') {
sh "cd /home/admin/file && docker build -t Image_abcdef:${Version_Major}.${Version_Minor}.${Version_Patch} . "
if I build images, it will automatically delete the last images. It will be like this :
any suggestion for me ?
Thanks before