We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bdc91d6 + 5b32d64 commit 3583af8Copy full SHA for 3583af8
JenkinsFile
@@ -9,6 +9,7 @@ pipeline {
9
server_host = credentials('host_spcat')
10
ssh_key = credentials('spcat_key')
11
port_api = credentials('api_spcat_port')
12
+ GOOGLE_API_KEY = credentials('google_api_key_spcat')
13
}
14
15
stages {
@@ -93,8 +94,8 @@ pipeline {
93
94
script {
95
sshCommand remote: remote, command: '''
96
# setup the key
- api_google=$(grep -oP "(?<=API_GOOGLE_KEY=).+" ./variables_webapp.txt)
97
- sed -i "s/keyhere/$api_google/g" ./webapp_SPCAT/build/index.html
+ api_google='${env.GOOGLE_API_KEY}'
98
+ sed -i \"s/keyhere/\$api_google/g\" ./webapp_SPCAT/build/index.html
99
'''
100
101
0 commit comments