Credentials Error

Getting the following error when trying to bring my credentials into Jenkinsfile:

Wondering what the fix for this is?

WorkflowScript: 8: Environment variable values must either be single quoted, double quoted, or function calls. @ line 8, column 23.
DOCKER_USERNAME = credentials(‘Jenkey’).username
^

WorkflowScript: 9: Environment variable values must either be single quoted, double quoted, or function calls. @ line 9, column 23.
DOCKER_PASSWORD = credentials(‘Jenkey’).password

pipeline {
agent any

environment {
DOCKER_REGISTRY = “docker.io
DOCKER_IMAGE = “10088989/my-node-app”
DOCKER_TAG = “latest”
DOCKER_USERNAME = credentials(‘Jenkey’).username
DOCKER_PASSWORD = credentials(‘Jenkey’).password
}

stages {
stage(‘Build’) {
steps {
withCredentials([usernamePassword(credentialsId: ‘Jenkey’, usernameVariable: ‘DOCKER_USERNAME’, passwordVariable: ‘DOCKER_PASSWORD’)]) {
sh “docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REGISTRY”
sh “docker build -t $DOCKER_REGISTRY/$DOCKER_IMAGE:$DOCKER_TAG .”
^

Maybe not the correct single quote character?
Can you edit your post and make the pipeline snippet formatted as code
Does it look like this?
DOCKER_USERNAME = credentials('Jenkey').username

Why you set environment variables with docker credentials and then also use the withCredentials step setting the same variables again?
I would probably only use the withCredentials as this limits the lifetime of the variables to this step only while the global env variables have the complete pipeline execution as lifetime.

doesn’t feel right.

DOCKER = credentials('Jenkey')
is the right way i think, then you end up with
$DOCKER_USR and $DOCKER_PWD or something

DOCKER_PASSWORD = "${credentials('Jenkey').password}"

might also work, because as it says its expecting a quoted string, or I think credentials() is a special case