Deleted old game file, updated Jenkinsfile

This commit is contained in:
2024-10-06 22:42:53 +03:00
parent b3e6d1b20b
commit 08b38c4a42
2 changed files with 8 additions and 8 deletions

16
Jenkinsfile vendored
View File

@@ -14,12 +14,12 @@ pipeline {
} }
stage('Checkout SCM') { stage('Checkout SCM') {
steps { steps {
git branch: 'main', url: 'https://git.ruff.co.il/tom/otomai-docker.git' git branch: 'main', url: 'https://git.ruff.co.il/amai.ig/otomai.git'
} }
} }
stage('Download Latest release') { stage('Download Latest release') {
steps { steps {
sh 'curl -LO https://github.com/dvtzr/otomai/releases/latest/download/Otomai-web.zip' sh 'curl -LO https://git.ruff.co.il/amai.ig/otomai/releases/latest/download/Otomai-web.zip'
} }
} }
stage('Create web game directory') { stage('Create web game directory') {
@@ -37,9 +37,9 @@ pipeline {
dir('./') { dir('./') {
script { script {
// Define image name and registry details // Define image name and registry details
def imageNameId = "git.ruff.co.il/tom/otomai-web:1.${env.BUILD_ID}" def imageNameId = "git.ruff.co.il/amai.ig/otomai:1.${env.BUILD_ID}"
def imageNameLatest = "git.ruff.co.il/tom/otomai-web:latest" def imageNameLatest = "git.ruff.co.il/amai.ig/otomai:latest"
def registryCredentialsId = 'a9635f55-73fb-4fdb-9f0a-19bc48033164' def registryCredentialsId = '7e506860-ca64-47bd-92a8-1a591dd12cba'
// Login to the Docker registry with credentials // Login to the Docker registry with credentials
docker.withRegistry('https://git.ruff.co.il', registryCredentialsId) { docker.withRegistry('https://git.ruff.co.il', registryCredentialsId) {
@@ -57,7 +57,7 @@ pipeline {
} }
stage('Clean Old Container') { stage('Clean Old Container') {
steps { steps {
catchError(buildResult: 'SUCCESS',message: 'Container does\'nt exist on host, skipping...', stageResult: 'ABORTED') { catchError(buildResult: 'SUCCESS',message: 'Container doesn\'t exist on host, skipping...', stageResult: 'ABORTED') {
sh 'docker stop otomai' sh 'docker stop otomai'
sh 'docker rm otomai' sh 'docker rm otomai'
} }
@@ -67,8 +67,8 @@ pipeline {
steps { steps {
script { script {
// Define registry credentials and image name // Define registry credentials and image name
def registryCredentialsId = 'a9635f55-73fb-4fdb-9f0a-19bc48033164' def registryCredentialsId = '7e506860-ca64-47bd-92a8-1a591dd12cba'
def imageName = 'git.ruff.co.il/tom/otomai-web:latest' def imageName = 'git.ruff.co.il/amai.ig/otomai:latest'
// Login to registry // Login to registry
docker.withRegistry('https://git.ruff.co.il', registryCredentialsId) { docker.withRegistry('https://git.ruff.co.il', registryCredentialsId) {

Binary file not shown.