Request for help with constraining jobs to specific nodepool in kubernetes AKS cluster

Hello,
I am not able to get the nodeselector feature working. I have both Linux as well as windows nodepools in the AKS cluster. I am trying to use the nodeselector config in the UI to start the pods based on the label. In the Node Selector field under the Pod Templates section, I specify the label as “agentpool=linpool”. This label is present in the nodepools as verified below -

NAME STATUS ROLES AGE VERSION AGENTPOOL
aks-contpool-14153102-vmss000000 Ready agent 67d v1.22.6 contpool
aks-contpool-14153102-vmss000001 Ready agent 67d v1.22.6 contpool
aks-contpool-14153102-vmss000002 Ready agent 67d v1.22.6 contpool
aks-linpool-22505568-vmss000000 Ready agent 67d v1.22.6 linpool
aks-linpool-22505568-vmss000001 Ready agent 67d v1.22.6 linpool
aks-linpool-22505568-vmss000002 Ready agent 67d v1.22.6 linpool
aks-nodepool1-42852156-vmss000000 Ready agent 67d v1.22.6 nodepool1
aks-nodepool1-42852156-vmss000001 Ready agent 67d v1.22.6 nodepool1
aks-nodepool1-42852156-vmss000002 Ready agent 67d v1.22.6 nodepool1
akswipool000001 Ready agent 67d v1.22.6 wipool
akswipool000002 Ready agent 67d v1.22.6 wipool
akswipool000005 Ready agent 3d v1.22.6 wipool

In the pipeline script, I refer to the nodepool as follows -

pipeline {
agent { label ‘linpool’ }
stages {
stage(“java”){
steps {
sh “java -version”
sleep 30
}
}
}
}

The job keeps spinning with the following message -

[Pipeline] Start of Pipeline
[Pipeline] node
Still waiting to schedule task
Waiting for next available executor

But a pod doesn’t get started and after a while, I abort the job.

Can someone please guide how to get this working? If needed, I can provide additional details.

Best regards,
Sam