mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-01 03:29:12 -05:00
Merge pull request #3 from liquidata-inc/aaron/cleanup-jenkinsfile
Jenkinsfile: Simply a bit.
This commit is contained in:
Vendored
+1
-32
@@ -10,25 +10,10 @@ pipeline {
|
||||
}
|
||||
}
|
||||
environment {
|
||||
GIT_SSH_KEYFILE = credentials("liquidata-inc-ssh")
|
||||
PATH = "${pwd()}/.ci_bin:${env.HOME}/go/bin:${env.PATH}"
|
||||
GIT_SSH = "${pwd()}/.ci_bin/cred_ssh"
|
||||
NOMS_VERSION_NEXT = "1"
|
||||
}
|
||||
steps {
|
||||
dir (".ci_bin") {
|
||||
writeFile file: "cred_ssh", text: '''\
|
||||
#!/bin/sh
|
||||
exec /usr/bin/ssh -i $GIT_SSH_KEYFILE -o StrictHostKeyChecking=no "$@"
|
||||
'''.stripIndent()
|
||||
sh "chmod +x cred_ssh"
|
||||
|
||||
writeFile file: "git", text: '''\
|
||||
#!/bin/sh
|
||||
exec /usr/bin/git -c url."ssh://git@github.com:".insteadOf=https://github.com "$@"
|
||||
'''.stripIndent()
|
||||
sh "chmod +x git"
|
||||
|
||||
sh "go get golang.org/x/tools/cmd/goimports"
|
||||
}
|
||||
dir ("go") {
|
||||
@@ -48,24 +33,11 @@ pipeline {
|
||||
}
|
||||
}
|
||||
environment {
|
||||
GIT_SSH_KEYFILE = credentials("liquidata-inc-ssh")
|
||||
PATH = "${pwd()}/.ci_bin:${pwd()}/.ci_bin/node_modules/.bin:${env.PATH}"
|
||||
GIT_SSH = "${pwd()}/.ci_bin/cred_ssh"
|
||||
NOMS_VERSION_NEXT = "1"
|
||||
}
|
||||
steps {
|
||||
dir (".ci_bin") {
|
||||
writeFile file: "cred_ssh", text: '''\
|
||||
#!/bin/sh
|
||||
exec /usr/bin/ssh -i $GIT_SSH_KEYFILE -o StrictHostKeyChecking=no "$@"
|
||||
'''.stripIndent()
|
||||
sh "chmod +x cred_ssh"
|
||||
|
||||
writeFile file: "git", text: '''\
|
||||
#!/bin/sh
|
||||
exec /usr/bin/git -c url."ssh://git@github.com:".insteadOf=https://github.com "$@"
|
||||
'''.stripIndent()
|
||||
sh "chmod +x git"
|
||||
sh "npm i bats"
|
||||
}
|
||||
dir ("go") {
|
||||
sh "go get -mod=readonly ./..."
|
||||
@@ -74,9 +46,6 @@ pipeline {
|
||||
sh "go build -mod=readonly -o ../.ci_bin/git-dolt-smudge ./cmd/git-dolt-smudge/."
|
||||
sh "go build -mod=readonly -o ../.ci_bin/remotesrv ./utils/remotesrv/."
|
||||
}
|
||||
dir (".ci_bin") {
|
||||
sh "npm i bats"
|
||||
}
|
||||
sh "dolt config --global --add user.name 'Liquidata Jenkins'"
|
||||
sh "dolt config --global --add user.email 'jenkins@liquidata.co'"
|
||||
dir ("bats") {
|
||||
|
||||
Reference in New Issue
Block a user