Deleted old game file, updated Jenkinsfile
This commit is contained in:
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@@ -14,12 +14,12 @@ pipeline {
|
||||
}
|
||||
stage('Checkout SCM') {
|
||||
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') {
|
||||
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') {
|
||||
@@ -37,9 +37,9 @@ pipeline {
|
||||
dir('./') {
|
||||
script {
|
||||
// Define image name and registry details
|
||||
def imageNameId = "git.ruff.co.il/tom/otomai-web:1.${env.BUILD_ID}"
|
||||
def imageNameLatest = "git.ruff.co.il/tom/otomai-web:latest"
|
||||
def registryCredentialsId = 'a9635f55-73fb-4fdb-9f0a-19bc48033164'
|
||||
def imageNameId = "git.ruff.co.il/amai.ig/otomai:1.${env.BUILD_ID}"
|
||||
def imageNameLatest = "git.ruff.co.il/amai.ig/otomai:latest"
|
||||
def registryCredentialsId = '7e506860-ca64-47bd-92a8-1a591dd12cba'
|
||||
|
||||
// Login to the Docker registry with credentials
|
||||
docker.withRegistry('https://git.ruff.co.il', registryCredentialsId) {
|
||||
@@ -57,7 +57,7 @@ pipeline {
|
||||
}
|
||||
stage('Clean Old Container') {
|
||||
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 rm otomai'
|
||||
}
|
||||
@@ -67,8 +67,8 @@ pipeline {
|
||||
steps {
|
||||
script {
|
||||
// Define registry credentials and image name
|
||||
def registryCredentialsId = 'a9635f55-73fb-4fdb-9f0a-19bc48033164'
|
||||
def imageName = 'git.ruff.co.il/tom/otomai-web:latest'
|
||||
def registryCredentialsId = '7e506860-ca64-47bd-92a8-1a591dd12cba'
|
||||
def imageName = 'git.ruff.co.il/amai.ig/otomai:latest'
|
||||
|
||||
// Login to registry
|
||||
docker.withRegistry('https://git.ruff.co.il', registryCredentialsId) {
|
||||
|
||||
Reference in New Issue
Block a user