diff --git a/Jenkinsfile b/Jenkinsfile index b991ac8..8b687dc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,13 +15,16 @@ pipeline { label dockermain } - script { - sh ''' - #!/bin/bash + steps { - git reset --hard - git clean -xfd - ''' + script { + sh ''' + #!/bin/bash + + git reset --hard + git clean -xfd + ''' + } } } stage("Clean Docker Caches") { @@ -29,12 +32,14 @@ pipeline { label dockermain } - script { - sh ''' - #!/bin/bash + steps { + script { + sh ''' + #!/bin/bash - docker system prune --volumes -f - ''' + docker system prune --volumes -f + ''' + } } } @@ -43,14 +48,16 @@ pipeline { label dockermain } - script { - sh ''' - #!/bin/bash - docker-compose down + steps { + script { + sh ''' + #!/bin/bash + docker-compose down - docker stop linuxbuilder || true - docker stop linuxfs || true - ''' + docker stop linuxbuilder || true + docker stop linuxfs || true + ''' + } } } @@ -59,13 +66,15 @@ pipeline { label dockermain } - script { - sh ''' - #!/bin/bash + steps { + script { + sh ''' + #!/bin/bash - docker build -t git.zontreck.com/ariascreations/buildenvironments:debian DebianBase - docker push git.zontreck.com/ariascreations/buildenvironments:debian - ''' + docker build -t git.zontreck.com/ariascreations/buildenvironments:debian DebianBase + docker push git.zontreck.com/ariascreations/buildenvironments:debian + ''' + } } } @@ -74,14 +83,16 @@ pipeline { label dockermain } - script { - sh ''' - #!/bin/bash + steps { + script { + sh ''' + #!/bin/bash - docker build -t git.zontreck.com/ariascreations/buildenvironments:debianbuild DebianBuilder - docker push git.zontreck.com/ariascreations/buildenvironments:debianbuild - ''' + docker build -t git.zontreck.com/ariascreations/buildenvironments:debianbuild DebianBuilder + docker push git.zontreck.com/ariascreations/buildenvironments:debianbuild + ''' + } } } @@ -90,13 +101,15 @@ pipeline { label dockermain } - script { - sh ''' - #!/bin/bash + steps { + script { + sh ''' + #!/bin/bash - docker build -t git.zontreck.com/ariascreations/buildenvironments:adk AndroidSDK - docker push git.zontreck.com/ariascreations/buildenvironments:adk - ''' + docker build -t git.zontreck.com/ariascreations/buildenvironments:adk AndroidSDK + docker push git.zontreck.com/ariascreations/buildenvironments:adk + ''' + } } } @@ -105,13 +118,15 @@ pipeline { label dockermain } - script { - sh ''' - #!/bin/bash + steps { + script { + sh ''' + #!/bin/bash - docker build -t git.zontreck.com/ariascreations/buildenvironments:flutter FlutterSdk - docker push git.zontreck.com/ariascreations/buildenvironments:flutter - ''' + docker build -t git.zontreck.com/ariascreations/buildenvironments:flutter FlutterSdk + docker push git.zontreck.com/ariascreations/buildenvironments:flutter + ''' + } } } @@ -120,13 +135,15 @@ pipeline { label dockermain } - script { - sh ''' - #!/bin/bash + steps { + script { + sh ''' + #!/bin/bash - docker build -t git.zontreck.com/ariascreations/buildenvironments:appimage AppImage - docker push git.zontreck.com/ariascreations/buildenvironments:appimage - ''' + docker build -t git.zontreck.com/ariascreations/buildenvironments:appimage AppImage + docker push git.zontreck.com/ariascreations/buildenvironments:appimage + ''' + } } } @@ -135,13 +152,15 @@ pipeline { label dockermain } - script { - sh ''' - #!/bin/bash + steps { + script { + sh ''' + #!/bin/bash - docker build -t git.zontreck.com/ariascreations/buildenvironments:linux LinuxGeneralCompiler - docker push git.zontreck.com/ariascreations/buildenvironments:linux - ''' + docker build -t git.zontreck.com/ariascreations/buildenvironments:linux LinuxGeneralCompiler + docker push git.zontreck.com/ariascreations/buildenvironments:linux + ''' + } } } @@ -150,13 +169,15 @@ pipeline { label dockermain } - script { - sh ''' - #!/bin/bash + steps { + script { + sh ''' + #!/bin/bash - docker build -t git.zontreck.com/ariascreations/buildenvironments:linuxfs FirestormLinux - docker push git.zontreck.com/ariascreations/buildenvironments:linuxfs - ''' + docker build -t git.zontreck.com/ariascreations/buildenvironments:linuxfs FirestormLinux + docker push git.zontreck.com/ariascreations/buildenvironments:linuxfs + ''' + } } } @@ -165,12 +186,14 @@ pipeline { label dockermain } - script { - sh ''' - #!/bin/bash + steps { + script { + sh ''' + #!/bin/bash - docker system prune --volumes -f - ''' + docker system prune --volumes -f + ''' + } } } }