Snippet Generator => steps (place into the steps) 只有脚本script{}可声明变量,String,def声明的变量只有script{}可用 #--------------------------------------------------------------------- # Plugins #--------------------------------------------------------------------- # Organization and Administration Configuration as Code Dashboard View Folders OWASP Markup Formatter # Build Features Build Name and Description Setter Build Timeout Config File Provider # Ability to provide configuration files (e.g. settings.xml for maven, XML, groovy, custom files,...) loaded through the UI which will be copied to the job workspace. Credential # This plugin allows you to store credentials in Jenkins. Credential Binding # Allows credentials to be bound to environment variables for use from miscellaneous build steps. Embeddable Build Status Rebuilder SSH Agent # This plugin allows you to provide SSH credentials to builds via a ssh-agent in Jenkins. Timestamper Workspace Cleanup # Build Tools Ant Gradle # Build Analysis and Reporting Active Choices Generic Webhook Trigger HTML Publisher JUnit # Distributed Builds Matrix Projec SSH Build Agents # Allows to launch agents over SSH, using a Java implementation of the SSH protocol. # Pipelines and Continuous Delivery Pipeline GitHub Branch Source Pipeline: GitHub Groovy Libraries Pipeline: Stage View Pipeline Utility Steps Parameterized Trigge # Source Code Management Git Git Parameter GitHub GitLab # User Management and Security Active Directory Matrix Authorization Strategy PAM Authentication LDAP Role-based Authorization Strategy # Notifications and Publishing Email Extension Email Extension Template Mailer # AnsiColor Plain Credential Plugin # Allows use of plain strings and files as credentials. SSH Credential # Allows storage of SSH credentials in Jenkins #--------------------------------------------------------------------- # URI #--------------------------------------------------------------------- /env-vars.html /pipeline-syntax /manage /whoAmI #--------------------------------------------------------------------- # Declarative Directive Generator #--------------------------------------------------------------------- environment can only allowed inside pipeline block or within stage directive #--------------------------------------------------------------------- # Kubernetes Plugin #--------------------------------------------------------------------- # environment variables JENKINS_URL : Jenkins web interface url JENKINS_SECRET : the secret key for authentication JENKINS_AGENT_NAME : the name of the Jenkins agent
标签:Credential,plugins,SSH,credentials,Jenkins,#------------------------------------ From: https://www.cnblogs.com/dissipate/p/17350697.html