Merge pull request #3 from liquidata-inc/aaron/cleanup-jenkinsfile

Jenkinsfile: Simply a bit.
This commit is contained in:
Aaron Son
2019-07-24 15:08:00 -07:00
committed by GitHub
Vendored
+1 -32
View File
@@ -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") {