From 520b6cdef6ccb26c8e797f8109a02636a7b0fb91 Mon Sep 17 00:00:00 2001 From: william Date: Thu, 12 Jun 2025 00:42:28 +0000 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 32778ce..fa04453 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,3 @@ -def FIREBASE_TOKEN = "1//01qpBX7fJp_MkCgYIARAAGAESNwF-L9IrxNCVYfwDg6jE_bhT0-ja1yQGO1Wxn2mFd8cH1O15uC8Nv2b1NXpEp8-oQXdabUXLJqM" - pipeline { agent any stages { @@ -14,9 +12,14 @@ pipeline { bat 'npm run build' } + environment { + MY_VAR = '1//01qpBX7fJp_MkCgYIARAAGAESNwF-L9IrxNCVYfwDg6jE_bhT0-ja1yQGO1Wxn2mFd8cH1O15uC8Nv2b1NXpEp8-oQXdabUXLJqM' + + } + bat ''' - echo ${FIREBASE_TOKEN} - npx firebase login --interactive --token $FIREBASE_TOKEN + echo "${FIREBASE_TOKEN}" + npx firebase login --interactive --token "${FIREBASE_TOKEN}" npx firebase init echo %cd% dir