Web Technologies
Android
Angular
BootStrap
ECMAScript
HTML
Image Processing
JavaScript
MVC
Onsen UI
React JS
SOAP UI
Vue.js
Cloud/DevOps Technologies
Amazon EC2
Ansible
Augmented Reality
AWS
Azure
Big Data
Cache Teachniques
Cassandra
Commercial Insurance
Cloud
CD
CI
Data Handling
Data using R
Data Science
DevOps
Gradle
Hadoop
HBase
HDFS
Hive
IOT
Jenkins
Machine Learning
MangoDB
NGINX
SOAP UI
Latest Technologies
5G Network
Agile
Android
Arduino
Augmented Reality
Commercial Insurance
C#
C++
Cyber Security
Data Handling
Data using R
Data Science
DBMS
Design-Pattern
Fortify
Ethical Hacking
Framework
GIT
GIT Slack
Image Processing
Java
Jenkins
Jira
JUnit
Kibana
Linux
MangoDB
Oracle
PHP
Python
QTP
R Language
Regression Analysis
Robotic
Salesforce
SAP
Selenium
Service Discovery
Service Now
Spark SQL
Testing
TOGAF
Research Method
Virtual Reality
Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Give any simple example of Jenkins script.
Home
Jenkins
Give any simple example of Jenkins script.
0
votes
asked
Jan 17, 2020
in
Jenkins
by
GeorgeBell
(
4.5k
points)
Give any simple example of Jenkins script.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 17, 2020
by
GeorgeBell
(
4.5k
points)
This is a Jenkins declarative pipeline code for Java:
pipeline {
agent
stages {
stage('Building your first asset') {
agent
steps {
echo 'Build asset'
}
}
stage('Test') {
agent
steps {
echo 'Building project 1'
}
}
}
}
Related questions
+1
vote
Give one simple example of Jenkins pipeline code.
asked
May 13, 2020
in
Jenkins
by
Robindeniel
(
19.9k
points)
#jenkins-pipeline-example
#jenkins-pipeline-code
0
votes
Give a simple use case/scenario to explain how Jenkins works.
asked
Apr 28, 2021
in
Jenkins
by
Robindeniel
(
19.9k
points)
#jenkins-example
jenkins-wok
0
votes
Give a simple example of Jest test case
asked
Mar 3, 2020
in
React JS
by
miceperry
(
775
points)
0
votes
Provide an example of any simple Custom React Hook. Why do we need Custom Hooks?
asked
May 30
in
React Hooks
by
Robindeniel
(
19.9k
points)
customhooks
0
votes
Give some important plugins in Jenkins.
asked
Apr 28, 2021
in
Jenkins
by
Robindeniel
(
19.9k
points)
#jenkins-plugins
plugins
0
votes
What is a trigger? Give an example of how the repository is polled when a new commit is detected.
asked
May 1, 2021
in
Jenkins
by
rajeshsharma
(
23.1k
points)
trigger
jenkins
0
votes
Do you know any other continuous integration tools? How is Jenkins better than any of those?
asked
Apr 28, 2021
in
Jenkins
by
Robindeniel
(
19.9k
points)
jenkins
continuous-integration-tool
+1
vote
Is there any relationship between Hudson and Jenkins?
asked
May 13, 2020
in
Jenkins
by
Robindeniel
(
19.9k
points)
#jenkins-hudson
hudson-vs-jenkins
+1
vote
Is there any prerequisite for using Jenkins?
asked
May 13, 2020
in
Jenkins
by
Robindeniel
(
19.9k
points)
#jenkins-prerequisite
#prerequisite-jenkins
+1
vote
Provide a simple example of how an experimental design can help answer a question about behavior
asked
May 29, 2021
in
Data Science
by
Robindeniel
(
19.9k
points)
experimental-data
data-science
probability
...