azure-container-agents-plugin | Azure Container Agents Plugin for Jenkins | Azure library
kandi X-RAY | azure-container-agents-plugin Summary
kandi X-RAY | azure-container-agents-plugin Summary
Important: This plug-in is maintained by the Jenkins community and won’t be supported by Microsoft as of February 29, 2024. Azure Container Agents Plugin can help you to run a container instance as an agent in Jenkins.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Launches a computer
- Establish a new connection to the SSH server
- Connect channel to the session
- Executes the retry strategy
- Copy the contents of an InputStream to a remote path
- Gets a session
- Checks whether the given cloud computer is still alive
- Wait for the executor to finish
- Record failure
- Build a CI container template
- Checks if a template can be created
- Adds an IP environment to an agent
- Provides a list of resource groups
- Waits until the agent is online
- Creates a UsernamePasswordAuth from a given credentials
- Delete the cluster
- Check if the cloud computer is still connected
- Starts the ACI container
- Add an agent to an agent
azure-container-agents-plugin Key Features
azure-container-agents-plugin Examples and Code Snippets
import com.microsoft.jenkins.containeragents.builders.*
def myCloud = new AciCloudBuilder()
.withCloudName("mycloud")
.withAzureCredentialsId("")
.withResourceGroup("myResourceGroup")
.addNewTemplate()
.withName("mytemplate")
.withLabel("aci
Community Discussions
Trending Discussions on azure-container-agents-plugin
QUESTION
I'm using Jenkins with azure-container-agents-plugin (https://github.com/jenkinsci/azure-container-agents-plugin) to launch a node as Docker instance on Azure.
I have a image based on https://hub.docker.com/r/jenkinsci/jnlp-slave/ that is setup to launch based on a Jenkins job.
The purpose of the job is to take in a generic shell script and run the script on the Jenkins node. This is so that an 3rd party application could send the script to Jenkins as a "parameter" to the job so it could run different scripts based on different situations.
Part of a script could be performing a git pull, which requires credentials or SSH key.
This there a way to transfer the SSH key to the container instance after the launch but before the script is executed on the node?
...ANSWER
Answered 2018-Aug-09 at 04:09There is a plugin for Jenkins that I think it can solve your problem. It's Copy data to workspace (Copy Data To Workspace - Jenkins). This plugin is to copy data from master node to workspace directory in slave. This step will be done before Build steps is executed.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azure-container-agents-plugin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page