Skip to content

Commit

Permalink
fix: postgres jenkensfile
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh-98 committed Oct 13, 2023
1 parent 4a9e4aa commit 1194ba9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ci/Jenkinsfile.tests
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pipeline {

environment {
TARGET = 'tests'
DB_CONT = "status-go-test-db-${env.EXECUTOR_NUMBER.toInteger() + 1}"
DB_CONT = "go-waku-test-db-${env.EXECUTOR_NUMBER.toInteger() + 1}"
DB_PORT = "${5432 + env.EXECUTOR_NUMBER.toInteger()}"
REPO = "${env.WORKSPACE}/src/github.com/waku-org/go-waku"
GOCACHE = "${env.WORKSPACE_TMP}/go-build"
Expand Down Expand Up @@ -60,11 +60,11 @@ pipeline {
} } }
}

stage('postgres tests') {
stage('PostgresSQL') {
environment {
TEST_DB_PORT = "${env.DB_PORT}"
}
steps { script {
steps { script { dir(env.REPO) {
db = docker.image('postgres:9.6-alpine').withRun([
"--name=${DB_CONT}",
"--env=POSTGRES_HOST_AUTH_METHOD=trust",
Expand All @@ -76,7 +76,7 @@ pipeline {
nix.develop('make test-postgres', pure: false)
}
}
} }
} } }
post { cleanup { /* Leftover DB containers. */
sh "docker rm ${DB_CONT} || true"
} }
Expand Down

0 comments on commit 1194ba9

Please sign in to comment.