url-shortener/Jenkinsfile

16 lines
376 B
Groovy

pipeline {
agent any
stages {
stage('Init') {
steps {
sh 'rbenv local 3.2.2'
def secret = sh(script: 'ruby -rsecurerandom -e "puts SecureRandom.base64(64).inspect"', returnStdout: true)
sh 'echo {secret}'
//sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb'
//sh 'cat .env.rb'
}
}
}
}