Skip to content

Commit 3583af8

Browse files
authored
Merge pull request #33 from CIAT-DAPA/develop
Develop
2 parents bdc91d6 + 5b32d64 commit 3583af8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

JenkinsFile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pipeline {
99
server_host = credentials('host_spcat')
1010
ssh_key = credentials('spcat_key')
1111
port_api = credentials('api_spcat_port')
12+
GOOGLE_API_KEY = credentials('google_api_key_spcat')
1213
}
1314

1415
stages {
@@ -93,8 +94,8 @@ pipeline {
9394
script {
9495
sshCommand remote: remote, command: '''
9596
# setup the key
96-
api_google=$(grep -oP "(?<=API_GOOGLE_KEY=).+" ./variables_webapp.txt)
97-
sed -i "s/keyhere/$api_google/g" ./webapp_SPCAT/build/index.html
97+
api_google='${env.GOOGLE_API_KEY}'
98+
sed -i \"s/keyhere/\$api_google/g\" ./webapp_SPCAT/build/index.html
9899
'''
99100
}
100101
}

0 commit comments

Comments
 (0)