[WARNING] label option is deprecated. To use a static pod template, use the 'inheritFrom' option. Is there a workaround or different way to specify the agent labels
Below is the pipeline script ``` pipeline { agent { kubernetes { * label 'sample-label' * * yaml** '''* apiVersion: v1 kind: Pod spec: containers: - name: shell image: ubuntu command: - sleep args: - infinity ''' } } stages { stage('Main') { steps { sh 'hostname' } } } } ``` -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/122a5dff-1402-4f93-8087-9d82300a7aa6n%40googlegroups.com.