Skip to content
Jenkins
log in
Dashboard
saas-backend-job
Configuration
Configure
Loading
General
Disabled
Enabled
Description
同步任务
Plain text
Preview
Hide preview
Maven Info Plugin Configuration
Assign Visible Name
Name Template
?
Loading...
Assign Description
Description Template
?
Loading...
Advanced
Edited
Main Module Pattern
?
Loading...
Interesting Dependencies Pattern
?
Loading...
GitHub project
Project url
?
Loading...
Advanced
Edited
Display name
?
Loading...
GitLab Connection
bcx
Use alternative credential
Credential :
Add
Jenkins
Testing...
Test Connection
Loading...
Throttle builds
?
Loading...
Number of builds
?
Loading...
Time period
?
Loading...
Allow user triggered builds to skip the rate limit
?
Loading...
Discard old builds
?
Loading...
Strategy
Log Rotation
Days to keep builds
if not empty, build records are only kept up to this number of days
Max # of builds to keep
if not empty, only up to this number of build records are kept
Advanced
Edited
Days to keep artifacts
if not empty, artifacts from builds older than this number of days will be deleted, but the logs, history, reports, etc for the build will be kept
Max # of builds to keep with artifacts
if not empty, only up to this number of builds have their artifacts retained
This project is parameterized
?
Loading...
Git Parameter
?
Loading...
JDK Parameter
?
Loading...
Credentials Parameter
?
Loading...
String Parameter
?
Loading...
Password Parameter
?
Loading...
Boolean Parameter
?
Loading...
File Parameter
?
Loading...
Multi-line String Parameter
Run Parameter
?
Loading...
Choice Parameter
?
Loading...
Add Parameter
Execute concurrent builds if necessary
?
Loading...
JDK
JDK to be used for this project
(System)
jdk11
jdk1.8
jdk17
jdk23
Advanced
Edited
Quiet period
?
Loading...
Quiet period
Number of seconds
Retry Count
?
Loading...
SCM checkout retry count
Block build when upstream project is building
?
Loading...
Block build when downstream project is building
?
Loading...
Display Name
?
Loading...
Keep the build logs of dependencies
?
Loading...
Source Code Management
None
Git
?
Loading...
Repositories
?
Repository URL
?
Loading...
Credentials
?
Add
Jenkins
Loading...
Advanced
Edited
Name
?
Loading...
Refspec
?
Loading...
Repository URL
?
Loading...
Credentials
?
e9f27bcd-2741-48e3-b693-e66c2b7b3499
Add
Jenkins
Loading...
Advanced
Edited
Name
?
Loading...
Refspec
?
Loading...
Add Repository
Loading...
Branches to build
?
Branch Specifier (blank for 'any')
?
Loading...
Branch Specifier (blank for 'any')
?
Loading...
Add Branch
Loading...
Repository browser
?
Loading...
(Auto)
AssemblaWeb
FishEye
GitLab
Kiln
Microsoft Team Foundation Server/Visual Studio Team Services
bitbucketserver
bitbucketweb
cgit
gitblit
githubweb
gitiles
gitlab
gitlist
gitoriousweb
gitweb
gogs
phabricator
redmineweb
rhodecode
stash
viewgit
Additional Behaviours
Build single revision only
?
Loading...
Calculate changelog against a specific branch
?
Loading...
Clean after checkout
?
Loading...
Clean before checkout
?
Loading...
Create a tag for every build
?
Loading...
Custom SCM name
?
Loading...
Custom user name/e-mail address
Don't trigger a build on commit notifications
?
Loading...
Force polling using workspace
?
Loading...
Git LFS pull after checkout
?
Loading...
Merge before build
?
Loading...
Polling ignores commits from certain users
Polling ignores commits in certain paths
?
Loading...
Polling ignores commits with certain messages
Prune stale remote-tracking branches
?
Loading...
Prune stale tags
Sparse Checkout paths
?
Loading...
Strategy for choosing what to build
?
Loading...
Use commit author in changelog
?
Loading...
Wipe out repository & force clone
?
Loading...
Check out to a sub-directory
Check out to specific local branch
?
Loading...
Advanced clone behaviours
Advanced sub-modules behaviours
Advanced checkout behaviours
Add
Build Triggers
Build whenever a SNAPSHOT dependency is built
?
Loading...
Schedule build when some upstream has no successful builds
?
Loading...
Trigger builds remotely (e.g., from scripts)
?
Loading...
Authentication Token
Use the following URL to trigger build remotely:
JENKINS_URL
/job/saas-backend-job/build?token=
TOKEN_NAME
or /buildWithParameters?token=
TOKEN_NAME
Optionally append
&cause=Cause+Text
to provide text that will be included in the recorded build cause.
Build after other projects are built
?
Loading...
Projects to watch
Trigger only if build is stable
Trigger even if the build is unstable
Trigger even if the build fails
Always trigger, even if the build is aborted
Build periodically
?
Loading...
Schedule
?
Loading...
Build when a change is pushed to GitLab. GitLab webhook URL: https://jenkins.te.baibaodun.com.cn/jenkins/project/saas-backend-job
?
Loading...
Enabled GitLab triggers
Push Events
?
Loading...
Push Events in case of branch delete
?
Loading...
Opened Merge Request Events
?
Loading...
Build only if new commits were pushed to Merge Request
?
Loading...
Accepted Merge Request Events
?
Loading...
Closed Merge Request Events
?
Loading...
Rebuild open Merge Requests
?
Loading...
Approved Merge Requests (EE-only)
?
Loading...
Comments
?
Loading...
Comment (regex) for triggering a build
?
Loading...
Advanced
Edited
Enable [ci-skip]
?
Loading...
Ignore WIP Merge Requests
?
Loading...
Labels that launch a build if they are added (comma-separated)
?
Loading...
Set build description to build cause (eg. Merge request or Git Push)
?
Loading...
Build on successful pipeline events
Pending build name for pipeline
?
Loading...
Cancel pending merge request builds on update
?
Loading...
Allowed branches
Allow all branches to trigger this job
?
Loading...
Filter branches by name
?
Loading...
Include
Exclude
Filter branches by regex
?
Loading...
Source Branch Regex
Target Branch Regex
Filter merge request by label
Include
Exclude
Secret token
?
Generate
Loading...
Clear
Loading...
Loading...
GitHub Branches
Trigger Mode
?
Cron with Persisted Data
Hooks with Persisted Data
Hooks plus Cron with Persisted Data
NOT SUPPORTED: Non-persistent Hooks
Loading...
Crontab line
?
Loading...
Set status before build
Cancel queued builds
Skip older branches on first run
?
Loading...
Trigger Events
?
Branch Created
Branch Deleted
Branch Restrictions
Commit Checks
Hash Changed
Add
Loading...
Experimental
Edited
Repo providers
GitHub Plugin Repository Provider
Cache connection?
?
Loading...
Manage hooks
?
Loading...
Repository requested permission
?
ADMIN
PUSH
PULL
Loading...
GitHub Plugin Repository Provider
Add
GitHub Pull Requests
?
Loading...
Trigger Mode
?
Cron with Persisted Data
Hooks with Persisted Data
Hooks plus Cron with Persisted Data
NOT SUPPORTED: Non-persistent Hooks
Loading...
Crontab line
?
Loading...
Set status before build
?
Loading...
Cancel queued builds
?
Loading...
Abort running builds
?
Loading...
Skip older PRs on first run
?
Loading...
Trigger Events
?
Comment matched to pattern
?
Loading...
Commit changed
?
Loading...
Description matched to pattern
?
Loading...
Labels added
?
Loading...
Labels exist
?
Loading...
Labels matched to patterns
?
Loading...
Labels not exist
?
Loading...
Labels removed
?
Loading...
Not mergeable
PR Number
Pull Request Closed
?
Loading...
Pull Request Opened
?
Loading...
Add
Loading...
Experimental: User Restriction
?
Loading...
Organizations
Users
Experimental: Branch Restriction
?
Loading...
Whitelist Target Branches:
Experimental
Edited
Repo providers
GitHub Plugin Repository Provider
Cache connection?
?
Loading...
Manage hooks
?
Loading...
Repository requested permission
?
ADMIN
PUSH
PULL
Loading...
GitHub Plugin Repository Provider
Add
GitHub hook trigger for GITScm polling
?
Loading...
Maven Dependency Update Trigger
?
Loading...
Schedule
Check Snapshot Plugins Update
Poll SCM
?
Loading...
Schedule
?
Loading...
Ignore post-commit hooks
?
Loading...
Build Environment
Delete workspace before build starts
Advanced
Edited
Patterns for files to be deleted
?
Add
Loading...
Apply pattern also on directories
?
Loading...
Check parameter
?
Loading...
External Deletion Command
?
Loading...
Disable deferred wipeout
?
Loading...
Use secret text(s) or file(s)
?
Loading...
Bindings
Certificate
?
Loading...
Docker client certificate
Git Username and Password
SSH User Private Key
?
Loading...
Secret ZIP file
?
Loading...
Secret file
?
Loading...
Secret text
?
Loading...
Username and password (conjoined)
?
Loading...
Username and password (separated)
?
Loading...
Add
Execute shell script on remote host using ssh
?
Loading...
SSH site
Pre build script
?
Loading...
Post build script
?
Loading...
Hide command from console output
Inspect build log for published build scans
SSH Agent
Credentials
Specific credentials
Parameter expression
Add
Jenkins
A valid parameter expression consists of the parameter name enclosed within
${
and
}
Specific credentials
Parameter expression
Add
Jenkins
A valid parameter expression consists of the parameter name enclosed within
${
and
}
Add
Ignore missing credentials
Loading...
Terminate a build if it's stuck
Time-out strategy
?
Loading...
Absolute
Deadline
Elastic
Likely stuck
No Activity
Time-out variable
Set a build timeout environment variable
Time-out actions
?
Abort the build
?
Loading...
Fail the build
?
Loading...
Writing the build description
?
Loading...
Add action
Loading...
With Ant
?
Loading...
JDK
Default
jdk11
jdk1.8
jdk17
jdk23
Add timestamps to the Console Output
Remote Shell
?
Loading...
Disable
?
Loading...
Target Servers
Pre build shell
?
Loading...
Post build shell
?
Loading...
Pre Steps
Execute shell script on remote host using ssh
GitHub PR: set 'pending' status
HTTP Request
Invoke Ant
?
Loading...
Invoke Gradle script
?
Loading...
Run with timeout
Set build status to "pending" on GitHub commit
Execute Windows batch command
?
Loading...
Execute shell
?
Loading...
Invoke top-level Maven targets
?
Loading...
Remote SFTP Upload
Remote SFTP Download
Remote Command
Remote Shell
Add pre-build step
Build
Root POM
?
Loading...
Goals and options
?
Loading...
Advanced
Edited
MAVEN_OPTS
?
Loading...
Incremental build - only build changed modules
?
Loading...
Disable automatic artifact archiving
?
Loading...
Disable automatic site documentation artifact archiving
?
Loading...
Disable automatic fingerprinting of consumed and produced artifacts
?
Loading...
Enable triggering of downstream projects
?
Loading...
Block downstream trigger when building
?
Loading...
Build modules in parallel
?
Loading...
Use private Maven repository
?
Loading...
Strategy
Default ("~/.m2/repository", or the value of 'localRepository' in Maven's settings file, if defined)
Local to the executor
Local to the workspace
Resolve Dependencies during Pom parsing
Run Headless
?
Loading...
Process Plugins during Pom parsing
Use custom workspace
?
Loading...
Directory
Maven Validation Level
DEFAULT
LEVEL_MINIMAL
LEVEL_MAVEN_2_0
LEVEL_MAVEN_3_0
LEVEL_MAVEN_3_1
LEVEL_STRICT
Settings file
?
Loading...
Use default maven settings
Settings file in filesystem
?
Loading...
Global Settings file
?
Loading...
Use default maven global settings
Global settings file on filesystem
?
Loading...
Post Steps
Run only if build succeeds
Run only if build succeeds or is unstable
Run regardless of build result
Loading...
Should the post-build steps run only for successful builds, etc.
Execute shell
?
Loading...
Command
See
the list of available environment variables
scp /data/jenkins/workspace/saas-backend-job/src/saas-backend-server/saas-backend-job/target/saas-backend-job-1.0-SNAPSHOT.jar \ 172.20.0.248:/data/workspace/saas-backend-job/run
Advanced
Edited
Exit code to set build unstable
?
Loading...
Environment filters
Only Keep Specified Environment Variables
?
Loading...
Add environment filter
Execute shell script on remote host using ssh
SSH site
root@172.20.0.248:22
Command
#JAVA export JAVA_HOME=/usr/local/java export JAVA_CLASS=$JAVA_HOME/lib export PATH=$JAVA_HOME/bin:$PATH PID=$(ps -ef|grep -v grep|grep saas-backend-job-1.0-SNAPSHOT.jar|awk '{print $2}') SERVER_STATUS=$(ps -ef|grep -v grep|grep saas-backend-job-1.0-SNAPSHOT.jar|awk '{print $2}'|wc -l) #新jar包所在目录 run=/data/workspace/saas-backend-job/run #运行目录 runing=/data/workspace/saas-backend-job/runing if [ $SERVER_STATUS -ge 1 ] then kill $PID sleep 5 kill -9 $SERVER_STATUS fi \cp $run/saas-backend-job-1.0-SNAPSHOT.jar $runing/saas-backend-job-1.0-SNAPSHOT.jar cd $runing nohup java -Xms1024m -Xmx1024m -jar saas-backend-job-1.0-SNAPSHOT.jar --spring.profiles.active=in-te &> /dev/null &
Execute each line
?
Loading...
Hide command from console output
Execute shell script on remote host using ssh
GitHub PR: set 'pending' status
HTTP Request
Invoke Ant
?
Loading...
Invoke Gradle script
?
Loading...
Run with timeout
Set build status to "pending" on GitHub commit
Execute Windows batch command
?
Loading...
Execute shell
?
Loading...
Invoke top-level Maven targets
?
Loading...
Remote SFTP Upload
Remote SFTP Download
Remote Command
Remote Shell
Add post-build step
Build Settings
E-mail Notification
Recipients
Send e-mail for every unstable build
Loading...
Send separate e-mails to individuals who broke the build
Loading...
Send e-mail for each failed module
?
Loading...
Post-build Actions
Aggregate downstream test results
?
Loading...
Deploy artifacts to Maven repository
?
Loading...
GitHub PR: add labels
GitHub PR: close PR
GitHub PR: post comment
GitHub PR: remove labels
GitHub PR: set PR status
Publish HTML reports
?
Loading...
Archive the artifacts
?
Loading...
Build other projects
?
Loading...
Record fingerprints of files to track usage
?
Loading...
Git Publisher
?
Loading...
Accept GitLab merge request on success
Add note with build status on GitLab merge requests
?
Loading...
Add vote for build status on GitLab merge requests
Editable Email Notification
?
Loading...
Publish build status to GitLab
?
Loading...
Set GitHub commit status (universal)
?
Loading...
Set build status on GitHub commit [deprecated]
?
Loading...
Delete workspace when build is done
Add post-build action
Save
Apply