Skip to content

Commit

Permalink
create .env
Browse files Browse the repository at this point in the history
  • Loading branch information
Ujstor authored Sep 23, 2023
1 parent 2efffb8 commit b6de513
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ pipeline {

stage('Prepare Environment') {
steps {
sh 'echo "ID=${PROBIT_ID}" > "${WORKSPACE}/.env"'
sh 'echo "SECRET=${PROBIT_SECRET}" >> "${WORKSPACE}/.env"'
sh 'echo "KEY=${PROBIT_KEY}" >> "${WORKSPACE}/.env"'
script {
def envContent = """ID=${PROBIT_ID}
SECRET=${PROBIT_SECRET}
KEY=${PROBIT_KEY}
"""
writeFile file: "${WORKSPACE}/.env", text: envContent
}
}
}

Expand Down

0 comments on commit b6de513

Please sign in to comment.