diff --git a/dawn-client/dev b/dawn-client/dev new file mode 100644 index 0000000000000000000000000000000000000000..4015a4fc17ec38049cc2590c3c6aedf8dee26881 --- /dev/null +++ b/dawn-client/dev @@ -0,0 +1,40 @@ +pipeline { + agent {label "node2"} + tools {nodejs "node"} + stages { + + stage('build') { + steps { + git branch: 'staging', + credentialsId: 'tucker-gitlab-login', + url: 'https://gitlab.cs.umd.edu/dawn/dawn-client' + + sh """ + npm i + npm run build:dev + """ + } + } + + + stage('copy build') { + steps { + sh ''' + sudo rm -rf /var/www/dawn_dev/build + sudo cp -r build /var/www/dawn_dev + ''' + } + } + + + + stage('restart nginx') { + steps { + sh ''' + sudo service nginx restart + ''' + } + } + + } +} \ No newline at end of file diff --git a/dawn-client/dev-env b/dawn-client/dev-env deleted file mode 100644 index 5aee1f4b9c5b06c3a3e1f74c5045b12f826865f9..0000000000000000000000000000000000000000 --- a/dawn-client/dev-env +++ /dev/null @@ -1,46 +0,0 @@ -pipeline { - agent any - tools { - go 'go-1.16' - } - options { - buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5') - } - stages { - - stage('checkout') { - steps { - git branch: "staging", - credentialsId: 'tucker-gitlab-login', - url: "https://gitlab.cs.umd.edu/dawn/dawn-client.git" - } - } - - stage('build') { - steps { - sh """ - dawn-cli build-image -p . -v - """ - } - } - - stage('update backend services') { - steps { - sh ''' - curl -o docker-compose-dev.yml --header "PRIVATE-TOKEN: y2FHtFXMC8X13onnEfiE" "https://gitlab.cs.umd.edu/api/v4/projects/16574/repository/files/docker-compose-dev.yml/raw?ref=main" - curl -o shared-compose.yml --header "PRIVATE-TOKEN: y2FHtFXMC8X13onnEfiE" "https://gitlab.cs.umd.edu/api/v4/projects/16574/repository/files/shread-compose.yml/raw?ref=main" - curl -o prometheus.yml --header "PRIVATE-TOKEN: y2FHtFXMC8X13onnEfiE" "https://gitlab.cs.umd.edu/api/v4/projects/16574/repository/files/prometheus.yml/raw?ref=main" - curl -o prometheus.rules.yml --header "PRIVATE-TOKEN: y2FHtFXMC8X13onnEfiE" "https://gitlab.cs.umd.edu/api/v4/projects/16574/repository/files/prometheus.rules.yml/raw?ref=main" - curl -o rabbitmq.conf --header "PRIVATE-TOKEN: y2FHtFXMC8X13onnEfiE" "https://gitlab.cs.umd.edu/api/v4/projects/16574/repository/files/rabbitmq.conf/raw?ref=main" - - mkdir elk_config || true - curl -o logstash-compose.yml --header "PRIVATE-TOKEN: y2FHtFXMC8X13onnEfiE" "https://gitlab.cs.umd.edu/api/v4/projects/16574/repository/files/logstash-compose.conf/raw?ref=main" - curl -o elk_config/elasticsearch.yml --header "PRIVATE-TOKEN: y2FHtFXMC8X13onnEfiE" "https://gitlab.cs.umd.edu/api/v4/projects/16574/repository/files/elk_config%2Felasticsearch.yml/raw?ref=main" - curl -o elk_config/filebeat.yml --header "PRIVATE-TOKEN: y2FHtFXMC8X13onnEfiE" "https://gitlab.cs.umd.edu/api/v4/projects/16574/repository/files/elk_config%2Ffilebeat.yml/raw?ref=main" - ''' - sh "dawn-cli update -s dawn-client" - } - } - - } -}